aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/psych_additions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/psych_additions.rb')
-rw-r--r--lib/rubygems/psych_additions.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/rubygems/psych_additions.rb b/lib/rubygems/psych_additions.rb
new file mode 100644
index 0000000000..08a5cb37ea
--- /dev/null
+++ b/lib/rubygems/psych_additions.rb
@@ -0,0 +1,9 @@
+# This exists just to satify bugs in marshal'd gemspecs that
+# contain a reference to YAML::PrivateType. We prune these out
+# in Specification._load, but if we don't have the constant, Marshal
+# blows up.
+
+module Psych
+ class PrivateType
+ end
+end