зеркало из https://github.com/github/ruby.git
* 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:
Родитель
e45d17b9d2
Коммит
b26000068e
|
@ -473,9 +473,9 @@ module Gem
|
||||||
# versions of the same gem.
|
# versions of the same gem.
|
||||||
|
|
||||||
def self.find_files(path)
|
def self.find_files(path)
|
||||||
suffixes.map do |sfx|
|
load_path_files = suffixes.map do |sfx|
|
||||||
base = path + sfx
|
base = path + sfx
|
||||||
load_path_files = $LOAD_PATH.map {|load_path|
|
$LOAD_PATH.map {|load_path|
|
||||||
File.expand_path(base, load_path)
|
File.expand_path(base, load_path)
|
||||||
}.select {|f| File.file?(f.untaint)}
|
}.select {|f| File.file?(f.untaint)}
|
||||||
end.flatten
|
end.flatten
|
||||||
|
|
Загрузка…
Ссылка в новой задаче