From 2c219ab2155483e23d1a6e9fd5262d0206f837e4 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 14 Jun 2023 16:40:47 +0900 Subject: [PATCH] [rubygems/rubygems] Rubocop 1.51.0 or later didn't support Ruby 2.6 https://github.com/rubygems/rubygems/commit/522b5f1ecd --- spec/bundler/support/path.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index 8d1807b56ca824..240cfe7bc97f8c 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -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