Updating Gems cheat sheet

Using Bundler’s advanced features

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

Cedarcode

Adding value from day one.

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.

Cedarcode

Cedarcode

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

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.

Cedarcode

Cedarcode

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

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store