Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5955027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:03:20+00:00 2026-05-22T18:03:20+00:00

I have installed the latest rspec gem and now every ‘gem’ command, no matter

  • 0

I have installed the latest rspec gem and now every ‘gem’ command, no matter what, throws this error:

egervari@egervari:~/Websites/training$ gem -v
Invalid gemspec in [/usr/local/lib/ruby/gems/1.9.1/specifications/rspec-core-2.6.2.gemspec]: invalid date format in specification: "2011-05-21 00:00:00.000000000Z"
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:277:in `block in _resort!': undefined method `name' for nil:NilClass (NoMethodError)
    from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:276:in `sort!'
    from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:276:in `_resort!'
    from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:270:in `_all'
    from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:402:in `each'
    from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:477:in `map'
    from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:477:in `find_files'
    from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:1061:in `load_plugins'
    from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:85:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/local/bin/gem:9:in `<main>'

It has completely locked up my rails development. I can’t do anything because of this.

I am on Ubuntu 11.04. I’ve googled this and it seems I am not the only person who has ran into this. However, I have not come across a solution.

If you don’t know how to fix this, how can I manually get rid of all the gems and just start from scratch?

EDIT: It seems that opening up the file and changing it to “2011-05-21” fixes it… but how can this happen? I don’t mean to bitch, but I run into weird things with Ruby and Rails all day long. 2 weeks into development and the “problems” I run into just never seem to stop. I’m getting really nervous/worried about my choice to use Rails 🙁

EDIT 2: My versions

egervari@egervari:~/Websites/training$ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
egervari@egervari:~/Websites/training$ gem -v
1.8.1
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:03:21+00:00Added an answer on May 22, 2026 at 6:03 pm

    I had this issue in my Rails app under Ruby 1.9.2p0 (gem version 1.7.2). I manually uninstalled rspec-core 2.6.2 by going into (in my case) /Users/smei/.rvm/gems/ruby-1.9.2-p0 and removing all the rspec-core 2.6.2 stuff. It was not showing up in my list of rspec-core versions when I did gem uninstall.

    Then I locked down rspec-core to 2.6.0, and that solved the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running Windows XP SP3 and I do have the latest .NET libraries installed,
I have installed latest version of pligg on my local server. It's running fine.
I have installed latest JDK (x64) on Windows 7 but browsers still can't run
i have installed the latest iphone sdk 3.0 beta 5, and trying to submit
I have installed the latest MSysGit 1.6.3 preview and TortoiseGit 0.6.2 on my Windows
I have installed the latest version of netbeans and its working.. I have opened
i have installed the latest netbeans 6.9 rc2 for all languages, but i only
I have installed the latest hg package available for Fedora Linux. However, hg clone
I have just installed that latest stable release of TortoiseSVN on Windows Server 2003
I have installed latest Team Foundation Server MSSCCI Provider 2010 Microsoft Visual Studio Team

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.