Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:
strategy:
fail-fast: false
matrix:
# Rails 7.1 is out of even severe-security support, so the floor is 7.2.
ruby: ['3.2', '3.4']
rails: ['7.2.0', '8.0.0']
# Rails 7.2 reached end of life on 2026-08-09, so the floor is 8.0. Ruby 3.2 went EOL
# on 2026-03-31, so the floor there is 3.3 (security-only until 2027-03-31).
ruby: ['3.3', '3.4', '4.0']
rails: ['8.0.0', '8.1.0']
activeadmin: ['3.5.0']
env:
RAILS: ${{ matrix.rails }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Four `prepend`s, no source patching:
`default:` needs no registration of its own: `add_filter` stores whatever options it is given,
without a whitelist.

Tested against Active Admin 3.5 on Rails 7.2 and 8.0.
Tested against Active Admin 3.5 on Rails 8.0 and 8.1, under Ruby 3.3, 3.4 and 4.0.

## License

Expand Down
2 changes: 1 addition & 1 deletion active_admin_filters_defaults.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.description = "Lets an Active Admin resource declare what its index filters on when opened " \
"without filters of its own: filter :state_eq, default: 'active'"

s.required_ruby_version = ">= 3.0"
s.required_ruby_version = ">= 3.3"
s.add_dependency "activeadmin", ">= 3.5", "< 4"

s.files = `git ls-files`.split("\n")
Expand Down
4 changes: 4 additions & 0 deletions tasks/test.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ desc "Creates a test rails app for the specs to run against"
task :setup do
require "rails/version"

# The template throws the generated Gemfile away, so the app runs under this gem's sprockets
# bundle with no importmap-rails. Without --skip-javascript, Rails 8.1 writes
# `stale_when_importmap_changes` into ApplicationController and booting it raises NameError.
args = %w[
--skip-spring
--skip-bootsnap
--skip-test
--skip-system-test
--skip-javascript
-m spec/support/rails_template.rb
].join(" ")

Expand Down
Loading