aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/github.rb
AgeCommit message (Collapse)Author
2016-11-20Replace Utils::JSON with corelib JSON calls.William Woodruff
2016-10-30Improve GitHub API scopes output.Mike McQuaid
Improve the GitHub API scope and token related messaging by autopopulating the scopes we need on the new scopes page and, in the case of a lacking a scope we need, output what scope was required. Also, DRY up the personal access token code.
2016-10-01Use Formatter for all URLs.Markus Reiter
2016-10-01Add `Formatter` module.Markus Reiter
2016-10-01Refactor Tty.Markus Reiter
2016-09-23Fix Style/ModuleFunction.Markus Reiter
2016-09-18Use new "macOS" naming where appropriate.Mike McQuaid
Not quite a mass replacement as I've used OS X and Mac OS X where describing specific older versions and added compatibility methods for things in the DSL.
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-11utils/github: fix Rubocop warnings.Mike McQuaid
2016-08-05various: eliminate the usage of `any?` (#638)Xu Cheng
`any?` is not the opposite of `empty?`. Besides the case that `[false, nil].any?` will return false, `any?`(O(n)) has much worse performance than `empty?`(O(1)).
2016-07-27utils/github: fix reverted order of credentialsMartin Afanasjew
We always return the token/password first and, if applicable, the user name is the second element in the returned array. Closes #581. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-07-27utils/github: fix broken pipe errorMartin Afanasjew
Closes #573.
2016-07-12github: produce better curl error messages. (#441)Mike McQuaid
* global: add RUBY_TWO global variable. * test-bot: use RUBY_TWO global variable. * github: produce better curl error messages. If we don't know why curl has failed then ensure that the error messages that it produced are included as part of the user output.
2016-07-03gist-logs: close temp file before passing to curl (#418)Andrew Janke
Ensures that the data gets written to disk so curl can see it, avoiding intermittent JSON parsing errors in gist creation.
2016-06-03Use `curl` for the GitHub API (#295)Mike McQuaid
* Move GitHub API module to utils/github.rb. * Move curl method to utils/curl.rb. * global: use long curl arguments and an array. This makes the code more self-documenting. * utils/curl: support reading curl's output. * utils/github: use curl instead of open-uri. It has far better proxy support. * pull: set Homebrew user agent. * gist-logs: remove trailing whitespace. * gist-logs: use first instead of [0]. Easier to read. * gist-logs: use curl-based GitHub.open method.