From bcd5328c706ac3dd71408180a765e86b99651db8 Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 7 Jun 2013 13:17:33 +0000 Subject: [PATCH] * lib/rubygems/specification.rb (Gem::Specification#to_yaml): use Gem::NoAliasYAMLTree.create instead of Gem::NoAliasYAMLTree.new to suppress deprecated warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ lib/rubygems/specification.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cfcd7d0900..eae83b7e2b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Jun 7 22:10:50 2013 NARUSE, Yui + + * lib/rubygems/specification.rb (Gem::Specification#to_yaml): + use Gem::NoAliasYAMLTree.create instead of Gem::NoAliasYAMLTree.new + to suppress deprecated warnings. + Fri Jun 7 21:39:39 2013 Tanaka Akira * bignum.c (rb_integer_pack): Renamed from rb_int_export. diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index a94e64b36d..0fca2ab619 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -2270,7 +2270,7 @@ class Gem::Specification require 'rubygems/psych_tree' end - builder = Gem::NoAliasYAMLTree.new({}) + builder = Gem::NoAliasYAMLTree.create builder << self ast = builder.tree