summaryrefslogtreecommitdiff
path: root/lib/rubygems/installer.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-04-05 17:06:01 +0900
committergit <[email protected]>2023-04-05 09:50:29 +0000
commite003784fc8bfa527cf21c317741101a713c041c0 ()
tree0d69690aec6d5f156ed90241d6beb46e112cc503 /lib/rubygems/installer.rb
parent65d27d3c0a1235f04ca90f94e29a7f2ddfd1b574 (diff)
[rubygems/rubygems] util/rubocop -A --only Style/RegexpLiteral
https://.com/rubygems/rubygems/commit/9264d83421
-rw-r--r--lib/rubygems/installer.rb4
1 files changed, 2 insertions, 2 deletions
@@ -239,14 +239,14 @@ class Gem::Installer
next unless io.gets.to_s.include?("This file was generated by RubyGems")
ruby_executable = true
- existing = io.read.slice(%r{
^\s*(
gem \s |
load \s Gem\.bin_path\( |
load \s Gem\.activate_bin_path\(
)
(['"])(.*?)(\2),
- }x, 3)
end
return if spec.name == existing