[rubygems/rubygems] Fix old rubies compat

https://github.com/rubygems/rubygems/commit/41e60cdb6b
This commit is contained in:
David Rodríguez 2019-04-03 18:00:02 +02:00 committed by Hiroshi SHIBATA
parent 00cd5d74ce
commit 37abd2c390
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -38,7 +38,7 @@ module Kernel
resolved_path = begin
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|
full_path = File.join(lp, "#{path}#{s}")
if File.file?(File.expand_path(full_path))