diff options
author | Samuel E. Giddins <segiddins@segiddins.me> | 2015-04-12 15:08:50 -0700 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-01-25 10:45:41 -0600 |
commit | 134739c703b317a305b98830b8fb01ee188e5fdb (patch) | |
tree | ec2eb424ad7ae329ee658e11a28ed2e52cf569e4 /lib/bundler/fetcher | |
parent | da2adf34ecff1a7198413e2df6b0bc0841ab3553 (diff) | |
download | bundler-134739c703b317a305b98830b8fb01ee188e5fdb.tar.gz |
[CompactIndex] Return an EndpointSpecification from #fetch_spec
Diffstat (limited to 'lib/bundler/fetcher')
-rw-r--r-- | lib/bundler/fetcher/compact_index.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bundler/fetcher/compact_index.rb b/lib/bundler/fetcher/compact_index.rb index 6f3e8323ab..5d09af96a6 100644 --- a/lib/bundler/fetcher/compact_index.rb +++ b/lib/bundler/fetcher/compact_index.rb @@ -19,7 +19,10 @@ module Bundler def fetch_spec(spec) spec = spec - [nil, 'ruby', ''] - compact_gem_list.spec(*spec) + return unless contents = compact_gem_list.spec(*spec) + contents.unshift(spec.first) + contents[3].map! { |d| Gem::Dependency.new(*d) } + EndpointSpecification.new(*contents) end def available? |