Commit Graph
132 Commits
Author SHA1 Message Date
Markus Reiter 1a96dc39d1 Add audit check to see if both version and checksum changed. 2017-05-22 02:01:57 +02:00
Markus Reiter 5828eefd01 Remove to_s from some Pathnames. 2017-05-08 13:37:28 +02:00
Markus Reiter 133e5ddf6a Remove unnecessary block. 2017-04-25 12:29:01 +02:00
Markus Reiter 2bda194bd9 Add GitHub::search_code method. 2017-04-25 12:29:01 +02:00
Mike McQuaid 45a7730f61 Fix and remove various TODOs.
Fix those that can be done so without tearing Homebrew to pieces and
remove the comments for those that can never be done.
2017-04-23 15:10:18 +01:00
Mike McQuaid ba3c46d24f More deprecations.
Deprecate more methods. Internal APIs have been verified to be unused
elsewhere and removed. External APIs have had deprecation methods added.
Existing deprecations have been either upgraded to produce warnings or
no longer deprecated and the reasoning documented.
2017-04-22 16:28:07 +01:00
Mike McQuaid d0bbadde22 github: don't print when searching PRs. 2017-03-23 08:39:28 +00:00
Markus Reiter 44d367edca Deprecate #plural. 2017-03-11 21:16:37 +01:00
Markus Reiter c594ffefbc Add Formatter::pluralize. 2017-03-11 21:12:51 +01:00
Mike McQuaidandGitHub 0a8c8f90b6 Merge pull request #1708 from joshka/feature/install-tap-cmd-completions
install tap cmd completions
2017-02-27 08:42:17 +00:00
Joshua McKinney 25396d9c4d Install tap command completions and manpages
Taps can include completion scripts for external commands under
`completions/bash`, `completions/fish`, or `completions/zsh`. `brew tap`
will automatically install these into the correct directories during
install.
2017-02-26 15:40:52 -06:00
David Broder-Rodgers ed9f775b77 Added support for returning HTTP status codes and for git and svn URLs 2017-02-20 19:24:19 +00:00
ilovezfs ac7a593730 InreplaceError: fix undefined method crash
When the first parameter to inreplace was an array, and the replacement
failed, InreplaceError would end up crashing with an undefined method
exception because the order of operations resulted in super not being
passed the value of the entire inject block.
2017-01-12 07:22:34 -08:00
Mike McQuaid e7a81caaf4 Allow brew audit to fake a Safari user-agent.
This allows us to detect if homepages such as e.g. `aiccu` which
blocks `curl` are up or not.
2017-01-07 14:03:08 +00:00
Mike McQuaid a3bffe70bc Use docs.brew.sh links. 2017-01-04 11:13:41 +00:00
Mike McQuaid e6fb3c3114 curl: make curl_args more configurable.
Allow configuring whether output should be shown or the default the
default user agent is used.
2016-12-29 12:51:12 +00:00
Mike McQuaid ebe45490b6 analytics: don't raise if tap doesn't exist. 2016-12-11 13:43:32 +00:00
William Woodruff d07b9ed7f2 Replace Utils::JSON with corelib JSON calls. 2016-11-20 20:06:25 -05:00
William Woodruff 54d18cee17 compat: deprecate Utils::JSON in favor of corelib JSON. 2016-11-20 15:02:47 -05:00
William Woodruff 4278ec38e4 utils/json: Replace OkJson with Ruby's core JSON.
Removes OkJson from vendor/, as Ruby has included its own JSON
parser in corelib since 1.9.x and Homebrew is now guaranteed to be
running on 2.x+.
2016-11-17 23:16:21 -05:00
Mike McQuaid 9edf8eb1fe Check the lock directory is writable.
And, if it isn't, print more helpful debugging messages.

Fixes #1456.
2016-11-11 22:52:21 +00:00
Mike McQuaid 3c7446f3ff Improve GitHub API scopes output.
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-30 15:38:19 -04:00
William Woodruff 72b81844ed Redirect stderr output from git (shim) invocations to /dev/null.
These invocations occur before we can actually automatically install git via
bottle, and as such their output isn't relevant.
2016-10-26 16:33:35 -04:00
Mike McQuaid 1f963267b6 Update Rubocop style.
Another look at the current Rubocop rules and how they fit with our
existing and desired future style. Almost all of these changes were
automatic. Split some rules between formulae/brew where brew doesn't
have millions of cases that need fixed.
2016-10-22 13:32:46 +01:00
Andrew Janke e72f1139ad Formatter: identifier: only reset color, not full styling 2016-10-17 00:45:37 -04:00
Markus Reiter 581a1245bf Move Formatter.columns into utils/formatter. 2016-10-15 17:22:10 +02:00
Markus Reiter 198bf4d3bd Convert puts_columns to puts Formatter.columns. 2016-10-15 17:13:38 +02:00
Markus Reiter 429327cac8 Use proc to fallback to puts. 2016-10-15 17:13:38 +02:00
Markus Reiter 5ee6df6d82 Fallback to $stdout.tty? unless respond_to?(:tty?). 2016-10-15 17:13:38 +02:00
Markus Reiter 4bfeaaf212 puts_columns only has to be defined inside module Kernel. 2016-10-15 17:13:38 +02:00
Markus Reiter 6e10f91371 Refactor puts_columns. 2016-10-15 17:13:37 +02:00
Markus Reiter 884b268506 Use Formatter for all URLs. 2016-10-01 20:00:49 +02:00
Markus Reiter 75e8b59aad Add Formatter module. 2016-10-01 20:00:49 +02:00
Markus Reiter 6d8ee395fa Refactor Tty. 2016-10-01 20:00:49 +02:00
Alyssa Ross e0d39cc3ef analytics: don't report commands run by Homebrew
Fixes #788.
2016-10-01 15:18:09 +01:00
Markus Reiter 58e36c7319 Fix Style/GuardClause. 2016-09-24 12:24:35 +02:00
Markus Reiter 25d5f74f3e Fix Style/ModuleFunction. 2016-09-23 17:36:27 +02:00
Markus Reiter fe2d51e0b9 Fix Style/IfUnlessModifier. 2016-09-23 15:30:07 +02:00
Mike McQuaid b85ee1cb8f Update documentation links. 2016-09-20 10:41:42 +01:00
Mike McQuaid 3f9cce0a03 Use new "macOS" naming where appropriate.
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-18 19:57:19 +01:00
Mike McQuaid 3982950e61 rubocop --auto-correct all hash-rocket usage. 2016-09-17 16:14:13 +01:00
Mike McQuaid e3609b6fd4 Move LinkedKegs/PinnedKegs/Locks from Library.
These don't make sense to be tied to the `HOMEBREW_REPOSITORY` but
instead should live in the `HOMEBREW_PREFIX` as they all relate to its
state.
2016-09-16 13:51:56 +01:00
Mike McQuaid 94f763e9c7 utils/shell: 2016-09-11 19:13:01 +01:00
Mike McQuaid aa3d53f249 utils/shell: fix Rubocop warnings. 2016-09-11 19:13:00 +01:00
Mike McQuaid ecf46b841b utils/inreplace: fix Rubocop warnings. 2016-09-11 19:13:00 +01:00
Mike McQuaid 1f2abbdd6e utils/hash: fix Rubocop warnings. 2016-09-11 19:13:00 +01:00
Mike McQuaid 6cfb841524 utils/github: fix Rubocop warnings. 2016-09-11 19:13:00 +01:00
Mike McQuaid 3bf5e779ab utils/curl: fix Rubocop warnings. 2016-09-11 19:13:00 +01:00
Misty De Meo e40d70c761 Utils::Shell: convert to use module_function 2016-09-05 14:45:29 +10:00
Mike McQuaidandGitHub dfcbefff73 Merge pull request #201 from gregory-nisbet/feature-env-shells
--env: support more shells, allow explicit shell selection
2016-09-04 21:23:33 +01:00