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
This can happen when upgrading to Rails 3.2.
Updating Rubygems should fix this issue.
Hope this helps.
I had this issue, but all the methods above did not help.
So, I decided to move all the
*3.2.0.spec
within directoryinto another directory, and things are solved.
Command:
Perform similar commands to other files:
I still had the errors after updating the rubygem.
Then I ran
rvm gemset empty
to delete the gems. This fixed it for me.