Ruby 3.x upgrade and version bump to 2.0.0#2
Merged
JPDuchesne merged 6 commits intomasterfrom Feb 21, 2026
Merged
Conversation
- Bump required_ruby_version from ~> 2.5 to >= 3.0 - Upgrade parser from ~> 2.5 to >= 3.0, unparser from ~> 0.4 to >= 0.6 - Replace coveralls/pry-byebug with simplecov/pry (Ruby 3 compat) - Remove Travis CI version logic from gemspec - Fix consecutive :str nodes in :dstr for unparser 0.8 round-trip - Fix nil children in :begin nodes from empty class bodies - Filter nil children in process_rspock - Update test expectations for unparser 0.8 output formatting - Point ast_transform to local path for development Co-authored-by: Cursor <cursoragent@cursor.com>
- Require Ruby >= 3.0, update parser (>= 3.0) and unparser (>= 0.6) - Bump ast_transform dependency to ~> 2.0 - Replace Travis CI with GitHub Actions (ci.yml + release.yml with Trusted Publishing) - Replace Coveralls with SimpleCov + Codecov - Replace pry-byebug with pry (Ruby 3 compatible) - Add test for dstr transformation when last child is not a str node - Fix homepage URL in gemspec - 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>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
- Remove git source from Gemfile, use published ast_transform ~> 2.0 - Fix release workflow to use gem build/push instead of rake release Co-authored-by: Cursor <cursoragent@cursor.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.
Summary
parser(>= 3.0) andunparser(>= 0.6) for Ruby 3.x compatibilityast_transformdependency to~> 2.0:strnodes in dstr transformations to satisfy unparser 0.8.x strictness.compacttoprocess_rspockto handle nil children from empty class bodiespry-byebugwithpry,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
:strnode (coversSPACE_STR_ASTappend branch)Docs
Dependencies
Test plan
Setup required after merge
CODECOV_TOKENsecret