Declare required_ruby_version
2.7 and run CI against Ruby 2.7 - 3.1, and minimum Rubocop version
#389
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.
The last time the config was updated (#386), we missed that we were adding a dependency on a more recent version of Rubocop than the one declared as minimum in the
gemspec
, as mentioned in #388 (comment).To address this, and prevent it from happening again, the following changes are made:
rubocop
version is bumped accordinglyGemfile.lock
, CI now also runs against the version ofrubocop
declared to be the minimumThis more recent version also drops support for Ruby 2.5 and made me realize we should be testing against multiple Ruby versions, so the following other changes are made:
required_ruby_version
is declared ingemspec
2.7
was chosen as it is the oldest version not at end-of-life2.7
,3.0
, and3.1
required_ruby_version