diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-10 08:00:19 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-10 08:00:19 +0000 |
commit | 5d613c83ccb6992c6b99e5a23512719604bbdae9 (patch) | |
tree | 8f1591102f7c8e1a27bd3c30b43567ced67e2519 /lib/rubygems/source_index.rb | |
parent | c12b28936266c205d174458f0bd21766154048f7 (diff) | |
download | ruby-5d613c83ccb6992c6b99e5a23512719604bbdae9.tar.gz |
Import RubyGems r1601. [ruby-core:15381].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/source_index.rb')
-rw-r--r-- | lib/rubygems/source_index.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rubygems/source_index.rb b/lib/rubygems/source_index.rb index 2df28d9561..1283f8f904 100644 --- a/lib/rubygems/source_index.rb +++ b/lib/rubygems/source_index.rb @@ -46,7 +46,7 @@ module Gem if deprecated.empty? from_gems_in(*installed_spec_directories) else - from_gems_in(*deprecated) + from_gems_in(*deprecated) # HACK warn end end @@ -118,6 +118,7 @@ module Gem def load_gems_in(*spec_dirs) @gems.clear specs = Dir.glob File.join("{#{spec_dirs.join(',')}}", "*.gemspec") + specs.each do |file_name| gemspec = self.class.load_specification(file_name.untaint) add_spec(gemspec) if gemspec |