Skip to content

Commit

Permalink
Add Rails 8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
rmm5t committed Nov 10, 2024
1 parent b042584 commit dbd7fe2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
gemfile:
- activemodel-7.1
- activemodel-7.2
- activemodel-8.0
# - activemodel-main
include:
- { ruby: "2.3", gemfile: "activemodel-3.2" }
Expand Down
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 dbd7fe2

Please sign in to comment.