diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0bc694b0..e220e676 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: needs: ['rubocop'] strategy: matrix: - ruby-version: ['3.0', '3.1', '3.2', '3.3', 'head'] + ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4'] steps: - name: Check out branch uses: actions/checkout@v4 diff --git a/CHANGELOG.md b/CHANGELOG.md index e8d01b1e..5600f302 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ #### Fixes * Your contribution here. - +* [#388](https://github.com/ruby-grape/grape-entity/pull/388): Drop ruby-head from test matrix to keep builds stable - [@numbata](https://github.com/numbata). ### ### 1.0.1 (2024-04-10) diff --git a/bench/serializing.rb b/bench/serializing.rb index 60786543..6ffa256e 100644 --- a/bench/serializing.rb +++ b/bench/serializing.rb @@ -35,7 +35,7 @@ class Teacher < Models::Person attr_accessor :tenure def initialize(opts = {}) - super(opts) + super @tenure = opts[:tenure] end end @@ -44,7 +44,7 @@ class Student < Models::Person attr_reader :grade def initialize(opts = {}) - super(opts) + super @grade = opts[:grade] end end diff --git a/grape-entity.gemspec b/grape-entity.gemspec index 66e0f007..3dc3d8ef 100644 --- a/grape-entity.gemspec +++ b/grape-entity.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 3.0' - s.add_runtime_dependency 'activesupport', '>= 3.0.0' + s.add_dependency 'activesupport', '>= 3.0.0' s.files = `git ls-files`.split("\n") s.test_files = `git ls-files -- {test,spec}/*`.split("\n")