Skip to content
Tags

, ,

removing gem specs from local box

October 27, 2011

Recently I have been getting quite a few annoying warning messages like this:

Invalid gemspec in [/Users/gagan/.rvm/gems/ruby-1.9.2-p290/specifications/active_reload-0.2.0.gemspec]: invalid date format in specification: "2011-07-20 00:00:00.000000000Z"
Invalid gemspec in [/Users/gagan/.rvm/gems/ruby-1.9.2-p290/specifications/active_reload-0.2.0.gemspec]: invalid date format in specification: "2011-07-20 00:00:00.000000000Z"

It has to do with the specification files of gems that get maintained in the local box.

The problem was with some rubygems issue. Even after removing those spec manually and installing bundle, those incorrect specs would show up somehow.

The trick to get rid off those gemspecs was:

 
rvm gemset empty gem_set_name

I do not use gemsets, but when i did a

 
rvm gemset list

I got a list of my default gemset which was ‘global’

so basically doing a

rvm gemset empty global
gem install bundler
bundle install

did it for me.

Thanks to:
https://github.com/sstephenson/execjs/issues/33#issuecomment-1733646
http://help.rubygems.org/discussions/problems/680-invalid-gemspec-and-invalid-date-format-in-specification-2011-05-03-000000000000000z

Note: I had already updated ruby gems on my local machine.

Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: