[rubygems/rubygems] Fix old rubies compat
https://github.com/rubygems/rubygems/commit/41e60cdb6b
This commit is contained in:
parent
00cd5d74ce
commit
37abd2c390
@ -38,7 +38,7 @@ module Kernel
|
|||||||
|
|
||||||
resolved_path = begin
|
resolved_path = begin
|
||||||
rp = nil
|
rp = nil
|
||||||
$LOAD_PATH[0...Gem.load_path_insert_index].each do |lp|
|
$LOAD_PATH[0...Gem.load_path_insert_index || -1].each do |lp|
|
||||||
Gem.suffixes.each do |s|
|
Gem.suffixes.each do |s|
|
||||||
full_path = File.join(lp, "#{path}#{s}")
|
full_path = File.join(lp, "#{path}#{s}")
|
||||||
if File.file?(File.expand_path(full_path))
|
if File.file?(File.expand_path(full_path))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user