[rubygems/rubygems] Fix jruby issue
https://github.com/rubygems/rubygems/commit/fc3f722164
This commit is contained in:
parent
37abd2c390
commit
b8984370da
@ -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))
|
||||
full_path = File.expand_path(File.join(lp, "#{path}#{s}"))
|
||||
if File.file?(full_path)
|
||||
rp = full_path
|
||||
break
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user