Drop runtime support for Ruby 3.2 - #3095
Merged
Merged
Conversation
Ruby 3.2 reached EOL on 2026-04-01, and CI has been running 3.3, 3.4, 4.0 and head for a while, so 3.2 is declared as supported without being tested. Raise `required_ruby_version` to `>= 3.3` and delete the code that only existed for 3.2: - `Prototype::Helpers#parse_comments` had a Ripper implementation for 3.2, where Prism cannot parse the source. Only the Prism one is left. - The `RUBY_VERSION >= '3.2'` guards around `Data` in the runtime prototype are always true now. `.rubocop.yml` pinned `TargetRubyVersion` to 3.4 while the gem accepted 3.2. Drop the setting rather than correct it: with nothing pinned, RuboCop reads `required_ruby_version` from the gemspec, so the two cannot drift apart again. The tree is clean at the inferred 3.3. The `if false` block that set `required_ruby_version` to `>= 3.4` is dead code from an earlier experiment and goes with it. Closes #2830 Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ruby 3.2 reached EOL on 2026-04-01, and CI has been running 3.3, 3.4, 4.0 and head for a while, so 3.2 was declared as supported without being tested.
required_ruby_versionbecomes>= 3.3, which is what CI actually covers. Users still on 3.2 stay on the 4.1 line.Closes #2830.
Generated by Claude Code