Skip to content

Commit 57bf19c

Browse files
committed
Centralize Ruby Version to .ruby-version
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. > [!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.
1 parent acd4393 commit 57bf19c

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

.rubocop.yml

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ inherit_gem:
22
rubocop-shopify: rubocop.yml
33

44
AllCops:
5-
TargetRubyVersion: 2.7
65
Exclude:
76
- 'vendor/**/*'
87
- 'gemfiles/vendor/**/*'

.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.2.2

dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: erb-lint
22

33
up:
4-
- ruby: '3.2.2'
4+
- ruby
55
- bundler
66

77
commands:

0 commit comments

Comments
 (0)