diff options
author | Andre Arko <andre@arko.net> | 2014-08-15 21:43:27 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-08-16 11:26:48 -0700 |
commit | dbc24d0b53065aa13fbf51ab891916911a40b1a4 (patch) | |
tree | 1ea1bf26297858369e9108f09abaf9cf45c24bb7 /lib/bundler | |
parent | 4645f0f828e74dced2c97b3c0a2ddb1450662e45 (diff) | |
download | bundler-dbc24d0b53065aa13fbf51ab891916911a40b1a4.tar.gz |
use Index#build
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/source/rubygems.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb index 7b1806dd..cbc1d7cd 100644 --- a/lib/bundler/source/rubygems.rb +++ b/lib/bundler/source/rubygems.rb @@ -271,9 +271,7 @@ module Bundler end def remote_specs - @remote_specs ||= begin - idx = Index.new - + @remote_specs ||= Index.build do |idx| fetchers = remotes.map { |uri| Bundler::Fetcher.new(uri) } api_fetchers = fetchers.select { |f| f.use_api } index_fetchers = fetchers - api_fetchers @@ -320,8 +318,6 @@ module Bundler idx.use f.specs(nil, self) end end - - return idx end end |