aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/gist-logs.rb
AgeCommit message (Collapse)Author
2017-12-14gist-logs: use full path to brew.Mike McQuaid
This fixes the command with environment filtering enabled.
2017-10-18Use “squiggly” heredocs.Markus Reiter
2017-06-04Change manpage internal links in correct location.Mike McQuaid
2016-11-13No if/unless-modifier on multiline blocks.Markus Reiter
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-02Use `module_function` for commands.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-08-17Fix minor issues in command help text formattingMartin Afanasjew
- Inconsistent or unneeded indentation - Missing or superfluous empty lines - Missing or wrongly formatted arguments in command summary - Missing punctuation
2016-07-05gist-logs: truncate log files to be gist-friendly (#279)Andrew Janke
Truncates each log file to about 1 MB. This avoids upload and download errors with the gists, and respects GitHub's suggested size limits.
2016-06-05gist-logs: fix new-issue URL.Mike McQuaid
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.
2016-05-09gist-logs: add proper documentation, improve error handling (#217)Jam
2016-05-08gist-logs: fix system_config reference.Mike McQuaid
2016-03-28utils, gist-logs: improve/fix credential handling.Mike McQuaid
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. Closes Homebrew/homebrew#50410. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-03-08Set HOMEBREW_API_TOKEN from Git when available.Mike McQuaid
As requested in Homebrew/homebrew#46578. Falls back to existing functionality. Closes Homebrew/homebrew#46578. Closes Homebrew/homebrew#49846. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-11-26gist-logs: Friendlier titles and display for log gistsAndrew Janke
Adds a summary file and description to get more informative displays on gist.github.com. Closes Homebrew/homebrew#45023. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2015-10-18MacOS: full_version addedBaptiste Fontaine
Closes Homebrew/homebrew#44988. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-27gist-logs: use ARGV.resolved_formulaeXu Cheng
2015-05-05Update links to GitHub's personal access tokenAlex Muller
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. Closes Homebrew/homebrew#39378. Signed-off-by: Tim D. Smith <git@tim-smith.us>
2015-04-25Add Formula#logsJack Nagel
2015-02-11gist-logs: show the formula origin for non core-formulaXu Cheng
Closes Homebrew/homebrew#36730. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-11-10gist-logs: basic loginStefan
Closes Homebrew/homebrew#33839. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-09-27Drop executable bits from imported commandsJack Nagel
Closes Homebrew/homebrew#32743.
2014-09-24brew-gist-logs: make an internal command.Mike McQuaid