Created
February 10, 2012 05:22
-
-
Save ferrous26/1786903 to your computer and use it in GitHub Desktop.
MacRuby does not use Syck
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb | |
index e873923..392c91b 100644 | |
--- a/lib/rubygems/specification.rb | |
+++ b/lib/rubygems/specification.rb | |
@@ -1921,12 +1921,12 @@ class Gem::Specification | |
end | |
def to_yaml(opts = {}) # :nodoc: | |
- if YAML.const_defined?(:ENGINE) && !YAML::ENGINE.syck? then | |
+ # XXX MACRUBY does not have syck, but does not have YAML::ENGINE either | |
+ #if YAML.const_defined?(:ENGINE) && !YAML::ENGINE.syck? then | |
+ if true then | |
super.gsub(/ !!null \n/, " \n") | |
else | |
- # XXX MACRUBY our quick_emit is different than syck | |
- #YAML.quick_emit object_id, opts do |out| | |
- YAML.quick_emit nil do |out| | |
+ YAML.quick_emit object_id, opts do |out| | |
out.map taguri, to_yaml_style do |map| | |
encode_with map | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output from trying to make a gem