forked from defunkt/gist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load GitHub token from netrc if it's not in AuthTokenFile
Git, curl, and other tools already offer support for loading credentials from ~/.netrc, namely when interacting with GitHub. This uses the netrc gem to play along. This is implemented as a fallback, in case a token is not found in the gist-specific file. To avoid adding gem dependencies, the netrc library is imported from https://github.com/heroku/netrc into the vendor folder. It is licensed under the MIT license, the same as this project. The standalone script build/gist was regenerated and pulls in missing changes in addition to the netrc dependency. Fixes defunkt#260.
- Loading branch information
Showing
4 changed files
with
544 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.