From ebb534801f7032476fa069be11ee1e52f54819f5 Mon Sep 17 00:00:00 2001 From: David Rodríguez Date: Tue, 22 Mar 2022 13:52:19 +0100 Subject: [rubygems/rubygems] Remove no longer needed `Psych::PrivateType` cleanup This old bug used to affect the `rubyforge_project` field in serialized gemspecs. However, this field has been removed and it's no longer present in marshaled loaded gemspecs. So, while the constant is still present in these marshalled gemspecs and we still need to make sure it exists, we no longer need to clean it up from the loaded data. https://github.com/rubygems/rubygems/commit/09df18e522 --- lib/rubygems/specification.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index 1dfa307fd5..aaf11ebd98 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -1289,11 +1289,6 @@ class Gem::Specification < Gem::BasicSpecification raise TypeError, "invalid Gem::Specification format #{array.inspect}" end - # Cleanup any Psych::PrivateType. They only show up for an old bug - # where nil => null, so just convert them to nil based on the type. - - array.map! {|e| e.kind_of?(Psych::PrivateType) ? nil : e } - spec.instance_variable_set :@rubygems_version, array[0] # spec version spec.instance_variable_set :@name, array[2] -- cgit v1.2.3