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

Centralize Ruby Version to .ruby-version #758

Closed
wants to merge 3 commits into from

Conversation

jenshenny
Copy link

@jenshenny jenshenny commented Mar 26, 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, 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 (reads from required_ruby_version on Rubocop 1.61.0)
  • 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”)

To establish consistency, the required_ruby_versionis set to 2.7. If you think that another version is a better fit, please make the applicable changes.

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

add a .ruby-version file and remove reference in dev.yml
TargetRubyVersion will read from required_ruby_version in Rubocop 1.61+
@jenshenny
Copy link
Author

The CI failures look unrelated to the changes (CI fails on main at the moment https://github.com/Shopify/theme-check/actions/runs/8904032322/job/24453139188). @karreiro @mgmanzella would you or your team be able to push this along?

Copy link
Contributor

@karreiro karreiro left a comment

Choose a reason for hiding this comment

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

Thank you for this PR, @jenshenny!

We are planning to archive this repository very soon in favor of https://github.com/shopify/theme-tools, so I believe we may close this PR.

Please feel free to ping me on Slack if you need any extra details about the timeline :)

@jenshenny
Copy link
Author

Ah gotcha! Thanks for letting me know @karreiro - I'll close this off :)

@jenshenny jenshenny closed this May 3, 2024
@jenshenny jenshenny deleted the centralize_ruby_version branch May 3, 2024 14:26
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.

2 participants