Skip to content

Instantly share code, notes, and snippets.

@adampats
Last active July 25, 2018 04:53
Show Gist options
  • Save adampats/328dabb581843c5a287912a9b530e8cf to your computer and use it in GitHub Desktop.
Save adampats/328dabb581843c5a287912a9b530e8cf to your computer and use it in GitHub Desktop.
Get rubygems api token for ~/.gem/credentials
user="adampats"
curl -u "$user" "https://rubygems.org/api/v1/api_key.yaml" > ~/.gem/credentials
chmod 0600 ~/.gem/credentials
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment