Can I get bundler t use an earlier gem?
-
25-09-2019 - |
Question
I'm trying to get my rails3 app & gem taps & heroku to play nicely together. One googled solution is to use an earlier version of sequel. So I'd like to try to have bundler use sequel v3.13.0 instead of sequel v3.15.0, but bundler says:
You have requested:
sequel = 3.13.0
The bundle currently has sequel locked at 3.15.0.
Try running `bundle update sequel`
It could be dependencies thats preventing this - how do I find out? Can I do this some other way? thanks...
Solution
In your Gemfile, put gem "sequel", "3.13.0"
Then run bundle install --relock
To learn more about bundler: http://asciicasts.com/episodes/201-bundler
OTHER TIPS
Just to add to the other answer, you can also you version strings in the Gemfile. So, you could put like this in the Gemfile gem "sequel", "> 3.13.0"
or gem "sequel"
. You might find that useful sometime in the future!