-
-
Save jms/2ce74eb8c4959bcefd63ef6d0e4f287c to your computer and use it in GitHub Desktop.
Rbenv update Rubygems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| # Multiple vulnerabilities have been disclosed in RubyGems: | |
| # https://www.ruby-lang.org/en/news/2018/02/17/multiple-vulnerabilities-in-rubygems/ | |
| # | |
| # If you're an Rbenv user, here's any easy one-liner to upgrade to a | |
| # safe version of Rubygems (2.7.6 or later) for each installed Ruby version: | |
| for i in $( rbenv versions --bare ); do RBENV_VERSION=$i gem update --system && echo "\n$(ruby -v) using rubygems $(gem --version)\n"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment