Skip to content

Commit 28449c6

Browse files
committed
Import r41148 from ruby trunk
This fixes deprecation warnings when creating YAML gemspecs.
1 parent 38575d4 commit 28449c6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

History.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ Bug fixes:
5555
Chris Morris.
5656
* Fixed default gem key and cert locations. Pull request #511 by Samuel
5757
Cochran.
58+
* Fix deprecation warnings when converting gemspecs to yaml. Ruby commit
59+
r41148 by Yui Naruse
5860

5961
=== 2.0.2 / 2013-03-06
6062

lib/rubygems/specification.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2268,7 +2268,7 @@ def to_yaml(opts = {}) # :nodoc:
22682268
require 'rubygems/psych_tree'
22692269
end
22702270

2271-
builder = Gem::NoAliasYAMLTree.new({})
2271+
builder = Gem::NoAliasYAMLTree.create
22722272
builder << self
22732273
ast = builder.tree
22742274

0 commit comments

Comments
 (0)