diff options
author | David RodrÃguez <[email protected]> | 2020-07-08 23:26:28 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-08-31 19:06:14 +0900 |
commit | 4bc87cb1fb9ecbd227720bd48836935996574166 (patch) | |
tree | 407e9cdcbd6d453b1dd48b0ebce2a0d8a50997ef /lib/bundler/endpoint_specification.rb | |
parent | 1e290c31f4fdfd330b9cd1d5c7fe61efa4ab066c (diff) |
[rubygems/rubygems] Remove `syck` traces from `bundler`
Same reason as in the previous commit.
https://github.com/rubygems/rubygems/commit/f00a6c8516
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4789
Diffstat (limited to 'lib/bundler/endpoint_specification.rb')
-rw-r--r-- | lib/bundler/endpoint_specification.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/bundler/endpoint_specification.rb b/lib/bundler/endpoint_specification.rb index 476151ae56..6cf597b943 100644 --- a/lib/bundler/endpoint_specification.rb +++ b/lib/bundler/endpoint_specification.rb @@ -3,7 +3,6 @@ module Bundler # used for Creating Specifications from the Gemcutter Endpoint class EndpointSpecification < Gem::Specification - ILLFORMED_MESSAGE = 'Ill-formed requirement ["#<YAML::Syck::DefaultKey'.freeze include MatchPlatform attr_reader :name, :version, :platform, :required_rubygems_version, :required_ruby_version, :checksum @@ -129,13 +128,6 @@ module Bundler def build_dependency(name, requirements) Gem::Dependency.new(name, requirements) - rescue ArgumentError => e - raise unless e.message.include?(ILLFORMED_MESSAGE) - puts # we shouldn't print the error message on the "fetching info" status line - raise GemspecError, - "Unfortunately, the gem #{name} (#{version}) has an invalid " \ - "gemspec.\nPlease ask the gem author to yank the bad version to fix " \ - "this issue. For more information, see http://bit.ly/syck-defaultkey." end end end |