Skip to content

Instantly share code, notes, and snippets.

@jms
Forked from odlp/update.sh
Created February 20, 2018 16:17
Show Gist options
  • Save jms/2ce74eb8c4959bcefd63ef6d0e4f287c to your computer and use it in GitHub Desktop.
Save jms/2ce74eb8c4959bcefd63ef6d0e4f287c to your computer and use it in GitHub Desktop.

Revisions

  1. @odlp odlp revised this gist Feb 20, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion update.sh
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,6 @@
    # 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):
    # 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
  2. @odlp odlp created this gist Feb 20, 2018.
    9 changes: 9 additions & 0 deletions update.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/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 i in $( rbenv versions --bare ); do RBENV_VERSION=$i gem update --system && echo "\n$(ruby -v) using rubygems $(gem --version)\n"; done