lib/bundler/endpoint_specification.rb in bundler-1.16.5 vs lib/bundler/endpoint_specification.rb in bundler-1.16.6

- old
+ new

@@ -121,10 +121,10 @@ @required_rubygems_version = Gem::Requirement.new(v) when "ruby" @required_ruby_version = Gem::Requirement.new(v) end end - rescue => e + rescue StandardError => e raise GemspecError, "There was an error parsing the metadata for the gem #{name} (#{version}): #{e.class}\n#{e}\nThe metadata was #{data.inspect}" end def build_dependency(name, requirements) Gem::Dependency.new(name, requirements)