aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/lazy_specification.rb
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-06-06 22:18:57 -0700
committerCarl Lerche <carllerche@mac.com>2010-06-06 22:18:57 -0700
commit6de6acae79bf339ac33a4ed32105384267ad2091 (patch)
treed90411058f48746fb924421ddf9a16402bed69e8 /lib/bundler/lazy_specification.rb
parent2f2b5a8700ea812534404a6e5d198e642f8c68bd (diff)
downloadbundler-6de6acae79bf339ac33a4ed32105384267ad2091.tar.gz
Fix materializing the lazy specifications
Diffstat (limited to 'lib/bundler/lazy_specification.rb')
-rw-r--r--lib/bundler/lazy_specification.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb
index d4367db4..c612218a 100644
--- a/lib/bundler/lazy_specification.rb
+++ b/lib/bundler/lazy_specification.rb
@@ -44,8 +44,8 @@ module Bundler
out
end
- def __materialize__(index)
- @specification = index.search(Gem::Dependency.new(name, version)).last
+ def __materialize__
+ @specification = source[self]
raise "Could not materialize #{full_name}" unless @specification
@specification
end