Skip to content

Instantly share code, notes, and snippets.

@gshutler
Created June 9, 2015 14:24
Show Gist options
  • Save gshutler/72b45af34f2505316a1f to your computer and use it in GitHub Desktop.
Save gshutler/72b45af34f2505316a1f 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
@dannykopping
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment