-
-
Notifications
You must be signed in to change notification settings - Fork 902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple API keys #152
Comments
Agreed, this is why
and in the credentials file: --- :rubygems_api_key: 1337 :mocra_api_key: 42 |
Makes me think of something related... we want to run a gemcutter instance to host our internal gems. Currently we have a company-specific gem which is exactly like the gemcutter one except it only provides the push command and point to our server. What if gemcutter supported something like: gem push foo.gem -h foo with h standing for host and defaulting to gemcutter. And the YAML file: --- gemcutter: api_key: foo url: http://gemcutter.org foo: api_key: bar url: http://gems.example.org I'd be happy to submit a patch if you are ok with this. |
I like that approach better, sr...however we'll have to continue to support --- rubygems: api_key: foo address: http://rubygems.org Thankfully since it's parsed as a YAML file we should be able to drop this in. |
This is done! rubygems/rubygems#17 |
as this is the top search result for this problem and since I spent 20 minutes trying to figure out the right config format, I thought I'd clarify it here for others. Just specify each key as a symbol in
|
As a developer for Mocra and an open source guy, sometimes I publish gems under the dev@mocra account and other times at my own personal account. In order to do this however I need to edit the ~/.gem/credentials file every time I need to switch. Whilst it would be easy for me to make a script to just mv the file elsewhere and copy over the new one, I think there would also be other people in this situation.
The text was updated successfully, but these errors were encountered: