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

Use a .ruby-version #101

Merged
merged 4 commits into from
Mar 22, 2024
Merged

Use a .ruby-version #101

merged 4 commits into from
Mar 22, 2024

Conversation

etiennebarrie
Copy link
Member

In order to standardize on using .ruby-version, this bumps Rubocop (we need 1.61 that pulls the target ruby version from the gemspec).

To update Rubocop I had to update rubocop-shopify and fix the style. I changed some objects that were classes to be modules extending themselves, instead of defining the method on the singleton class. This includes all the Behavior objects and some test objects. I don't think this is an issue since users were encouraged to use the existing behaviors or create their own, but no subclassing was required.

I also dropped support for Ruby 2.7 which has been EOL for almost a year, and found a code path for Active Support < 5 which I've also removed.

Copy link

@jenshenny jenshenny left a comment

Choose a reason for hiding this comment

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

@george-ma
Copy link

+1 to removing the TargetRubyVersions in the .rubocop.yml but yea everything else looks good 👍🏻

@etiennebarrie
Copy link
Member Author

Good catch, I missed it even though I had used your script 🤦
Fixed now!

@etiennebarrie etiennebarrie merged commit 49818d4 into main Mar 22, 2024
41 checks passed
@etiennebarrie etiennebarrie deleted the centralize_ruby_version branch March 22, 2024 14:54
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.

3 participants