diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfee892..772f701 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,15 +14,9 @@ jobs: strategy: fail-fast: false matrix: - ruby: ['3.2', '3.3', '3.4'] - rails: ['7.1.0', '7.2.0', '8.0.0', '8.1.0'] + ruby: ['3.3', '3.4', '4.0'] + rails: ['8.0.0', '8.1.0'] activeadmin: ['3.2.0', '3.5.0'] - exclude: - # Active Admin 3.2 predates Rails 8 support. - - rails: '8.0.0' - activeadmin: '3.2.0' - - rails: '8.1.0' - activeadmin: '3.2.0' env: RAILS: ${{ matrix.rails }} AA: ${{ matrix.activeadmin }} diff --git a/Gemfile b/Gemfile index 0955c81..d2ed288 100644 --- a/Gemfile +++ b/Gemfile @@ -3,7 +3,7 @@ source 'https://rubygems.org' # Specify your gem's dependencies in active_admin_date_range_preset.gemspec gemspec -default_rails_version = '7.1.0' +default_rails_version = '8.0.0' default_activeadmin_version = '3.5.0' gem 'rails', "~> #{ENV['RAILS'] || default_rails_version}" diff --git a/README.md b/README.md index dc2959d..8f0b7c8 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,13 @@ This is how it looks like ## Compatibility -Active Admin 3.2 or newer, in the 3.x series. Rails 7.1 or newer, Ruby 3.2 or -newer. CI covers Active Admin 3.2 and 3.5 against the Rails versions in the -matrix. +Active Admin 3.2 or newer, in the 3.x series. Rails 8.0 or newer, Ruby 3.3 or +newer. CI covers Active Admin 3.2 and 3.5 on Ruby 3.3, 3.4 and 4.0 against +Rails 8.0 and 8.1 — every Rails series still supported upstream. + +Version 0.4.0 raised the Rails floor from 7.1 to 8.0. Every 7.x series is out +of support — 7.1 since October 2025, 7.2 since August 2026 — and none of them +is tested. Stay on 0.3.x if you are still on Rails 7. The Rails and Ruby floors are declared explicitly because Active Admin 3.2 still allows `railties >= 6.1` and Ruby `>= 2.6`, both long past end of life diff --git a/active_admin_date_range_preset.gemspec b/active_admin_date_range_preset.gemspec index 689cb4a..9dada67 100644 --- a/active_admin_date_range_preset.gemspec +++ b/active_admin_date_range_preset.gemspec @@ -32,10 +32,11 @@ Gem::Specification.new do |spec| spec.add_dependency "activeadmin", "~> 3.2" # Active Admin 3.2 itself still allows railties >= 6.1 and Ruby >= 2.6, - # both of which reached end of life years ago and neither of which is - # tested here. Without these the gem would inherit that claim by silence. - spec.add_dependency "railties", ">= 7.1" - spec.required_ruby_version = ">= 3.2" + # both of which reached end of life years ago. Declare what CI covers, so + # the gem does not inherit that claim by silence. Every Rails 7.x series is + # out of support: 7.1 since October 2025, 7.2 since August 2026. + spec.add_dependency "railties", ">= 8.0" + spec.required_ruby_version = ">= 3.3" spec.add_development_dependency "rake" end diff --git a/lib/active_admin_date_range_preset/version.rb b/lib/active_admin_date_range_preset/version.rb index 2a65ec9..1c60b15 100644 --- a/lib/active_admin_date_range_preset/version.rb +++ b/lib/active_admin_date_range_preset/version.rb @@ -1,3 +1,3 @@ module ActiveAdminDateRangePreset - VERSION = "0.3.1" + VERSION = "0.4.0" end diff --git a/package.json b/package.json index 4481cbd..7124a6e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@activeadmin-plugins/active_admin_date_range_preset", - "version": "0.3.1", + "version": "0.4.0", "description": "Integrate useful fast links to set date ranges in to ActiveAdmin, for example today range, week range, month range", "main": "src/active_admin_date_range_preset.js", "style": "src/active_admin_date_range_preset.scss",