File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments