chriseppstein/compass — Issue #658: Invalid gemspec: invalid date format in specification:  "2011-12-24 00:00:00.000000000Z" 
Author: northk
Created: 2011-12-28 23:11:38+00:00
State: open

On OS X 10.6.8 with rubygems version 1.8.13 (fron gem -v), after upgrading from an older version of Compass to 0.11.6 (by running "compass install"), I get the following error when executing compass commands:

Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/
compass-0.11.6.gemspec]: invalid date format in specification:
"2011-12-24 00:00:00.000000000Z"
NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Library/Ruby/Gems/
1.8/specifications/rubygems-update-1.8.2.gemspec:11.
/Library/Ruby/Site/1.8/rubygems/specification.rb:277:in `_resort!':
undefined method `name' for nil:NilClass (NoMethodError)
from /Library/Ruby/Site/1.8/rubygems/specification.rb:276:in `sort!'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:276:in
`_resort!'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:270:in `_all'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:402:in `each'
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:216:in `find_all'
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:216:in
`matching_specs'
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:238:in `to_specs'
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:256:in `to_spec'
from /Library/Ruby/Site/1.8/rubygems.rb:1182:in `gem'
from /usr/bin/compass:18

The temporary workaround I used is to modify the date in the gemspec to be a valid date, suggested by stackoverflow here: http://stackoverflow.com/questions/5771758/invalid-gemspec-because-of-the-date-format-in-specification