Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centralize Ruby Version to .ruby-version #36

Merged
merged 3 commits into from
Apr 11, 2024
Merged

Conversation

jenshenny
Copy link
Contributor

@jenshenny jenshenny commented Apr 2, 2024

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, 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
  • 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
  • There is no TargetRubyVersion defined in rubocop.yml This would be read from .ruby-version but this library supports older versions so it was not removed.
  • 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”)

Please merge this PR if it looks good, this PR will be addressed if there isn't any activity after 4 weeks.

@jenshenny jenshenny marked this pull request as ready for review April 10, 2024 20:40
@jenshenny jenshenny requested a review from lavoiesl April 10, 2024 20:40
.ruby-version Outdated
@@ -0,0 +1 @@
2.7.8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is designed to be ran with system ruby.
As of macOS Sonoma 14.4.1, this is still:

$ /usr/bin/ruby --version
ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]

So the version should be 2.6.10

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah gotcha! Changed back 👍

Copy link
Contributor

@lavoiesl lavoiesl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🙏🏼

@lavoiesl lavoiesl merged commit 5395b49 into main Apr 11, 2024
7 checks passed
@lavoiesl lavoiesl deleted the centralize_ruby_version branch April 11, 2024 14:30
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