[rubygems/rubygems] Rubocop 1.51.0 or later didn't support Ruby 2.6

https://github.com/rubygems/rubygems/commit/522b5f1ecd
This commit is contained in:
Hiroshi SHIBATA 2023-06-14 16:40:47 +09:00
parent 3e7f5b02ae
commit 2c219ab215

View File

@ -292,11 +292,11 @@ module Spec
end
def rubocop_gemfile_basename
tool_dir.join("rubocop_gems.rb")
tool_dir.join(RUBY_VERSION.start_with?("2.6") ? "rubocop26_gems.rb" : "rubocop_gems.rb")
end
def standard_gemfile_basename
tool_dir.join("standard_gems.rb")
tool_dir.join(RUBY_VERSION.start_with?("2.6") ? "standard26_gems.rb" : "standard_gems.rb")
end
def tool_dir