Skip to content

Instantly share code, notes, and snippets.

@heisters
Created March 16, 2011 18:41
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heisters/873051 to your computer and use it in GitHub Desktop.
Save heisters/873051 to your computer and use it in GitHub Desktop.
Logout of rubygems.org. Hecka hacky.
ruby -e "Gem.configuration.rubygems_api_key = nil"
@n0ur
Copy link

n0ur commented Sep 27, 2013

Thank you for this!!!!!

I changed the ownership of a gem then I couldn't push even though I own both accounts, so I needed to logout of the old account and login to the new one.
I'm just a little confused how it works, where is this thing saved? how can I view the other configurations of my gem?

If you can link me something that would be nice, I've been googling for over an hour now ;(

@kylesuss
Copy link

Haha awesome. Stumbled upon this, just what I needed!

@bithavoc
Copy link

rm ~/.gem/credentials

@veye1test
Copy link

+1 THX!

@SeanKilleen
Copy link

Thanks! This helped us while deploying a gem during a live conference as part of a session (the presenter had a new machine and accidentally logged into the wrong account).

@mlsaito
Copy link

mlsaito commented Apr 18, 2018

Thank you!

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