Skip to content

Run CI on supported Ruby 3.3, 3.4, and 4.0 - #35

Merged
aflanagan merged 1 commit into
masterfrom
agent/supported-ruby-ci-06dd
Nov 4, 2026
Merged

aflanagan merged 1 commit into
masterfrom
agent/supported-ruby-ci-06dd

Conversation

@aflanagan

Copy link
Copy Markdown
Contributor

Summary

Updates the spec job so the suite runs on every stable Ruby branch that is still supported.

  • Old matrix: 2.7, 3.0, 3.1, 3.2, 3.3, 3.4
  • New matrix: 3.3, 3.4, 4.0

Source of truth is the Ruby Maintenance Branches page, checked 2026-11-04:

Branch Status
4.0 normal maintenance
3.4 normal maintenance
3.3 security maintenance (EOL expected 2027-03-31)
3.2 eol (EOL 2026-04-01)
3.1, 3.0, 2.7 eol

That matches endoflife.date/ruby (page last updated 24 October 2026): 4.0, 3.4, and 3.3 are in support, and 3.2 ended on 31 March 2026.

Ruby 4.1 is on the branches page as a preview (normal maintenance until TBD). It is not a stable release, it is not listed as supported on endoflife.date, and ruby/setup-ruby only publishes 4.1.0-preview1. It is not in this matrix.

Ruby 4.0 moved logger from a default gem to a bundled gem (Ruby 4.0.0 release notes). Under Bundler, require 'logger' then raises LoadError. The gemspec now has a runtime dependency on logger. The version Bundler resolved, 1.7.0, requires Ruby >= 2.5, which is the floor the gemspec already declares. Locally, bundle exec rake passed on 3.3.13, 3.4.12, and 4.0.9 (34 examples, 0 failures on each).

publish.yml and the commented-out RuboCop job are unchanged.

For August to decide

cronitor.gemspec still sets required_ruby_version to >= 2.5. The new matrix's oldest version is 3.3.

Suggestion: raise required_ruby_version to >= 3.3, the oldest branch still in security maintenance. Left unchanged in this PR.

Open in Web Open in Cursor 

Drop EOL branches from the spec matrix and depend on logger so the suite loads under Bundler on Ruby 4.0.

Co-authored-by: August Flanagan <aflanagan@users.noreply.github.com>
@aflanagan
aflanagan merged commit c2250a7 into master Nov 4, 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