diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-28 14:18:57 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-28 14:18:57 -0700 |
commit | 7c7ffae39a3a619307a9b809d0482994e2b9ab09 (patch) | |
tree | 85cf97fecf6a7c750f5c390d6d641d58796d57a6 /lib/bundler/lazy_specification.rb | |
parent | 35d6a6f22cd1cd78cd3f20e0639aec2e24e08568 (diff) | |
download | bundler-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.rb | 6 |
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) |