[rubygems/rubygems] bin/rubocop -A

https://github.com/rubygems/rubygems/commit/e8a4184429
This commit is contained in:
Hiroshi SHIBATA 2023-07-21 12:30:49 +09:00 committed by git
parent 979d1fa5fe
commit cf1f2e9d06
2 changed files with 2 additions and 3 deletions

View File

@ -251,7 +251,7 @@ module Bundler
kernel_class.send(:define_method, :require) do |file|
name = file.tr("/", "-")
if (::Gem::BUNDLED_GEMS.keys - specs.to_a.map(&:name)).include?(name)
unless $LOADED_FEATURES.any?{|f| f.end_with?("#{name}.rb", "#{name}.#{RbConfig::CONFIG['DLEXT']}")}
unless $LOADED_FEATURES.any? {|f| f.end_with?("#{name}.rb", "#{name}.#{RbConfig::CONFIG["DLEXT"]}") }
target_file = begin
Bundler.default_gemfile.basename
rescue GemfileNotFound

View File

@ -1566,7 +1566,6 @@ end
gem "rack"
G
ruby <<-R
module Gem
remove_const :BUNDLED_GEMS if defined?(BUNDLED_GEMS)