[macruby-changes] [3895] MacRuby/trunk/lib/rubygems/specification.rb
source_changes at macosforge.org
source_changes at macosforge.org
Mon Mar 29 18:18:46 PDT 2010
Revision: 3895
http://trac.macosforge.org/projects/ruby/changeset/3895
Author: martinlagardette at apple.com
Date: 2010-03-29 18:18:45 -0700 (Mon, 29 Mar 2010)
Log Message:
-----------
Modify call to quick_emit to work for MacRuby
Modified Paths:
--------------
MacRuby/trunk/lib/rubygems/specification.rb
Modified: MacRuby/trunk/lib/rubygems/specification.rb
===================================================================
--- MacRuby/trunk/lib/rubygems/specification.rb 2010-03-30 01:05:57 UTC (rev 3894)
+++ MacRuby/trunk/lib/rubygems/specification.rb 2010-03-30 01:18:45 UTC (rev 3895)
@@ -683,7 +683,9 @@
attributes = @@attributes.map { |name,| name.to_s }.sort
attributes = attributes - %w[name version platform]
- yaml = YAML.quick_emit object_id, opts do |out|
+ # Currently, MacRuby's #quick_emit works differently than Syck's
+ # yaml = YAML.quick_emit object_id, opts do |out|
+ yaml = YAML.quick_emit nil do |out|
out.map taguri, to_yaml_style do |map|
map.add 'name', @name
map.add 'version', @version
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100329/e394b559/attachment.html>
More information about the macruby-changes
mailing list