lib/licensed/sources/bundler/missing_specification.rb in licensed-3.7.2 vs lib/licensed/sources/bundler/missing_specification.rb in licensed-3.7.3
- old
+ new
@@ -38,11 +38,18 @@
"could not find #{name} (#{version}) in any sources"
end
end
module LazySpecification
- def __materialize__
- spec = super
+ def materialize_for_installation(*args)
+ spec = super(*args)
+ return spec unless spec.is_a?(LazySpecification)
+
+ Licensed::Bundler::MissingSpecification.new(name: name, version: version, platform: platform, source: source)
+ end
+
+ def __materialize__(*args)
+ spec = super(*args)
return spec if spec
Licensed::Bundler::MissingSpecification.new(name: name, version: version, platform: platform, source: source)
end
end