Skip to content

Support Rails 8.1 and Ruby 4.0 - #24

Closed
theghall wants to merge 1 commit into
masterfrom
rails-8-1-ruby-4
Closed

theghall wants to merge 1 commit into
masterfrom
rails-8-1-ruby-4

Conversation

@theghall

Copy link
Copy Markdown
Member

Summary

  • Widens the gemspec's Rails constraint from < 8.1 to < 8.2 so apps on Rails 8.1 (currently 8.1.3.1) can use the gem
  • Pins json < 3 in the Gemfile — json 3.0 made JSON.parse's options keyword-only, which breaks ActiveSupport::JSON.decode on all current Rails releases (9 of 30 tests error without it). This pin only affects this repo's test environment; consumers resolve their own json version. Remove once Rails ships a fix.
  • Adds Ruby 4.0 to the CI matrix and bumps actions/checkout v2 → v4 (v2 runs a deprecated Node runtime)

No changes to lib/app code — the gem itself is already compatible.

Testing

Full suite (30 tests) passes with 0 failures/errors against Rails 8.1.3.1 on:

  • Ruby 3.2.5
  • Ruby 3.4.7
  • Ruby 4.0.6

🤖 Generated with Claude Code

- Widened the gemspec's Rails constraint from < 8.1 to < 8.2
- Pinned json < 3 in the Gemfile: json 3.0 made JSON.parse options
  keyword-only, which breaks ActiveSupport::JSON.decode on all current
  Rails releases (test-environment only; doesn't constrain consumers)
- Added Ruby 4.0 to the CI matrix and bumped actions/checkout to v4

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@theghall

Copy link
Copy Markdown
Member Author

Already covered in PR#23

@theghall theghall closed this Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants