Method: LibGems::Specification#to_yaml
- Defined in:
- lib/libgems/specification.rb
#to_yaml(opts = {}) ⇒ Object
:nodoc:
702 703 704 705 706 707 708 709 710 711 712 713 714 |
# File 'lib/libgems/specification.rb', line 702 def to_yaml(opts = {}) # :nodoc: LibGems.load_yaml if YAML.const_defined?(:ENGINE) && !YAML::ENGINE.syck? then super.gsub(/ !!null \n/, " \n").gsub("!ruby/object:LibGems", "!ruby/object:Gem") else # TODO: Make sure this outputs Gem compatible code YAML.quick_emit object_id, opts do |out| out.map taguri, to_yaml_style do |map| encode_with map end end end end |