summaryrefslogtreecommitdiff
path: root/lib/bundler/fetcher
diff options
context:
space:
mode:
authorSamuel E. Giddins <segiddins@segiddins.me>2015-04-12 15:08:50 -0700
committerSamuel Giddins <segiddins@segiddins.me>2016-01-25 10:45:41 -0600
commit134739c703b317a305b98830b8fb01ee188e5fdb (patch)
treeec2eb424ad7ae329ee658e11a28ed2e52cf569e4 /lib/bundler/fetcher
parentda2adf34ecff1a7198413e2df6b0bc0841ab3553 (diff)
downloadbundler-134739c703b317a305b98830b8fb01ee188e5fdb.tar.gz
[CompactIndex] Return an EndpointSpecification from #fetch_spec
Diffstat (limited to 'lib/bundler/fetcher')
-rw-r--r--lib/bundler/fetcher/compact_index.rb5
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?