After update of rack, will_paginate and rspec rake sys:
Missing the Rails 2.3.5 gem. Please gem install -v=2.3.5 rails,
update your RAILS_GEM_VERSION setting in config/environment.rb for the
Rails version you do have installed, or comment out RAILS_GEM_VERSION
to use the latest version installed.
It isn’t? I only installed it last week for a project,
jruby -S gem install rack -v=1.0.1
I think I got lucky then because I know for a fact that rack 1.1.0 is
backwards incompatible with Rails 2.3.5. I have no workaround, and had
the same fault, it did not recognize the gem for some reason.
Note that you also need jruby-rack 0.9.6 to work with Rails >= 2.3.3,
because of a problem that occurs in development mode (thread/mutex
lock problem).
Ok, I found an old rack gem and I installed it.
My jruby-rack is 0.9.5, I use rails 2.3.5, until now I have no problems.
Why rack-1.1.0 is in the official repository if it has problems?
I don’t know, I was seriously pissed last week for it as well.
You’ll run into problems with jruby-rack 0.9.5 if you:
run rails in development mode
run rails in a java server (Tomcat, f.i.)
I’ve deployed a rails application in tomcat6.
I’ve created the war with warbler-0.9.14 that has jruby-rack 0.9.5 and
I have no problems, however I try to search for jruby-rack 0.9.6 and
put it into warbler.
This is, actually, a good practice. That way you ensure that the
script is executed with exactly right JRuby (the one on the path).
Personally, I always do jruby -S for all jruby commands, except for
jirb.