Skip to content

Commit

Permalink
[rubygems/rubygems] Rubocop 1.51.0 or later didn't support Ruby 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jun 14, 2023
1 parent 3e7f5b0 commit 2c219ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/bundler/support/path.rb
Expand Up @@ -292,11 +292,11 @@ def ruby_core_tarball?
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
Expand Down

0 comments on commit 2c219ab

Please sign in to comment.