diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index 02c1eeb0a1..08614cd9eb 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -2268,7 +2268,7 @@ class Gem::Specification require 'rubygems/psych_tree' end - builder = Gem::NoAliasYAMLTree.new({}) + builder = Gem::NoAliasYAMLTree.create builder << self ast = builder.tree