Updating Bundler
October 7, 2014Bundler
Bundler is a tool designed to help manage dependencies within Ruby applications. It allows developers to specify the gems needed to run an application and then installs and tracks them for each environment; development, staging or production. It’s a pretty important tool for many Ruby developers, one that should be kept up-to-date. The latest version, 1.7.3, is a security release meant to fix a potentially vulnerability.
Before updating, it might be a good idea to verify what version you’re currently running. If it’s been a while, looking over the change-log might be prudent. While unlikely, it’s possible that aspects of how the tool works were changed in intervening releases. It’s better to be sure you’re aware of what’s changed than find out after the fact.
bundle version
Updating
But how do you update Bundler?
This may seem like a simple question, a basic question that anyone using Bundler ought to know. I didn’t, though. And I spent what might be considered an embarrassingly long time trying to figure it out. The problem is, when you use a tool on a near daily basis to install or update gems, it’s easy to forget there are other ways to install and update gems.
In this case, to update Bundler simply run the following command.
gem update bundler
Once complete, you’ll have the latest version and be able to move on.