aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-06-14 16:40:47 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-06-15 07:01:27 +0900
commit2c219ab2155483e23d1a6e9fd5262d0206f837e4 (patch)
tree07e850f38c61a208596e7da5eb21d96b4756dd92 /spec
parent3e7f5b02aeb2a55b27d402024f42821684d85ec6 (diff)
downloadruby-2c219ab2155483e23d1a6e9fd5262d0206f837e4.tar.gz
[rubygems/rubygems] Rubocop 1.51.0 or later didn't support Ruby 2.6
https://github.com/rubygems/rubygems/commit/522b5f1ecd
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/support/path.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb
index 8d1807b56c..240cfe7bc9 100644
--- a/spec/bundler/support/path.rb
+++ b/spec/bundler/support/path.rb
@@ -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