$ gem install bundler-audit
$ bundle audit --update[For each gem listed by the audit]
$ bundle update --conservative --patch <gem-name>
$ bundle update --conservative --group test development
$ bundle update --patch --strict
$ bundle update --minor --strict
$ bundle update --major
$ bundle outdated --groups
For a detailed version I recommend reading A Guide to Update Gems with bundle update.
tl;dr— Synopsis: Updating Gems cheat sheet.
Have you ever been part of a massive Rails app upgrade, with tons of gems not being updated for years?
Was that closer to a joyful experience or a nightmare?
Have you ever felt that you — or the team — could do better at keeping up-to-date with
Gemfile‘s gem updates? Was that in part because of an unexisting process around it?
If some of this rings true to you, I think you’ll find what follows helpful.
Before doing any bulk updating of gems, focus on fixing any security vulnerability — if present — in any of your app’s included gems. …