diff options
-rwxr-xr-x | lib/rubygems/core_ext/kernel_require.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -40,8 +40,8 @@ module Kernel rp = nil $LOAD_PATH[0...Gem.load_path_insert_index || -1].each do |lp| Gem.suffixes.each do |s| - full_path = File.join(lp, "#{path}#{s}") - if File.file?(File.expand_path(full_path)) rp = full_path break end |