Skip to content

Commit

Permalink
Merge pull request #74 from rmm5t/rails-8-support
Browse files Browse the repository at this point in the history
Update Build Matrix and Add Rails 8 Support
  • Loading branch information
rmm5t authored Nov 10, 2024
2 parents 9c08347 + dbd7fe2 commit b93c23c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3"]
ruby: ["3.2", "3.3"]
gemfile:
- activemodel-6.0
- activemodel-6.1
- activemodel-7.0
- activemodel-7.1
- activemodel-7.2
- activemodel-8.0
# - activemodel-main
include:
- { ruby: "2.3", gemfile: "activemodel-3.2" }
- { ruby: "2.4", gemfile: "activemodel-4.2" }
- { ruby: "2.5", gemfile: "activemodel-5.2" }
- { ruby: "2.6", gemfile: "activemodel-6.1" }
- { ruby: "3.3", gemfile: "activemodel-7.1" }
- { ruby: "2.7", gemfile: "activemodel-6.0" }
- { ruby: "3.0", gemfile: "activemodel-6.1" }
- { ruby: "3.1", gemfile: "activemodel-7.0" }

env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
Expand Down
5 changes: 5 additions & 0 deletions gemfiles/activemodel-7.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source "https://rubygems.org"

gem "activemodel", "~> 7.2.0"

gemspec path: "../"
7 changes: 7 additions & 0 deletions gemfiles/activemodel-8.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source "https://rubygems.org"

gem "activemodel", "~> 8.0.0"
# TODO: Remove this after active_attr supports Rails 8
gem "active_attr", github: "leoarnold/active_attr", branch: "leoarnold/rails-8"

gemspec path: "../"
4 changes: 2 additions & 2 deletions strip_attributes.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ Gem::Specification.new do |spec|
"source_code_uri" => "https://github.com/rmm5t/strip_attributes",
}

spec.add_runtime_dependency "activemodel", ">= 3.0", "< 8.0"
spec.add_runtime_dependency "activemodel", ">= 3.0", "< 9.0"
spec.add_development_dependency "active_attr", "~> 0.15"
spec.add_development_dependency "minitest", ">= 5.0", "< 6.0"
spec.add_development_dependency "minitest", "~> 5.0"
spec.add_development_dependency "minitest-matchers_vaccine", "~> 1.0" unless ENV["SKIP_VACCINE"]
spec.add_development_dependency "minitest-reporters", ">= 0.14.24"
spec.add_development_dependency "rake"
Expand Down

0 comments on commit b93c23c

Please sign in to comment.