aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2016-07-27test_keg: port to generic layer.Mike McQuaid
2016-07-27test_formula: port to generic layer.Mike McQuaid
2016-07-27test_dependency_collector: port to generic layer.Mike McQuaid
2016-07-27bottles: more porting to generic layer.Mike McQuaid
2016-07-27hardware: more porting to generic layer.Mike McQuaid
2016-07-27exceptions: port to generic layer.Mike McQuaid
2016-07-27diagnostic: port to generic layer.Mike McQuaid
2016-07-27xcode: add update instruction helpers.Mike McQuaid
2016-07-27development_tools: add install instruction helpers.Mike McQuaid
2016-07-27blacklist: port to generic layer.Mike McQuaid
2016-07-27Rakefile: skip OS X-only tests on non-OS X.Mike McQuaid
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-27tap: more thoroughly validate tap namesMartin Afanasjew
`Tap.fetch` and commands building on top of it accepted tap names like `homebrew/homebrew/bogus` causing some misbehavior. Ensure neither `user` nor `repo` include slashes and print a more helpful error message that additionally includes the problematic tap name. Closes #585. Closes #591. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-07-27tap: test fetch/validation of invalid tap namesMartin Afanasjew
2016-07-27tests: extend cmd_fail to all non-zero exit codes (#595)Andrea Kao
2016-07-26Test Language::Python::VirtualenvTim D. Smith
2016-07-26Add helper class for Python virtualenvsTim D. Smith
2016-07-26test-bot: don't checkout/reset on --no-pullMike McQuaid
2016-07-27tests: add cmd/analytics integration test (#558)Andrea Kao
2016-07-26tests: add cmd/pull integration test (#525)Andrea Kao
2016-07-24analytics.sh: use full uuidgen path on OS X.Mike McQuaid
Fixes #575.
2016-07-24brew.rb: Use odie instead of onoe+exitBaptiste Fontaine
Closes #577. Signed-off-by: Baptiste Fontaine <b@ptistefontaine.fr>
2016-07-24audit: only check undeclared deps for standard installations. (#576)Xu Cheng
In fact, we don't really care about undeclared dependencies for optional installations. Because, this is mainly used to help us to detect breakage for bottles so we can do a revision bump.
2016-07-21add BuildOptions#build_bottle?Xu Cheng
This makes BuildOptions more compatible with Tab object. Otherwise, `brew reinstall foo` will just crash if foo is not installed.
2016-07-21FormulaInstaller#sanitized_ARGV_options: fix regexXu Cheng
This fixes a regression caused by 2e961dc9dee63f641f7f162fd7a2845c5fd092fe, where a misplaced `+` cause the regex only catch one character. Fixes https://github.com/Homebrew/homebrew-science/issues/3847.
2016-07-20pkg-config: update for macOS 10.12 beta 3Dominyk Tiller
2016-07-20xcode: update expected clang for macOS 10.12Dominyk Tiller
2016-07-19tests: add cmd/irb integration test (#501)Andrea Kao
2016-07-19tests: nest HOMEBREW_TEMP inside TEST_TMPDIR (#554)Andrea Kao
2016-07-19test-bot: fix coverage on Travis CIMartin Afanasjew
Make sure to call `brew tests` only once with `--coverage` to avoid expensive multiple runs and to prevent later runs from overwriting previously sent results to Coveralls. (The previous setup overwrote the results from a regular run with results from the `--generic` run.) The `--no-compat` variant without any other options specified seemed to be the most appropriate for a coverage report. Closes #546. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-07-19tests: use SimpleCov 0.12.0 and Coveralls 0.8.14Martin Afanasjew
SimpleCov 0.12.0 brings some moderate speed improvements and soon (sadly not yet) can be switched back to a stable release. Update to matching Coveralls release, fortunately with fewer dependencies than before.
2016-07-19tests: strip Homebrew prefix from coverage reportMartin Afanasjew
Make `Library/Homebrew` the new root now that *all* implementation files are in this directory. Update filters/groups accordingly. Note that paths in filters/groups are not anchored at the root and are always matched against the full path. Our rules are effectively anchored because they always include the `/Homebrew/` path component.
2016-07-18inreplace: support for audit arg in non-block formilovezfs
Provides feature parity between the block and non-block forms of inreplace by creating a four-argument version of the non-block form, where the fourth argument is an optional Boolean value, defaulting to true, which specifies whether a failed inreplace should cause an InreplaceError error to be raised. The fourth argument is passed along to StringInreplaceExtension#gsub!, which already supports an optional audit_result argument. This resolves the Catch-22 that single replacements aren't permissible in the block form (in that they now cause `brew audit` to complain), but the audit_result argument is not available in the non-block form. Closes #552. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-07-18reinstall: handle new optionsXu Cheng
Since we are loading options as Formula#build from tab, we will have to explicitly read options from ARGV as well. Fixes #3066. Closes #537. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-07-18remove unnecessary `Tab.for_formula`Xu Cheng
We already loaded tab in ARGV.resolved_formulae or Formulary.from_rack
2016-07-18remove unnecessary build options manipulation for test and postinstallXu Cheng
We already loaded build options in ARGV.resolved_formulae for test and postinstall
2016-07-18LinkageChecker: simplify logic (#538)Xu Cheng
BuiltOptions#without? already handles the option_names for dependencies. Also check disabled recommended deps.
2016-07-17mac/diagnostic: add check_for_prerelease_xcodeDominyk Tiller
Closes #524. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-07-17xcode: track prerelease releasesDominyk Tiller
2016-07-18create: path.version may be nilXu Cheng
Fixes https://github.com/Homebrew/homebrew-core/issues/3067.
2016-07-17Update commit when resolving the formula (#536)Uladzislau Shablinski
2016-07-17extend/ARGV: avoid assignment in argument listMartin Afanasjew
Aside from being bad style, this also assigns to an unused variable.
2016-07-16audit: prevent crash from nil exitstatus (#532)Margaret Lewicka
If rubocop invocation from brew audit exits with nil exitstatus, brew audit fails with 'undefined method `>' for nil:NilClass'.
2016-07-17software_spec: use version dups for resources (#534)Uladzislau Shablinski
Also prevent the commit of formula's HeadVersion from passing to the resource. This is a fix of #531
2016-07-16os/mac/xcode: fix CVS/GCC check if no XcodeMartin Afanasjew
On systems prior to 10.9, formulae that use CVS as a download source check whether the installed Xcode already provides CVS to avoid adding a dependency on the `cvs` formula. Unfortunately, if no Xcode is installed the check fails with undefined method `<' for nil:NilClass causing the formula to become unloadable. This in turn causes some taps to be untappable since #396 added the `readall` check on `tap`. Closes #508.
2016-07-17Tab#for_formula: using Formula#installed_prefixXu Cheng
Closes #529. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-07-17ARGV#kegs: using installed_prefix to locate kegXu Cheng
2016-07-17ARGV#resolved_formulae: check whether input is a formula fileXu Cheng
2016-07-17Keg#link: run optlink firstXu Cheng
This prevents a link conflict during `brew upgrade` causing opt link stuck to old version. At this point, users will have to run `brew switch` to fix it. Closes #533. Signed-off-by: Xu Cheng <xucheng@me.com>