Skip to content

Instantly share code, notes, and snippets.

@ylansegal
Forked from gshutler/update-rbenv-rubygems.sh
Created August 30, 2017 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ylansegal/a740dd36b9c6954ae2af9c3247ebb99c to your computer and use it in GitHub Desktop.
Save ylansegal/a740dd36b9c6954ae2af9c3247ebb99c to your computer and use it in GitHub Desktop.
Update Rubygems for all rbenv rubies
#! /usr/bin/env bash
set -e
eval "$(rbenv init -)"
for version in `rbenv whence gem`; do
rbenv shell "$version"
echo "Updating rubygems for $version"
gem update --system --no-document --quiet
echo ""
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment