Rails update only one gem with bundler Jun 6 2018

When we use:

1
bundle update specific_gem

We expect to only update one gem the one we are telling bundler to update but that is not the case it updates the gem and all its dependencies, and if the dependencies have updates but the gem doesn't the dependencies get updated no matter what.

so to avoid that use:

1
bundle update --source specific_gem

And that should do the trick.


** If you want to check what else I'm currently doing be sure to follow me on twitter @rderik or subscribe to the newsletter. If you want to send me a direct message you can send it to derik@rderik.com.