Updating Gems cheat sheet

Using Bundler’s advanced features

Gonzalo
Cedarcode
1 min readAug 13, 2018

--

Photo by Glenn Carstens-Peters on Unsplash

Fix vulnerable gems

$ gem install bundler-audit
$ bundle audit --update
[For each gem listed by the audit]
$ bundle update --conservative --patch <gem-name>

Update non-production gems

$ bundle update --conservative --group test development

Update production gems

$ bundle update --patch --strict
$ bundle update --minor --strict
$ bundle update --major

List constrained gems

$ bundle outdated --groups

Why?

For a detailed version I recommend reading A Guide to Update Gems with bundle update.

--

--

Gonzalo
Cedarcode

It's not about doing as much as you can, it's about doing more of what's energizing, meaningful and impactful.