Ruby 3.x upgrade and version bump to 2.0.0#8
Merged
JPDuchesne merged 3 commits intomasterfrom Feb 21, 2026
Merged
Conversation
- Bump required_ruby_version from ~> 2.5 to >= 3.0 - Upgrade parser dependency from ~> 2.5 to >= 3.0 - Upgrade unparser dependency from ~> 0.4 to >= 0.6 - Replace coveralls with simplecov (coveralls is unmaintained) - Replace pry-byebug with pry >= 0.14 (byebug unsupported on Ruby 3) - Remove Travis CI version logic from gemspec - Fix File.exists? -> File.exist? (removed in Ruby 3.2) - Fix begin-node unwrapping when transform! annotations are removed to prevent unnecessary parenthesization with unparser 0.8+ - Update test expectations for unparser 0.8 output formatting Co-authored-by: Cursor <cursoragent@cursor.com>
- Require Ruby >= 3.0, update parser (>= 3.0) and unparser (>= 0.6) - Replace Travis CI with GitHub Actions (ci.yml + release.yml) - Replace Coveralls with SimpleCov + Codecov - Replace pry-byebug with pry (Ruby 3 compatible) - Add tag-version validation in release workflow - Add tests for begin node unwrapping edge cases and casgn support - Update README with new badges and release process documentation Co-authored-by: Cursor <cursoragent@cursor.com>
Ruby 3.0 is EOL, and unparser 0.8.x + Bundler 2.5.x have compatibility issues with Ruby 3.0/3.1's RubyGems. Co-authored-by: Cursor <cursoragent@cursor.com>
2 tasks
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.
Summary
parser(>= 3.0) andunparser(>= 0.6) for Ruby 3.x compatibilityTransformation#process_nodeto avoid unnecessary parenthesization by unparser 0.8.xpry-byebugwithpry(Ruby 3 compatible),coverallswithsimplecovCI/CD
ci.yml: tests on Ruby 3.2–3.3,release.yml: automated gem publish on tag push via Trusted Publishing)version.rbbefore publishingTests
Docs
Test plan
Setup required after merge
CODECOV_TOKENsecret