diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-07 13:17:33 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-07 13:17:33 +0000 |
commit | bcd5328c706ac3dd71408180a765e86b99651db8 (patch) | |
tree | fc2488fc62fc6fbd1622d075ea9b374454edcf63 /lib/rubygems/specification.rb | |
parent | a08b001100734a3db4efbe9d38d3226950a538e0 (diff) | |
download | ruby-bcd5328c706ac3dd71408180a765e86b99651db8.tar.gz |
* 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
Diffstat (limited to 'lib/rubygems/specification.rb')
-rw-r--r-- | lib/rubygems/specification.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |