summaryrefslogtreecommitdiff
path: root/lib/bundler/lazy_specification.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-06-28 14:18:57 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-06-28 14:18:57 -0700
commit7c7ffae39a3a619307a9b809d0482994e2b9ab09 (patch)
tree85cf97fecf6a7c750f5c390d6d641d58796d57a6 /lib/bundler/lazy_specification.rb
parent35d6a6f22cd1cd78cd3f20e0639aec2e24e08568 (diff)
downloadbundler-7c7ffae39a3a619307a9b809d0482994e2b9ab09.tar.gz
implement to_ary to avoid method_missing on flatten and quiet -d
Diffstat (limited to 'lib/bundler/lazy_specification.rb')
-rw-r--r--lib/bundler/lazy_specification.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb
index dbee074592..e9d6b22656 100644
--- a/lib/bundler/lazy_specification.rb
+++ b/lib/bundler/lazy_specification.rb
@@ -58,9 +58,11 @@ module Bundler
private
- def method_missing(method, *args, &blk)
- return super if method == :to_ary
+ def to_ary
+ nil
+ end
+ def method_missing(method, *args, &blk)
raise "LazySpecification has not been materialized yet (calling :#{method} #{args.inspect})" unless @specification
return super unless respond_to?(method)