Here is the way I fix the “invalid date format in specification” error:
1.) Go to the specifications folder located at:
/usr/local/lib/ruby/gems/1.8/specifications/
2.) Find the spec that is causing the problem.
3.) Change s.date = %q{2011-05-21 00:00:00.000000000Z}
to s.date = %q{2011-05-21}
That’s a WIN for me! Good Luck