summaryrefslogtreecommitdiff
path: root/lib/bundler/spec_set.rb
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2011-08-09 20:35:00 -0500
committerTerence Lee <hone02@gmail.com>2011-08-09 20:35:00 -0500
commitb3cb521c541a961e76dcc5efd2bb420e10408a32 (patch)
treeb04a8b29045f53fc4e0f52cf51e673c23da691d1 /lib/bundler/spec_set.rb
parent6ed78f25e22067d8c7dced08e1bdc3c9d03e8a9e (diff)
downloadbundler-b3cb521c541a961e76dcc5efd2bb420e10408a32.tar.gz
pass all the spec names we have to fetcher api endpoint
Diffstat (limited to 'lib/bundler/spec_set.rb')
-rw-r--r--lib/bundler/spec_set.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/spec_set.rb b/lib/bundler/spec_set.rb
index 136ec702f6..2149b64bad 100644
--- a/lib/bundler/spec_set.rb
+++ b/lib/bundler/spec_set.rb
@@ -79,9 +79,10 @@ module Bundler
def materialize(deps, missing_specs = nil)
materialized = self.for(deps, [], false, true).to_a
+ deps = materialized.map {|s| s.name }.uniq
materialized.map! do |s|
next s unless s.is_a?(LazySpecification)
- s.source.dependency_names = deps.map {|d| d.name } if s.source.respond_to?(:dependency_names=)
+ s.source.dependency_names = deps if s.source.respond_to?(:dependency_names=)
spec = s.__materialize__
if missing_specs
missing_specs << s unless spec