Updating Gems cheat sheet

Using Bundler’s advanced features

Gonzalo Rodriguez
Aug 13, 2018 · 1 min read
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


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

Gonzalo Rodriguez

Written by

Co-founder & Full-Stack Developer @ cedarcode - It's not about doing as much as you can, it's about doing more of what's important, meaningful and impactful.



Adding value from day one. Effective software development & expertise for your products and teams.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade