Permalink
Browse files

In the eyes of RubyGems, equate YAML::Yecht with Syck, so that Defaul…

…tKey in Dependency resolves to "=". This fixes the issue described in http://stackoverflow.com/questions/8674480/rails-3-2-on-jruby-gemspec-errors
  • Loading branch information...
1 parent 848f379 commit 71bcb3941dcfe0e0d0217921b06ec66a421f2288 @BanzaiMan BanzaiMan committed Dec 30, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/ruby/site_ruby/1.8/rubygems/syck_hack.rb
@@ -17,6 +17,10 @@ module YAML
if defined? ::Syck
Syck = ::Syck
+ # JRuby's "Syck" is called "Yecht"
+ elsif defined? YAML::Yecht
+ Syck = YAML::Yecht
+
# Otherwise, if there is no YAML::Syck, then we've got just psych
# loaded, so lets define a stub for DefaultKey.
elsif !defined? YAML::Syck

0 comments on commit 71bcb39

Please sign in to comment.