crigor.com

Illformed Requirement Syck::DefaultKey

If you’re getting the errors below, you should update rubygems to the latest, which is 1.8.10 as of this writing.

1
2
3
4
Installing cucumber-rails (1.0.4) Invalid gemspec in [/Users/crigor/.rvm/gems/ruby-1.9.2-p180@ss/specifications/cucumber-rails-1.0.4.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000100e779e8> 0.7.2"]

Installing database_cleaner (0.6.7) Invalid gemspec in
[/Users/crigor/.rvm/gems/ruby-1.9.2-p180@ss/specifications/cucumber-rails-1.0.4.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000100e779e8> 0.7.2"]

Check out http://blog.rubygems.org/2011/08/31/shaving-the-yaml-yacc.html to get the details. After upgrading rubygems to 1.8.10, I was able to install database_cleaner but I was still getting an error for cucumber-rails. The solution is to open /Users/crigor/.rvm/gems/ruby-1.9.2-p180@ss/specifications/cucumber-rails-1.0.4.gemspec and change

1
#<Syck::DefaultKey:0x00000100e779e8>

to =. If you’re using vim, just run

1
:%s/#<Syck.*>/=/

Comments