lib/bundler/rubygems_integration.rb in bundler-2.5.14 vs lib/bundler/rubygems_integration.rb in bundler-2.5.15
- old
+ new
@@ -46,10 +46,10 @@
end
Gem.loaded_specs[spec.name] = spec
end
def validate(spec)
- Bundler.ui.silence { spec.validate(false) }
+ Bundler.ui.silence { spec.validate_for_resolution }
rescue Gem::InvalidSpecificationException => e
error_message = "The gemspec at #{spec.loaded_from} is not valid. Please fix this gemspec.\n" \
"The validation error was '#{e.message}'\n"
raise Gem::InvalidSpecificationException.new(error_message)
rescue Errno::ENOENT