summaryrefslogtreecommitdiff
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems.rb')
-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