Skip to content

ci: add Ruby 4.0 to the test matrix#57

Open
erimicel wants to merge 2 commits intotypesense:masterfrom
OLIOEX:ci-ruby-4
Open

ci: add Ruby 4.0 to the test matrix#57
erimicel wants to merge 2 commits intotypesense:masterfrom
OLIOEX:ci-ruby-4

Conversation

@erimicel
Copy link
Copy Markdown
Contributor

@erimicel erimicel commented Apr 27, 2026

Summary

Adds Ruby 4.0 to the CI test matrix.

-        ruby-version: ['3.0', '3.2', '3.3', '3.4']
+        ruby-version: ['3.0', '3.2', '3.3', '3.4', '4.0']

Ruby 4.0 was released in late 2025. The gem already runs cleanly on it — bundle exec rubocop and the full bundle exec rspec suite pass on 4.0.2 with no source changes. Adding it to the matrix so any future regressions on Ruby 4 are caught before release.

The gem's required_ruby_version = '>= 2.7' is unchanged.

PR Checklist

Ruby 4.0 was released in late 2025; the gem already runs cleanly on it
locally (rubocop and the full RSpec suite pass on 4.0.2). Adding it to
the CI matrix so regressions on Ruby 4 are caught before release.

The gem's required Ruby is `>= 2.7` and is unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@tharropoulos
Copy link
Copy Markdown
Contributor

Seems like there's an issue with bundler for Ruby 4.0

@erimicel
Copy link
Copy Markdown
Contributor Author

Seems like there's an issue with bundler for Ruby 4.0

Thank you for reviewing 🙏 issue was that ruby 4.0 ships Bundler 4 by default, but gemfile constrained bundler ~> 2.0, which excludes Bundler ≥ 3, as a solution relaxed to bundler >= 2.0 so bundler 2/3/4 all satisfy it.

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