summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-08 07:27:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-08 07:27:11 +0000
commitb26000068e8d87ea69501cadc93bd2bdc9f2a692 (patch)
tree79b4e1880e51b2f25ef835d601bdc95a6ad41868 /lib
parente45d17b9d24d3d70eb974f52a6e981b212f47f6c (diff)
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 25da9d9cf8..eca80cc985 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -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