Is there a clean way to ensure that a particular rails project uses a
particular version of rake?
I had a problem when a gem (calendar_date_select) upgraded my rake gem.
The newer version (0.8.4) wasn’t backward compatible with the older one
(0.7.3). Running ‘rake’ seems to use the latest version of rake,
regardless of the version of Rails, i.e. I’d specified
“RAILS_GEM_VERSION = ‘1.2.5’” in environment.rb.
Thanks. I was hoping for a way to do it in the Rails environment.rb
file, like ‘RAKE_VERSION = …’. I think I can set ‘rake path’ there,
but that seems like a hack. I’d like to just specify the version, and
let rails figure it out.
When I run ‘gem dependency rails -v 1.2.5’, I get:
It’s interesting that a given rails version depends on specific versions
of the ‘[active|action]*’ gems, but it will use the latest version of
Rake (over 0.7.2).
Thanks again,
Brian
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.