Skip to content

Add Rails 8.2 support#225

Merged
modosc merged 2 commits intomodosc:mainfrom
lylo:rails-8.2-support
Oct 29, 2025
Merged

Add Rails 8.2 support#225
modosc merged 2 commits intomodosc:mainfrom
lylo:rails-8.2-support

Conversation

@lylo
Copy link
Contributor

@lylo lylo commented Oct 22, 2025

Summary

This PR adds support for Rails 8.2 by updating the gem dependencies to allow Rails versions up to (but not including) 8.3.0.

Changes

  • Updated actionpack, activesupport, and railties dependency constraints from < 8.2.0 to < 8.3.0 in the gemspec
  • Added rails-8.2 appraisal configuration for testing against Rails 8.2.0.alpha

Testing

The gem should work with Rails 8.2 as there are no breaking changes in the Rails APIs that this gem depends on (request handling and middleware).

Motivation

Rails 8.2.0.alpha is now available, and projects using the edge version of Rails cannot currently use this gem due to the version constraint.

Updates the gemspec to support Rails 8.2.x by changing the upper bound
from < 8.2.0 to < 8.3.0 for actionpack, activesupport, and railties.

Also adds a rails-8.2 appraisal configuration for testing against
Rails 8.2.0.alpha.
@lylo
Copy link
Contributor Author

lylo commented Oct 25, 2025

Apologies. Specs run locally but the Github Action is failing because there's no gem for 8.2.0.alpha yet, it's only referenced in Rails main https://github.com/rails/rails/blob/f73b7f173b3004ec9e920b99dafaaf029887847a/RAILS_VERSION

Appraisals Outdated
gem 'rails', '~> 8.1.0.rc1'
end

appraise 'rails-8.2' do
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for now you can just remove this piece and it should be ok. once there's an actual branch/gem release this can be added back.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've made that change

@modosc modosc merged commit d0e05ee into modosc:main Oct 29, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants