I am trying to update a gem version to a particular version. But whenever I run command bundle update gem, it is updating the latest version of that gem.
bundle update gem
Even on running command bundle update gem -v "x.x.x" it is still updating to the latest one.
bundle update gem -v "x.x.x"
Is there any way to update a gem version to a particular version?
In your Gemfile specify the gem version. For example:
gem "foo", "= 1.0.0"
then run bundle update foo
bundle update foo
1.4m articles
1.4m replys
5 comments
57.0k users