Skip to content

Commit

Permalink
In the eyes of RubyGems, equate YAML::Yecht with Syck, so that Defaul…
Browse files Browse the repository at this point in the history
…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
BanzaiMan committed Dec 30, 2011
1 parent f833bb9 commit 309eeeb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ruby/site_ruby/1.8/rubygems/syck_hack.rb
Expand Up @@ -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
Expand Down

0 comments on commit 309eeeb

Please sign in to comment.