8757 Commits

Author SHA1 Message Date
Martin Afanasjew
b3627cc5b2 manpage: fix minor formatting inconsistencies 2016-01-06 08:17:29 +01:00
Martin Afanasjew
aaefcb02b6 manpage: improve synopsis for 'options' command
The options `--all`, `--installed`, and a list of formulae are mutually
exclusive arguments, of which exactly one is required.
2016-01-06 08:17:17 +01:00
Martin Afanasjew
ae31b48510 travis: remove Ruby path tweak
Putting the Ruby 1.8 we use to run tests on 10.9 into the PATH adversely
affects formulae with a Ruby dependency (possibly other formulae, too).
Remove this hack, as it is no longer needed.

Closes Homebrew/homebrew#47694.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-06 06:22:46 +01:00
Martin Afanasjew
8dc1e05ff8 utils: inject Ruby path when running Gems
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-06 06:21:42 +01:00
Alexander Udalov
35c58faa19 kotlin: renamed from kotlin-compiler
Closes Homebrew/homebrew#47675.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-06 02:03:55 +00:00
Mike McQuaid
a36872c1da gitignore: reorder, cleanup and document.
This new `.gitignore` format produces consistent/expected `git status`
output with Git <2.7.0, Git >2.7.0 and libgit2 0.23.4.

Closes Homebrew/homebrew#47721.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-05 19:16:03 +00:00
Dominyk Tiller
a508f9f94b Revert "formula: pass sdk_path in std_cmake_args"
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-05 17:29:48 +00:00
Mike McQuaid
6cb900addf download_strategy: don't do tar v on Travis CI.
The output is too noisy and Travis gets upset.
2016-01-05 17:01:51 +00:00
Baptiste Fontaine
0472b3f340 doctor: use respond_to? instead of NoMethodError
Closes Homebrew/homebrew#47715.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-05 17:51:54 +01:00
Baptiste Fontaine
88535b09b7 exceptions: hotfix 2016-01-05 16:08:25 +01:00
Mike McQuaid
52f471ac8d gitignore: fix Git 2.7.0 behaviour.
Closes Homebrew/homebrew#47710.
2016-01-05 14:09:26 +00:00
Baptiste Fontaine
9f1442db14 doctor: move code away from cmd/
Closes Homebrew/homebrew#47665.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-05 14:33:06 +01:00
Baptiste Fontaine
5d8a6e368f integration tests: allow env overriding 2016-01-05 14:33:06 +01:00
Misty De Meo
d99cfd1394 tap: require string extensions
Fixes Homebrew/homebrew#47684.
2016-01-04 16:22:26 -04:00
Dominyk Tiller
dafa11af9a doctor: add explicit anaconda warning
Closes Homebrew/homebrew#47540.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-04 17:22:53 +00:00
Martin Afanasjew
c5f0003061 test: don't fail if GitHub API is unavailable
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-04 16:26:36 +01:00
Martin Afanasjew
bd4f633673 tests: use predefined commit author for robustness
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-04 16:26:36 +01:00
Martin Afanasjew
301d88544f test: exhaustively test comparison of versions
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-04 16:26:25 +01:00
Martin Afanasjew
74baec5e79 test: test popen_read and popen_write with block 2016-01-04 16:26:25 +01:00
Martin Afanasjew
cc632acd07 update: avoid unnecessarily recreating 'master'
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-04 16:25:32 +01:00
Mateusz Lenik
47afde940a formula: fix undefined method error
Fixes: Homebrew/homebrew#47673.
Closes Homebrew/homebrew#47672.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-04 16:16:53 +01:00
Baptiste Fontaine
8f8c3cc1b1 integration tests: fix failing test
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-04 15:12:32 +01:00
Tomasz Pajor
78eecda7e9 offlineimap: rename from offline-imap
Closes Homebrew/homebrew#47638.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-04 12:21:00 +00:00
Baptiste Fontaine
9bdd6619e2 cleanup: move code away from cmd/
Closes Homebrew/homebrew#47484.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-04 13:17:21 +01:00
Zhiming Wang
d7b6230aed download_strategy: untar verbosely when --verbose is present
Closes Homebrew/homebrew#47555.
Closes Homebrew/homebrew#47649.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-04 11:10:32 +01:00
Dominyk Tiller
e7738d067f utils: extend brewed_curl recommended usage to 10.8
Closes Homebrew/homebrew#47646.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-04 03:10:10 +00:00
Dominyk Tiller
821dbab5f8 doctor: extend curl warning 2016-01-04 03:10:10 +00:00
Dominyk Tiller
8183f75dda config: split conditional
Stops Rubocop moaning about one line conditionals.

Closes Homebrew/homebrew#47537.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-03 19:08:11 +00:00
Dominyk Tiller
c7c9919d3a compilers: use comma consistently 2016-01-03 19:08:11 +00:00
Dominyk Tiller
d91caa2b92 languages/haskell: style nits 2016-01-03 19:08:11 +00:00
Dominyk Tiller
fff140cb9d language/haskell: wrap options in parens
Fixes:
language/haskell.rb:65: warning: `*' interpreted as argument prefix
2016-01-03 19:08:10 +00:00
Dominyk Tiller
abd4c699d1 pathname: remove redundant spacing 2016-01-03 19:08:10 +00:00
Dominyk Tiller
7e7838b5ba pathname: become less introspective
These self references are unnecessary.
2016-01-03 19:07:55 +00:00
Dominyk Tiller
cff0c63d03 test_intergration_cmds: fix minor typo 2016-01-03 19:06:26 +00:00
Dominyk Tiller
49f7c8d6a9 test_intergration_cmds: paren-wrap regex
Fixes this `brew readall` warning:

test_integration_cmds.rb:116: warning: ambiguous first argument; put parentheses or even spaces
2016-01-03 19:06:26 +00:00
Xu Cheng
15fe924484 RubyRequirement: check all available ruby
Closes Homebrew/homebrew#47605.

Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-03 21:00:11 +08:00
Xu Cheng
17a57f529b test_utils: add test_which_all 2016-01-03 21:00:11 +08:00
Xu Cheng
66c0b06d72 utils: add which_all
Similar to which, except it returns all of paths where binary is found.
i.e. it's equivalent to `which -a`.
2016-01-03 21:00:11 +08:00
Baptiste Fontaine
f29699f77c Cookbook: clearer wording 2016-01-02 23:27:56 +01:00
Xiyue Deng
e1dfafa54c Improve dash separated version detection.
* Also with test case.

Closes Homebrew/homebrew#47584.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-02 20:06:17 +01:00
Misty De Meo
c6f45a9e06 DependencyCollector: add lua51 language module 2016-01-01 20:10:34 -04:00
Misty De Meo
575b75fced LanguageModuleRequirement: remove jruby support 2016-01-01 20:10:34 -04:00
Misty De Meo
aa1461b7d6 LanguageModuleRequirement: remove ocaml support 2016-01-01 20:10:34 -04:00
Misty De Meo
36cef3c974 LanguageModuleRequirement: remove node support 2016-01-01 20:10:34 -04:00
Misty De Meo
1ad2aeef86 LanguageModuleRequirement: remove chicken support 2016-01-01 20:10:34 -04:00
Misty De Meo
d4db443b19 LanguageModuleRequirement: remove rbx support
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.
2016-01-01 20:10:34 -04:00
Misty De Meo
31501e7b38 Add more tests for DependencyCollector inferred deps 2015-12-31 19:52:41 -04:00
Misty De Meo
00c51a2480 DependencyCollector: infer dep for .lzh archives
Refs Homebrew/homebrew-games#383.
2015-12-31 19:48:07 -04:00
Xu Cheng
8444bb742e LICENSE: year bump
Happy new year 🎉 🎆
2015-12-31 23:15:52 +08:00
Misty De Meo
21d70a2816 Haskell: call fails_with on correct object
Fixes Homebrew/homebrew#47533.
2015-12-30 15:51:57 -04:00