Invalid gemspec -Illformed requirement ["#<YAML::Syck::DefaultKey:0xb5f9c990> 3.2.0"]

Michael Durrant picture Michael Durrant · Jan 25, 2012 · Viewed 8.4k times · Source
Invalid gemspec in [/usr/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.gemspec]: Illformed requirement ["#<YAML::Syck::DefaultKey:0xb5f9c990> 3.2.0"]

From trying to do a sudo gem update for other issues

getting this hundreds of time as sudo gem update goes through each gem and gets the message for most of them

Answer

Phil Bottomley picture Phil Bottomley · Jan 25, 2012

This can happen when upgrading to Rails 3.2.

Updating Rubygems should fix this issue.

gem update --system

Hope this helps.