The API used (`Net::HTTP::Post`) does not handle basic authentication
credentials in the same way as `open` so fix both cases so they work.
Also, do some general usability tweaks to point out to people what could
be wrong with their tokens or credentials to help them debug.
ClosesHomebrew/homebrew#50410.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Adds a summary file and description to get more informative displays on gist.github.com.
ClosesHomebrew/homebrew#45023.
Signed-off-by: Andrew Janke <andrew@apjanke.net>
The link for the page that allows creation of API tokens has changed
from /settings/applications to /settings/tokens. Also the wording
on that page calls them "personal access tokens", so update
Homebrew to be consistent with that.
ClosesHomebrew/homebrew#39378.
Signed-off-by: Tim D. Smith <git@tim-smith.us>