This is kinda weird - i do not think i changed any code in this particular application (but i was working on another app and performing some gem updates there)
When i started running the rake cron on this application, i got this error message. Production is fine.
You have already activated rake 0.9.2, but your Gemfile requires rake 0.8.7. Consider using bundle exec.
It works when I do this, but i need to fix this properly.
bundle exec rake cron
I saw a discussion here, and i figure it has to do with bundle using the wrong version. What is the best way to fix this?
bundle exec rake cron is the right way to do this.
Basically what's happening is that you've updated rake to 0.9.2 which now conflicts with the version specified in your Gemfile. Previously the latest version of
rake you had matched the version in your Gemfile, so you didn't get any warning when simply using
Yehuda Katz (one of the original Bundler developers) explains it all in this blog post: http://yehudakatz.com/2011/05/30/gem-versioning-and-bundler-doing-it-right/.