1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

`Gem.load_path_insert_index always returns non-nil index after Ruby 1.9

This commit is contained in:
Hiroshi SHIBATA 2019-08-17 12:33:38 +09:00
parent 06fcf88d69
commit 260ef51a73
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 || -1].each do |lp|
$LOAD_PATH[0...Gem.load_path_insert_index].each do |lp|
safe_lp = lp.dup.untaint
next if File.symlink? safe_lp
Gem.suffixes.each do |s|