summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2019-05-19 11:31:17 -0400
committerHiroshi SHIBATA <[email protected]>2019-08-17 07:35:48 +0900
commitb8984370daaff4809b04330a6d7098f171568f79 ()
treed2921895c0d293ed7d5492d40767ac25aebe937a /lib
parent37abd2c390bb93fe1a306465bb5de35feb70a82a (diff)
[rubygems/rubygems] Fix jruby issue
https://.com/rubygems/rubygems/commit/fc3f722164
-rwxr-xr-xlib/rubygems/core_ext/kernel_require.rb4
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