Skip to content

Commit

Permalink
🔧 config/ruby-3.2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pboling committed May 10, 2023
1 parent 0739579 commit 272512f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/ruby-3.1.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
inherit_from: ./base.yml
inherit_from: ./ruby-3.2.yml

AllCops:
TargetRubyVersion: 3.1
Expand Down
4 changes: 4 additions & 0 deletions config/ruby-3.2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
inherit_from: ./base.yml

AllCops:
TargetRubyVersion: 3.2
2 changes: 2 additions & 0 deletions lib/standard/base/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def determine_yaml_path(desired_version)
"ruby-3.0.yml"
elsif desired_version < Gem::Version.new("3.2")
"ruby-3.1.yml"
elsif desired_version.segments[0] == 3 && desired_version.segments[1] == 2 # exactly 3.2.x so HEAD will fall through to default.
"ruby-3.2.yml"
else
default
end
Expand Down

0 comments on commit 272512f

Please sign in to comment.