Skip to content

Commit cf1f2e9

Browse files
hsbtmatzbot
authored andcommitted
[rubygems/rubygems] bin/rubocop -A
ruby/rubygems@e8a4184429
1 parent 979d1fa commit cf1f2e9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/bundler/rubygems_integration.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,14 @@ def reverse_rubygems_kernel_mixin
244244
end
245245

246246
def replace_require(specs)
247-
return if [::Kernel.singleton_class, ::Kernel].any?{|klass| klass.respond_to?(:no_warning_require)}
247+
return if [::Kernel.singleton_class, ::Kernel].any? {|klass| klass.respond_to?(:no_warning_require) }
248248

249249
[::Kernel.singleton_class, ::Kernel].each do |kernel_class|
250250
kernel_class.send(:alias_method, :no_warning_require, :require)
251251
kernel_class.send(:define_method, :require) do |file|
252252
name = file.tr("/", "-")
253253
if (::Gem::BUNDLED_GEMS.keys - specs.to_a.map(&:name)).include?(name)
254-
unless $LOADED_FEATURES.any?{|f| f.end_with?("#{name}.rb", "#{name}.#{RbConfig::CONFIG['DLEXT']}")}
254+
unless $LOADED_FEATURES.any? {|f| f.end_with?("#{name}.rb", "#{name}.#{RbConfig::CONFIG["DLEXT"]}") }
255255
target_file = begin
256256
Bundler.default_gemfile.basename
257257
rescue GemfileNotFound

spec/bundler/runtime/setup_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,6 @@ def require(path)
15661566
gem "rack"
15671567
G
15681568

1569-
15701569
ruby <<-R
15711570
module Gem
15721571
remove_const :BUNDLED_GEMS if defined?(BUNDLED_GEMS)

0 commit comments

Comments
 (0)