aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/spec_set.rb
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-06-06 21:17:32 -0700
committerCarl Lerche <carllerche@mac.com>2010-06-06 21:17:32 -0700
commit2f2b5a8700ea812534404a6e5d198e642f8c68bd (patch)
treef01b6966fcb33bd399ae02ec47290511bd39a517 /lib/bundler/spec_set.rb
parent2be8e1d766d63066bf7961a69656340b69a62b5c (diff)
downloadbundler-2f2b5a8700ea812534404a6e5d198e642f8c68bd.tar.gz
Instead of maintaining Source#index and Source#remote_index, just have Source#remote! trigger whether or not to search the remote index (and remember)
Diffstat (limited to 'lib/bundler/spec_set.rb')
-rw-r--r--lib/bundler/spec_set.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/spec_set.rb b/lib/bundler/spec_set.rb
index 4cbdd0cb..9edfaf79 100644
--- a/lib/bundler/spec_set.rb
+++ b/lib/bundler/spec_set.rb
@@ -61,11 +61,11 @@ module Bundler
lookup.dup
end
- def materialize(type, deps)
+ def materialize(deps)
materialized = self.for(deps, []).to_a
materialized.map! do |s|
next s unless s.is_a?(LazySpecification)
- s.__materialize__(s.source.send(type))
+ s.__materialize__(s.source.specs)
end
SpecSet.new(materialized)
end