ruby-changes:16925
From: nobu <ko1@a...>
Date: Sun, 8 Aug 2010 16:27:19 +0900 (JST)
Subject: [ruby-changes:16925] Ruby:r28921 (trunk): * lib/rubygems.rb (Gem.find_files): fixed variable scope.
nobu 2010-08-08 16:27:11 +0900 (Sun, 08 Aug 2010) New Revision: 28921 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28921 Log: * lib/rubygems.rb (Gem.find_files): fixed variable scope. Modified files: trunk/lib/rubygems.rb Index: lib/rubygems.rb =================================================================== --- lib/rubygems.rb (revision 28920) +++ lib/rubygems.rb (revision 28921) @@ -473,9 +473,9 @@ # 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/