Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Centralize Ruby Version to .ruby-version #76

Merged
merged 2 commits into from
Apr 17, 2024
Merged

Conversation

alexcrocha
Copy link
Contributor

What are you trying to accomplish?

The .ruby-version file is the ecosystem standard for defining a Ruby version. This PR adds the .ruby-version file, ensures a required_ruby_version is set, and removes all other references to Ruby in this repository, aligning it with the standard.

What should reviewers focus on?

Important

Please verify the following before merging:

Verify that the changes in the PR meets the following requirements or adjust manually to make it compliant:

  • .ruby-version file is present with the correct Ruby version defined
  • A required_ruby_version in your gemspec is set
  • There is no Ruby version present in the dev.yml Ruby task (before: - ruby: x.x.x, after: - ruby)
  • There is no Ruby version/requirement referenced in the Gemfile (no lines with ruby <some-version>)
  • A Gemfile.lock is built with the defined Ruby version
  • The version of Rubocop installed is 1.61.0 or greater
  • There is no TargetRubyVersion defined in rubocop.yml
  • There is no Ruby argument present in ruby/setup-ruby Github Actions that do not run on a Ruby matrix (no lines with ruby-version: “x.x”)

This PR will be merged if there isn't any activity after 4 weeks.

@alexcrocha
Copy link
Contributor Author

alexcrocha commented Mar 21, 2024

CI is failing on rails-edge because it no longer supports Ruby 3.0 (source).
With Ruby 3.0 reaching its EOL at the end of this month (source) I suggest we also drop our support for it.

@kmcphillips
Copy link
Member

I'm good with removing it. We're going to do a release anyway, so may as well bump the minor version and just say it's 3.1.0+.

Will need to update the CI matrix:

And all these changes mirrored to measured.

@paracycle
Copy link
Member

CI is failing on rails-edge because it no longer supports Ruby 3.0 (source).

I already fixed this problem on main. Rebasing will fix it for you too.

Ruby 2.7 is EOL and we are not testing against it anymore.
I believe this line was missed in PR #75
The `.ruby-version` file is the ecosystem standard for defining a Ruby
version. This commit adds the `.ruby-version` file and removes all other
references as they will read from this file.
@alexcrocha alexcrocha merged commit 62f9550 into main Apr 17, 2024
31 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants