Skip to content
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

Allow --host for yank/unyank command #1361

Merged
merged 2 commits into from
Dec 31, 2015

Conversation

smellsblue
Copy link
Contributor

I noticed that yank/unyank doesn't have a --host option like push does.

It would be convenient to have such an option so someone running a private gem server can easily yank or unyank a gem using RubyGems.

It is already possible to do this via the RUBYGEMS_HOST environment variable, however I didn't even know this was possible until I saw it in the code.

I tried to keep my change minimal, and the style as consistent as possible, but please let me know if I missed something, or you would like any additional changes or tests.

@indirect
Copy link
Member

@smellsblue can you resolve the merge conflicts? We've dropped yank --undo since it's not supported by rubygems.org.

Revert the other host code in the test
Pass the host to rubygems_api_request (not sure why this fixes the test...)
@smellsblue smellsblue force-pushed the yank-from-alternate-host branch from 274c944 to 45e1d9d Compare December 31, 2015 18:48
@smellsblue
Copy link
Contributor Author

@indirect done :-)

@krainboltgreene krainboltgreene self-assigned this Dec 31, 2015
krainboltgreene pushed a commit that referenced this pull request Dec 31, 2015
@krainboltgreene krainboltgreene merged commit 4af9eb1 into rubygems:master Dec 31, 2015
@smellsblue smellsblue deleted the yank-from-alternate-host branch December 31, 2015 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants