lib/bundler/lazy_specification.rb in bundler-1.11.0 vs lib/bundler/lazy_specification.rb in bundler-1.11.1
- old
+ new
@@ -52,10 +52,10 @@
def __materialize__
@specification = source.specs.search(Gem::Dependency.new(name, version)).last
end
def respond_to?(*args)
- super || @specification.respond_to?(*args)
+ super || @specification ? @specification.respond_to?(*args) : nil
end
def to_s
@__to_s ||= "#{name} (#{version})"
end