aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2016-04-21Formula: include bad value in invalid-option error messageAndrew Janke
Makes identifying which line in a formula has the bad use of 'option' easier. Closes #120. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-21brew-audit: pull style checks in to main audit outputAndrew Janke
This collects all violations for each formula in a single place, instead of doing `brew style` outputs for all formulae first, and then the other audit checks. Closes #112. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-21Move OS::Mac::Xcode.provides_autotools? to compatMisty De Meo
Closes #125. Signed-off-by: Misty De Meo <mistydemeo@github.com>
2016-04-21doctor: remove autotools checkMisty De Meo
2016-04-21stdenv: stop setting ACLOCAL_PATHMisty De Meo
2016-04-21brew.rb: uninstall old Homebrew Cask. (#121)Mike McQuaid
This version is never wanted at this point and it will help Homebrew Cask deal with the annoying errors that result from having this version still around (some which I've already help users debug).
2016-04-21analytics: roll tracking ID.Mike McQuaid
Someone else has been sending weird data to ours and it has bad initial test data so let's roll it before we ship it to everyone on Saturday.
2016-04-20tests: expand help and help-related testsMartin Afanasjew
Closes #114. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-04-20exceptions: add reason to 'UsageError' exceptionMartin Afanasjew
Use the `reason` attribute to be able to handle `UsageError` subclasses more uniformly and simplify logic in `brew.rb` to handle them together.
2016-04-20help: show command-specific help for invalid usageMartin Afanasjew
Instead of always printing the generic help text, print command-specific help if it is available and a command raised the `UsageError` exception. Put the error message underneath the help text (was above) to avoid that it scrolls off the screen. Thereby fix a regression where handling the invalid usage would fail to access `ARGV.usage` removed in c6536066dc39da653d265640c6ba6046bb5def98.
2016-04-20help: refactor (again) and fix code style issuesMartin Afanasjew
Turns out making `empty_argv` a boolean argument for `Homebrew.help` was not the best idea and having command-to-path mapping and help extraction in a single method is not flexible enough. Also only complain about missing help text when `HOMEBREW_DEVELOPER=1` and otherwise just print the generic help text.
2016-04-20help: improve styling of generic help textMartin Afanasjew
Format the usage examples more consistently (particularly parentheses instead of square brackets where one of several alternatives has to be picked). And add the now much more useful `brew help <command>`. Closes #113. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-04-20--version: move help to documentation commentMartin Afanasjew
This implies that `--version` is treated in most places like a regular command, e.g. being suggested in shell completion. Also fix the help text that claimed output goes to standard error, while it actually goes to standard output.
2016-04-20--repository: move help to documentation commentMartin Afanasjew
2016-04-20--prefix: move help to documentation commentMartin Afanasjew
2016-04-20--env: move help to documentation commentMartin Afanasjew
2016-04-20--cellar: move help to documentation commentMartin Afanasjew
2016-04-20--cache: move help to documentation commentMartin Afanasjew
2016-04-20man: put option-style commands after regular onesMartin Afanasjew
2016-04-20tests: fix Ruby 1.8 syntax warningsMartin Afanasjew
In `Library/Homebrew/test/`: test_integration_cmds.rb:431: warning: (...) interpreted as grouped expression test_integration_cmds.rb:502: warning: (...) interpreted as grouped expression test_integration_cmds.rb:507: warning: (...) interpreted as grouped expression test_integration_cmds.rb:585: warning: (...) interpreted as grouped expression test_integration_cmds.rb:709: warning: (...) interpreted as grouped expression test_integration_cmds.rb:710: warning: (...) interpreted as grouped expression test_integration_cmds.rb:711: warning: (...) interpreted as grouped expression
2016-04-20brew.rb: fix Ruby syntax warningMartin Afanasjew
Library/brew.rb:108: warning: `*' interpreted as argument prefix
2016-04-19man: fix Ruby syntax warningXu Cheng
Library/Homebrew/cmd/man.rb:44: warning: assigned but unused variable - commands Closes #116. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-04-19test-bot: simplify the logicXu Cheng
Closes #115. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-04-19add Tap#default_remoteXu Cheng
* without `default_remote`, `CoreTap#install` won't be able to tell whether user has passed to custom remote to it. * simplify some part of logics
2016-04-19Tap#install: better TapRemoteMismatchError checkXu Cheng
* remote check requires `git` installed. * Do not perform check if user does not passing remote explicitly. Fixes #108
2016-04-19Revert "man: fix Ruby syntax warning"Xu Cheng
This reverts commit 2caf7b76bb3e09ffabf8c56d3934ba8190673fdc.
2016-04-19linkage: fix Ruby syntax warningXu Cheng
Library/Homebrew/dev-cmd/linkage.rb:113: warning: shadowing outer local variable - label
2016-04-19man: fix Ruby syntax warningXu Cheng
Library/Homebrew/cmd/man.rb:44: warning: assigned but unused variable - commands
2016-04-19test-bot: prevent infinite loop caused by unavailable formula.Xu Cheng
Noted, `brew tap foo` will not fail if the tap is already installed.
2016-04-19linkage: load formula from rackXu Cheng
This is to avoid TapFormulaAmbiguityError. We should load formula based on what we installed, rather than just name.
2016-04-18test-bot: check all dependents for broken dylibsAndrew Janke
Pulls 'brew linkage' in to main brew repo as a dev-cmd, and has test-bot use it to detect dylib breakage, which usually means a revision bump is needed. Checks all dependents, not just those with a 'test do' block defined, since we can do this without formula support. Closes #107. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-18test-bot: don't untap during cleanup_beforeDominyk Tiller
2016-04-18CLT: special case detect_version pre-3.xMisty De Meo
Fixes mistydemeo/tigerbrew#186. Closes #110. Signed-off-by: Misty De Meo <mistydemeo@github.com>
2016-04-18Xcode: update version detection for 2.xMisty De Meo
2016-04-18XQuartz: detect Tiger's prefixMisty De Meo
2016-04-18XQuartz: add Tiger's versionMisty De Meo
2016-04-18XQuartz: support Tiger's prefixMisty De Meo
2016-04-18test-bot: purge non-core taps at start/end of job (#109)Dominyk Tiller
https://github.com/Homebrew/brew/commit/e70a3552d3faddd0afd2535a03c31b8c50be901a seems to have exacerbated the problem where taps stick around and then `brew uses` gets executed on a whole host of taps, which is currently breaking almost every PR for formulae that would be used cross-tap, as well as causing lengthier CI builds. Examples from the last week or so include sqlite, V8, protobuf, and so on. Whilst it may be true that cross-tap formulae failing can show problems that need looking at, a lot of the time the failures are unrelated to the build in question and just leave contributors confused on what needs to be done, or why their PR is failing for something that seems entirely unrelated. You can see the taps failing to vanish locally by doing something like: ``` brew tap homebrew/fuse brew tap homebrew/versions cd $(brew --prefix) && git clean -ffdx --exclude=/Library/Taps/ brew tap ... homebrew/core homebrew/fuse homebrew/versions ``` This is a very simple proposal to handle the problem, but there's no real reason I couldn't write this functionality into untap itself and then we call that in test-bot. Just didn't necessarily want to jump immediately to expanding the untap command to solve what is more-or-less a CI problem.
2016-04-18brew test, install, update-test: add --keep-tmp optionAndrew Janke
Also enables sandbox for --interactive and --debug use of install and test, using automatic retention. Closes #66. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-18brew.sh: error out if no Ruby found.Mike McQuaid
This is a nicer error message than the `exec` failing at a later stage.
2016-04-18brew.rb: don't show help for 'brew <command> help'Martin Afanasjew
Showing help makes sense for `brew help <command>`, but showing it for `brew <command> help` is undesirable and prevents all commands from accepting a named argument `help` (formula, tap, file name, etc.). All other help flags are still detected before *and* after the command. Closes #103. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-04-18ARGV: remove unused 'usage' methodMartin Afanasjew
Also remove related helper method `Homebrew.help_s`.
2016-04-18help: handle help output (move from 'brew.rb')Martin Afanasjew
Keep the footprint of `brew.rb` small. Handle fetching/displaying an appropriate help text (taking into account various external conditions) in the `help` command.
2016-04-17tests: test FormulaClassUnavailableErrorMartin Afanasjew
Closes #101. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-04-17install: handle FormulaClassUnavailableErrorMartin Afanasjew
Don't search for alternatives if formula was found, but has issues, as this will create confusing output, particularly for contributors working on a formula file.
2016-04-17formulary: use FormulaClassUnavailableErrorMartin Afanasjew
Present a more helpful error message if a formula file was loaded, but the class(es) therein didn't match the expected formula class name.
2016-04-17exceptions: add FormulaClassUnavailableErrorMartin Afanasjew
2016-04-17manpages: add editing instructions to ERB templateMartin Afanasjew
Closes #102. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-04-17man: replace split header/footer with ERB templateMartin Afanasjew
2016-04-17manpages: remove no longer needed 'brew.1.md'Martin Afanasjew
Changes to the man page are made in `header.1.md`, `footer.1.md`, or the documentation comment block in the respective command file. Remove old Markdown file to reduce confusion, now that it is no longer needed (and not even used by `brew man`).