* lib/rubygems.rb (Gem.find_files): fixed variable scope.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-08-08 07:27:11 +00:00
Родитель e45d17b9d2
Коммит b26000068e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -473,9 +473,9 @@ module Gem
# versions of the same gem.
def self.find_files(path)
suffixes.map do |sfx|
load_path_files = suffixes.map do |sfx|
base = path + sfx
load_path_files = $LOAD_PATH.map {|load_path|
$LOAD_PATH.map {|load_path|
File.expand_path(base, load_path)
}.select {|f| File.file?(f.untaint)}
end.flatten