lib/bundler/lazy_specification.rb in bundler-1.1.pre.4 vs lib/bundler/lazy_specification.rb in bundler-1.1.pre.5

- old
+ new

@@ -57,15 +57,16 @@ end private def method_missing(method, *args, &blk) - if Gem::Specification.new.respond_to?(method) - raise "LazySpecification has not been materialized yet (calling :#{method} #{args.inspect})" unless @specification - @specification.send(method, *args, &blk) - else - super - end + return super if method == :to_ary + + raise "LazySpecification has not been materialized yet (calling :#{method} #{args.inspect})" unless @specification + + return super unless respond_to?(method) + + @specification.send(method, *args, &blk) end end end