aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-03-22 13:52:19 +0100
committergit <svn-admin@ruby-lang.org>2022-06-01 17:06:51 +0900
commitebb534801f7032476fa069be11ee1e52f54819f5 (patch)
tree289c3125445e83dc3446ece7c5ef5f5ce4d75cce
parent936e54063d4de0e44925e9139cb4d25cce27c187 (diff)
downloadruby-ebb534801f7032476fa069be11ee1e52f54819f5.tar.gz
[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
-rw-r--r--lib/rubygems/specification.rb5
1 files changed, 0 insertions, 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]