aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
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>
2016-01-03compilers: use comma consistentlyDominyk Tiller
2016-01-03languages/haskell: style nitsDominyk Tiller
2016-01-03language/haskell: wrap options in parensDominyk Tiller
Fixes: language/haskell.rb:65: warning: `*' interpreted as argument prefix
2016-01-03pathname: remove redundant spacingDominyk Tiller
2016-01-03pathname: become less introspectiveDominyk Tiller
These self references are unnecessary.
2016-01-03test_intergration_cmds: fix minor typoDominyk Tiller
2016-01-03test_intergration_cmds: paren-wrap regexDominyk Tiller
Fixes this `brew readall` warning: test_integration_cmds.rb:116: warning: ambiguous first argument; put parentheses or even spaces
2016-01-03RubyRequirement: check all available rubyXu Cheng
Closes Homebrew/homebrew#47605. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-03test_utils: add test_which_allXu Cheng
2016-01-03utils: add which_allXu Cheng
Similar to which, except it returns all of paths where binary is found. i.e. it's equivalent to `which -a`.
2016-01-02Improve dash separated version detection.Xiyue Deng
* Also with test case. Closes Homebrew/homebrew#47584. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-01DependencyCollector: add lua51 language moduleMisty De Meo
2016-01-01LanguageModuleRequirement: remove jruby supportMisty De Meo
2016-01-01LanguageModuleRequirement: remove ocaml supportMisty De Meo
2016-01-01LanguageModuleRequirement: remove node supportMisty De Meo
2016-01-01LanguageModuleRequirement: remove chicken supportMisty De Meo
2016-01-01LanguageModuleRequirement: remove rbx supportMisty De Meo
This test wasn't running by default, so we missed that it wasn't actually being executed - or that it was failing when running in the testing environment. As far as I can tell this is not, and has not, been used either in core or in any tap, third party or otherwise, so just remove the feature and its test.
2015-12-31Add more tests for DependencyCollector inferred depsMisty De Meo
2015-12-31DependencyCollector: infer dep for .lzh archivesMisty De Meo
Refs Homebrew/homebrew-games#383.
2015-12-30Haskell: call fails_with on correct objectMisty De Meo
Fixes Homebrew/homebrew#47533.
2015-12-30pathname: don't try to calculate symlink size.Mike McQuaid
Closes https://github.com/Homebrew/homebrew/issues/47532 Closes https://github.com/Homebrew/homebrew-dupes/issues/542
2015-12-30test_utils: add test_disk_usage_readable and test_number_readableXu Cheng
2015-12-30utils: improve disk_usage_readableXu Cheng
* Avoid parallel assignment. * Avoid string manipulation.
2015-12-30pathname: improve compute_disk_usageXu Cheng
* Avoid parallel assignment. * Use Pathname#size instead of File#size * Use Pathname#directory? instead of File#directory? * Use basename to check `.DS_Store`. Original regex has poor performance, and may match with incorrect file.
2015-12-30pathname: fix use of `find` on Ruby 1.8.Mike McQuaid
2015-12-30cleanup: display total disk space to be clearedRakesh
Closes Homebrew/homebrew#45642. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-30pathname: store file count and disk usage.Rakesh
especially for directory instances of `Pathname` class and all instances of `Keg` class.