diff options
author | Andre Arko <andre@arko.net> | 2014-08-15 21:43:27 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-08-15 21:43:27 -0700 |
commit | d85e7b9fe9ab25d13aadf9171ce67f70e13bd5b7 (patch) | |
tree | 12a0a2183107da235c73671831318915c170ffe1 | |
parent | 2314d5c36345962ad4d41ba6b1c5b5781a64a8e1 (diff) | |
download | bundler-d85e7b9fe9ab25d13aadf9171ce67f70e13bd5b7.tar.gz |
use Index#build
-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 e8742e2174..fc154a29d9 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 |