Skip to content

Commit

Permalink
Only need to suppress !!null for Psych
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrain committed Feb 4, 2011
1 parent 8a70fed commit 6a896f3
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions lib/rubygems/specification.rb
Expand Up @@ -720,17 +720,15 @@ def encode_with coder # :nodoc:
end

def to_yaml(opts = {}) # :nodoc:
yaml = if YAML.const_defined?(:ENGINE) && !YAML::ENGINE.syck? then
super
else
YAML.quick_emit object_id, opts do |out|
out.map taguri, to_yaml_style do |map|
encode_with map
end
end
end

yaml.gsub(/ !!null \n/, " \n")
if YAML.const_defined?(:ENGINE) && !YAML::ENGINE.syck? then
super.gsub(/ !!null \n/, " \n")
else
YAML.quick_emit object_id, opts do |out|
out.map taguri, to_yaml_style do |map|
encode_with map
end
end
end
end

def init_with coder # :nodoc:
Expand Down

0 comments on commit 6a896f3

Please sign in to comment.