diff options
author | Carl Lerche <carllerche@mac.com> | 2010-06-06 22:18:57 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-06-06 22:18:57 -0700 |
commit | 6de6acae79bf339ac33a4ed32105384267ad2091 (patch) | |
tree | d90411058f48746fb924421ddf9a16402bed69e8 /lib/bundler/lazy_specification.rb | |
parent | 2f2b5a8700ea812534404a6e5d198e642f8c68bd (diff) | |
download | bundler-6de6acae79bf339ac33a4ed32105384267ad2091.tar.gz |
Fix materializing the lazy specifications
Diffstat (limited to 'lib/bundler/lazy_specification.rb')
-rw-r--r-- | lib/bundler/lazy_specification.rb | 4 |
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 |