3

I have created a very basic Rails 3.1 app, deployed to a box that runs Ruby 1.8.7 (P334) (I can't easily go to 1.9.2. there unfortunately).

After deploying and running 'bundle install' I tried to run a console:

bundle exec rails console

And I get:

Could not find rack-cache-1.0.3 in any of the sources

and the console does not come up.

It seems that this particular version of rack-cache is listed as a dependency by ActionPack 3.1.0.

Can someone explain to me what I need to do to resolve this, i.e. get bundler to attach this version of rack-cache to the project?

Also I read that bundler stores the project-specific GEMs 'somewhere else', i.e. no longer in the global Ruby GEM path. Is there a default location for this project specific place ?

Oh and I also keep getting heaps of 'invalid gemspec' warnings with Rails 3.1, i.e.:

Invalid gemspec in [/usr/local/lib/ruby/gems/1.8/specifications/rack-cache-1.0.3.gemspec]: invalid date format in specification: "2011-08-27 00:00:00.000000000Z"

mu is too short
  • 426,620
  • 70
  • 833
  • 800
patschiboy
  • 1,091
  • 8
  • 21

1 Answers1

5

Ran into this issue when upgrading my Rails 3.0 app to 3.1.

Edit the /usr/local/lib/ruby/gems/1.8/specifications/rack-cache-1.0.3.gemspec file and set s.date = %q{2011-08-27}. This will fix your problem.

Chris Ledet
  • 11,458
  • 7
  • 39
  • 47