Skip to content

Add newer supported Ruby versions to CI matrix, drop <3.1 - #4

Merged
rosston merged 3 commits into
mainfrom
more-ruby-versions
Sep 22, 2026
Merged

rosston merged 3 commits into
mainfrom
more-ruby-versions

Conversation

@rosston

@rosston rosston commented Sep 22, 2026

Copy link
Copy Markdown
Member

Supported versions based on https://endoflife.date/ruby

This also drops support for Ruby <3.1. The versions in between 2.6 and 3.1 have been EOL for quite a while:

  • 2.6 went EOL on 2022-03-31
  • 2.7 went EOL on 2023-03-31
  • 3.0 went EOL on 2024-04-23

rubocop/standard/parser were pinned to versions that relied on racc,
mutex_m, and ostruct being bundled as Ruby default gems, which is no
longer true on Ruby 3.3+. Updated the lint gems and added ostruct and
fiddle as explicit dependencies so `rake` (test + standard) passes on
Ruby 2.6 through 4.0.
CI's bundler-cache uses `bundle install --deployment`, which installs
the exact versions in the single committed Gemfile.lock for every
matrix job (no per-job re-resolution). That makes one lockfile the
lowest common denominator across the whole Ruby matrix.

minitest has no version supporting both Ruby 2.6 and 4.0 (versions
through 5.26.0 cap at `< 4.0`; 5.26.1+ require `>= 2.7|3.1`), so 2.6
had to go. It's long EOL anyway. Bumped required_ruby_version to match.

With the floor at 3.1, pulled rubocop/standard/parser up to current
(avoiding the `prism` dependency, which needs Ruby >= 2.7, and newer
`parallel`, which needs Ruby >= 3.3 - pinned `parallel < 2` and
`minitest < 6` to stay compatible with 3.1). Also added `base64` as an
explicit dependency: another default-gem-turned-bundled-gem that
rubocop's HTML formatter needs but doesn't declare.
@rosston rosston changed the title Add newer supported Ruby versions to CI matrix Add newer supported Ruby versions to CI matrix, drop 2.6 Sep 22, 2026
@rosston rosston changed the title Add newer supported Ruby versions to CI matrix, drop 2.6 Add newer supported Ruby versions to CI matrix, drop <3.1 Sep 22, 2026
@rosston
rosston merged commit ee9519a into main Sep 22, 2026
4 checks passed
@rosston
rosston deleted the more-ruby-versions branch September 22, 2026 15:45
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.

1 participant