From b26000068e8d87ea69501cadc93bd2bdc9f2a692 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 8 Aug 2010 07:27:11 +0000 Subject: * 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 --- lib/rubygems.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3