Add newer supported Ruby versions to CI matrix, drop <3.1 - #4
Merged
Merged
Conversation
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.
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.
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: