Skip to content

Add Ruby 4.0 support#3

Merged
JPDuchesne merged 1 commit intomasterfrom
jpd/ruby4-support
Feb 21, 2026
Merged

Add Ruby 4.0 support#3
JPDuchesne merged 1 commit intomasterfrom
jpd/ruby4-support

Conversation

@JPDuchesne
Copy link
Contributor

@JPDuchesne JPDuchesne commented Feb 21, 2026

Summary

  • Add Ruby 4.0 to CI matrix (3.2, 3.3, 4.0)
  • Bump version to 2.1.0
  • Ruby 4.0 support is inherited from ast-transform v2.1.0 (Add Ruby 4.0 support via Prism parser ast-transform#9) which switches to Prism::Translation::Parser
  • No code changes needed in rspock itself -- it uses Parser::AST::Node (not CurrentRuby) and gets the parser swap through its ast-transform dependency

Test plan

  • All 129 tests pass on Ruby 3.3
  • All 129 tests pass on Ruby 4.0
  • CI passes on Ruby 3.2, 3.3, 4.0

Made with Cursor

- Add Ruby 4.0 to CI matrix (3.2, 3.3, 4.0)
- Bump version to 2.1.0

Ruby 4.0 support is inherited from ast-transform v2.1.0 which switched
to Prism::Translation::Parser. No code changes needed in rspock itself.

Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@JPDuchesne JPDuchesne merged commit a66af47 into master Feb 21, 2026
3 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