Skip to content

Instantly share code, notes, and snippets.

@joepvd
Forked from gshutler/update-rbenv-rubygems.sh
Last active September 5, 2017 10:27
Show Gist options
  • Save joepvd/9c7d3b67f3b5658470ffcac97fd0b96e to your computer and use it in GitHub Desktop.
Save joepvd/9c7d3b67f3b5658470ffcac97fd0b96e 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-rdoc --quiet
echo ""
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment