mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
e45d17b9d2
commit
b26000068e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue