-
Notifications
You must be signed in to change notification settings - Fork 341
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
Remove anonymous support due to deprecation. #280
Conversation
Fixes defunkt#275 This change is needed due to the deprecation warning/removal made by Github on the gist tool. See https://blog.github.com/2018-02-18-deprecation-notice-removing-anonymous-gist-creation/ for more info.
pinging @rking and @ConradIrwin for review 😀 |
lib/gist.rb
Outdated
@@ -127,7 +127,8 @@ def multi_gist(files, options={}) | |||
|
|||
existing_gist = options[:update].to_s.split("/").last | |||
if options[:anonymous] | |||
access_token = nil | |||
raise 'Anonymous gist support has been removed by Github. ' \ | |||
'See: https://blog.github.com/2018-02-18-deprecation-notice-removing-anonymous-gist-creation/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@estebanz01 Thanks for this — can we make this error explain to the user what to do about it?
raise 'Please log in with `gist --login`. (Github now requires credentials to gist https://bit.ly/2GBBxKw)'
@estebanz01 Thanks for your help! I'd like to fix this properly, could you please:
Let me know if you need any help. |
Feedback addressed @ConradIrwin. Can you take another pass ? Thanks 👀 |
Thanks! released as gist 5.0.0 |
Fixes #275
This change is needed due to the deprecation warning/removal made by Github on the gist tool. See https://blog.github.com/2018-02-18-deprecation-notice-removing-anonymous-gist-creation/ for more info.