aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2016-01-11audit: check for more unused shorthandDominyk Tiller
Adding a strict check for usage that should be using pkgshare. Pulled onto two unique checks to provide a better problem message, with a clearer solution, but open to thoughts. * Use pkgshare instead of (share/"example") * Use #{pkgshare} instead of #{share}/example Closes Homebrew/homebrew#47900. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-10formula_installer: fix --default-fortran-flagsMartin Afanasjew
Setting the `FC` environment variable allows the user to override the default Fortran compiler. The `SharedEnvExtension#fortran` method then checks whether any of `FCFLAGS` and `FFLAGS` environment variables are set and, if not, suggests to use `--default-fortran-flags` when running `brew install`. However, `--default-fortran-flags` never makes it to `build.rb` (that is executed by `FormulaInstaller`) because the flag is not whitelisted in `FormulaInstaller#sanitized_ARGV_options`. This change rectifies this and thereby eliminates the confusing message. Fixes Homebrew/homebrew#47852.
2016-01-09doctor: simplify handling of slow checksMartin Afanasjew
Some (rather slow) checks should run after all other checks. Make that more obvious by removing them from the sorted list of all checks and then re-appending them to the resulting list. (Should be slightly more efficient than the `<array>.reverse.uniq.reverse` incantation, though that hardly matters given the cumulated run time of all the checks.) Slightly extend the list after verifying what the slowest checks are for various Homebrew installations (slowest check last). Closes Homebrew/homebrew#47753. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-09dependency_collector: add rbenvDominyk Tiller
Closes Homebrew/homebrew#47897. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-09requirements: add rbenv requirementDominyk Tiller
2016-01-09ffts: boneyard ye goDominyk Tiller
Closes Homebrew/homebrew#44527. Closes Homebrew/homebrew#47876. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-09test_keg: add test_empty_installationXu Cheng
2016-01-09add Keg#empty_installation?Xu Cheng
Avoid using `FormulaAuditor` in `FormulaInstaller`. Closes Homebrew/homebrew#47887. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-09fix test_missing testXu Cheng
2016-01-09reinstall: add --interactive and --git optionsZhiming Wang
Closes Homebrew/homebrew#47622. Closes Homebrew/homebrew#47647. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-09diagnostic: warn on outdated OS X versions.Mike McQuaid
We don't have CI or new bottles for them so they aren't supported well so we should warn users. Closes Homebrew/homebrew#47812.
2016-01-09os/mac: add outdated_release? method.Mike McQuaid
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-09formula_installer: improve empty installation detectionZhiming Wang
Use FormulaAuditor.audit_prefix_has_contents from audit.rb, which has better logic. Closes Homebrew/homebrew#47678. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-09tests: missing requires addedBaptiste Fontaine
Closes Homebrew/homebrew#47866. Closes Homebrew/homebrew#47861. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-09more utils testsBaptiste Fontaine
Closes Homebrew/homebrew#47856. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-09more diagnostic testsBaptiste Fontaine
2016-01-08update: abbreviate hashes to at least 7 charactersJoseph Frazier
Abbreviations will be longer if needed to preserve uniqueness. This makes it more consistent with `git rev-parse --short`, https://github.com/Homebrew/homebrew/commits, etc. For example, instead of: Updated Homebrew from 40d1e9c2 to 90b9bdf4. We see: Updated Homebrew from 40d1e9c to 90b9bdf. See 0c48248b6555353c8d60b61973639c8423ce586c for the original introduction of eight-character abbreviations.
2016-01-07a few more diagnostic checksBaptiste Fontaine
Closes Homebrew/homebrew#47769. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-06list: exclude Ruby from unbrewedMartin Afanasjew
Those are created by the `ruby` formula in core and various Ruby formulae from `homebrew/versions` and contain Gems and other stuff that is to be retained across updates. Treat it like Python in this regard. This avoids spurious output in `brew list --unbrewed` when a brewed `ruby` is used to, e.g., install Gems. Closes Homebrew/homebrew#47750. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-06list: exclude Homebrew logs from unbrewedMartin Afanasjew
Treat it like the cache, i.e., if the logs directory is inside the Homebrew prefix, skip it instead of listing all the logs. This avoids spurious output in `brew list --unbrewed` when the Homebrew logs directory is a subdirectory of the Homebrew prefix.
2016-01-06audit: typoBaptiste Fontaine
2016-01-06diagnostic testsBaptiste Fontaine
Closes Homebrew/homebrew#47760. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-06a few more integration testsBaptiste Fontaine
Closes Homebrew/homebrew#47714. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-06manpage: document '--dry-run' for 'prune' commandMartin Afanasjew
2016-01-06manpage: add parentheses in 'search' synopsisMartin Afanasjew
For consistency with other commands where there is a list of mutually exclusive options of which exactly one has to be specified.
2016-01-06manpage: fix minor formatting inconsistenciesMartin Afanasjew
2016-01-06manpage: improve synopsis for 'options' commandMartin Afanasjew
The options `--all`, `--installed`, and a list of formulae are mutually exclusive arguments, of which exactly one is required.
2016-01-06utils: inject Ruby path when running GemsMartin Afanasjew
Particularly the `bundler` Gem requires the right Ruby binary to be in the PATH to work correctly if the Ruby binary used to run Homebrew is overridden via `HOMEBREW_RUBY_PATH` and thus intentionally not prefixed to the PATH (as that would affect formulae with a Ruby dependency). The workaround here is to prefix this path only when a Gem is activated via `Homebrew.install_gem_setup_path!` (currently used in `brew man`, `brew style`, and `brew tests`).
2016-01-06kotlin: renamed from kotlin-compilerAlexander Udalov
Closes Homebrew/homebrew#47675. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-05Revert "formula: pass sdk_path in std_cmake_args"Dominyk Tiller
This reverts commit 5896555e5352b5e4f16f583ea444942cd1fc56bd. It caused header-location issue on dual-developer-tool systems for certain formulae. Will need looking at again, but we'll probably have to try and do this a different way. Closes Homebrew/homebrew#47668.
2016-01-05download_strategy: don't do `tar v` on Travis CI.Mike McQuaid
The output is too noisy and Travis gets upset.
2016-01-05doctor: use respond_to? instead of NoMethodErrorBaptiste Fontaine
Closes Homebrew/homebrew#47715. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-05exceptions: hotfixBaptiste Fontaine
2016-01-05doctor: move code away from cmd/Baptiste Fontaine
Closes Homebrew/homebrew#47665. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-05integration tests: allow env overridingBaptiste Fontaine
2016-01-04tap: require string extensionsMisty De Meo
Fixes Homebrew/homebrew#47684.
2016-01-04doctor: add explicit anaconda warningDominyk Tiller
Closes Homebrew/homebrew#47540. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-04test: don't fail if GitHub API is unavailableMartin Afanasjew
Tests shouldn't fail in case of an unavailable network or a deliberately disabled access to the GitHub API. Closes Homebrew/homebrew#47670. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-04tests: use predefined commit author for robustnessMartin Afanasjew
Some tests, that construct a Git repository for testing, will silently fail if the global Git user isn't properly set up. There are valid use cases for this, thus use a fixed commit author/committer for all tests instead of relying on the user's configuration.
2016-01-04test: exhaustively test comparison of versionsMartin Afanasjew
This tests all possible combinations of alpha, beta, RC, regular, and patch versions. Also improves code coverage and partitions the version comparison tests into more uniform chunks. Closes Homebrew/homebrew#47669. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-04test: test popen_read and popen_write with blockMartin Afanasjew
2016-01-04update: avoid unnecessarily recreating 'master'Martin Afanasjew
This only affects the behavior of `brew update` while being on a branch `feature` that doesn't track the upstream branch. For simplicity, the upstream branch is assumed to be called `master` (`@upstream_branch` in the code). Consider the following simplified commit history: master origin/master (current state of remote) | | A---B---C---D---E---F \ G---H---I | feature (HEAD) If `origin/master` is equal to `master` and also points at commit `C`, then `brew update` will update both `master` and `origin/master` to `F` and report on the changes in the range `C..F`. However, if `origin/master` is equal to `E` because some commits have been already fetched with `git fetch origin`, then `brew update` will recreate `master` from `origin/master` and then pull in the commits from the remote to update both to `F`. Because `master` gets recreated from a younger `origin/master`, the report will only contain changes from the range `E..F` (thus omitting the changes from `C..E`). This commit adjusts the logic to not recreate `master` if it can be safely fast-forwarded to `origin/master` (the common case). This fixes the problem from the second scenario and again reports on the desired range `C..F`. Closes Homebrew/homebrew#46951. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-04formula: fix undefined method errorMateusz Lenik
Fixes: Homebrew/homebrew#47673. Closes Homebrew/homebrew#47672. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-04integration tests: fix failing testBaptiste Fontaine
If the test fails above `formula_file`’s definition this line fails because `formula_file` is `nil`. Closes Homebrew/homebrew#47663. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-04offlineimap: rename from offline-imapTomasz Pajor
Closes Homebrew/homebrew#47638. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-04cleanup: move code away from cmd/Baptiste Fontaine
Closes Homebrew/homebrew#47484. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-04download_strategy: untar verbosely when --verbose is presentZhiming Wang
Closes Homebrew/homebrew#47555. Closes Homebrew/homebrew#47649. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-04utils: extend brewed_curl recommended usage to 10.8Dominyk Tiller
Closes Homebrew/homebrew#47646. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-04doctor: extend curl warningDominyk Tiller
2016-01-03config: split conditionalDominyk Tiller
Stops Rubocop moaning about one line conditionals. Closes Homebrew/homebrew#47537. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>