14790 Commits

Author SHA1 Message Date
FX Coudert
481ffcf4e1 super/cc: bump -mmacosx-version-min on High Sierra and later 2018-09-20 10:37:35 +02:00
Markus Reiter
e5aaf36f7d Add spec for FormulaInstaller#audit_installed. 2018-09-19 20:07:15 +02:00
Markus Reiter
7a991985a4 Run tests with HOMEBREW_DEVELOPER unset. 2018-09-19 19:43:45 +02:00
Mike McQuaid
b614cad3b5
Merge pull request #4938 from MikeMcQuaid/travis-cleanup
Cleanup Travis and CI configuration.
2018-09-19 15:36:21 +01:00
Mike McQuaid
59c858a8e8
Cleanup Travis and CI configuration.
Use the environment variables set by `brew test-bot`. Eventually we'll
disable Travis CI running CodeCov so move `TRAVIS` references to
`HOMEBREW_TRAVIS_CI` so it doesn't need whitelisted.

Also, fix `azure-pipelines.yml` so it's testing the correct version of
Homebrew/brew (the one checked out in the `pwd`).
2018-09-19 15:01:33 +01:00
William Woodruff
2246780f0b
Merge pull request #4853 from woodruffw/error-pipe-check-closed
utils/fork: Check if error pipe is closed
2018-09-19 10:00:01 -04:00
William Woodruff
a59b708de9
exceptions: Language nit in ChildProcessError 2018-09-18 22:22:33 -04:00
William Woodruff
649a630826
utils/fork: Check if error pipe is closed
Document special interrupt case.
2018-09-18 22:21:12 -04:00
Markus Reiter
91b0794329 Add SystemCommand::Result#merged_output. 2018-09-19 04:02:59 +02:00
Markus Reiter
f1a2fa5601
Merge pull request #4935 from reitermarkus/gemfile
Update `Gemfile.lock`.
2018-09-19 03:58:20 +02:00
Markus Reiter
9b667af552
Merge pull request #4915 from alexbostock/code-coverage
Improve code coverage
2018-09-19 03:46:59 +02:00
Markus Reiter
846fa45c03 Update Gemfile.lock. 2018-09-19 03:35:11 +02:00
commitay
02219f91d1
Merge pull request #4862 from commitay/dependency-order
make dependency_order_cop a regular audit
2018-09-19 07:51:42 +10:00
Mike McQuaid
9d491463e3
Merge pull request #4933 from MikeMcQuaid/ronn-gemfile
test/Gemfile: add ronn.
2018-09-18 21:42:46 +01:00
Mike McQuaid
7c4b9f2274
Merge pull request #4932 from MikeMcQuaid/update-reset-repos
update-reset: allow specifying repositories.
2018-09-18 21:36:26 +01:00
Mike McQuaid
49273c1997
test/Gemfile: add ronn.
This now gets installed into the same place with or without a Bundler
installation but this saves an extra install for `brew test-bot` or
people running `brew man` after `brew tests`.
2018-09-18 21:23:43 +01:00
Mike McQuaid
3063b7fade
update-reset: allow specifying repositories.
This makes it easier to use this in e.g. CI to quickly reset various
repositories to their upstream versions.
2018-09-18 21:14:21 +01:00
Shaun Jackman
6bd0379449 Utils::Analytics.custom_prefix_label: Fix typo
Change generic-prefix to custom-prefix.
2018-09-18 09:49:19 -07:00
Mike McQuaid
ead23d1f4c
Use ActiveSupport File.atomic_write
nd delete our own implementation.
2018-09-18 09:20:40 +01:00
Mike McQuaid
4d1de3334c
Merge pull request #4912 from MikeMcQuaid/activesupport-hash-deep-merge
Use ActiveSupport Hash#deep_merge
2018-09-18 09:19:24 +01:00
commitay
b3e39014c9 Library/Homebrew/.rubocop.yml: remove RescueEnsureAlignment 2018-09-18 13:21:17 +10:00
commitay
737c9ad816 Library/.rubocop.yml: disable RescueEnsureAlignment 2018-09-18 10:30:59 +10:00
Markus Reiter
4897ec02d0
Merge pull request #4919 from reitermarkus/rubocop
Update to RuboCop 0.59.1.
2018-09-18 00:36:59 +02:00
alexbostock
188aca1075 Remove blank line 2018-09-17 21:13:19 +01:00
alexbostock
122738709a Add a_json_string matcher and improve tests 2018-09-17 20:49:43 +01:00
Mike McQuaid
0c6331878f
Use ActiveSupport Hash#deep_merge
And delete our own implementation.
2018-09-17 14:53:01 +01:00
Yurii Kolesnykov
de2700c9b6
add quotes to brew --cache in help for cleanup command 2018-09-17 12:13:29 +03:00
alexbostock
e733657f04 Separate and improve tests 2018-09-17 09:50:02 +01:00
Markus Reiter
e9b9ea49a1 Update to RuboCop 0.59.1. 2018-09-17 03:45:59 +02:00
Markus Reiter
05b71b80e4 Update RuboCop to 0.58.2. 2018-09-17 00:43:39 +02:00
alexbostock
a4020db526 Add test for brew info --json=v1 2018-09-16 22:06:42 +01:00
alexbostock
193b5aa07a Add test for brew commands --quiet 2018-09-16 21:54:19 +01:00
alexbostock
6e1374bef9 Add multiple arguments test for brew cat 2018-09-16 21:41:50 +01:00
Markus Reiter
3a0a9f9073 Add String#delete_prefix backport. 2018-09-16 20:07:34 +02:00
Markus Reiter
dfb6ada805
Merge pull request #4902 from MikeMcQuaid/active-support-blank
Use ActiveSupport Object#blank? and #present?
2018-09-16 20:02:00 +02:00
dependabot[bot]
68abb62c66
Bump parallel_tests from 2.22.1 to 2.23.0 in /Library/Homebrew/test
Bumps [parallel_tests](https://github.com/grosser/parallel_tests) from 2.22.1 to 2.23.0.
- [Release notes](https://github.com/grosser/parallel_tests/releases)
- [Commits](https://github.com/grosser/parallel_tests/compare/v2.22.1...v2.23.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-09-15 01:48:47 +00:00
Markus Reiter
614ac36e08
Merge pull request #4897 from reitermarkus/__MACOSX
Remove `__MACOSX` directory after unzipping.
2018-09-14 23:38:09 +02:00
Markus Reiter
2635160916
Merge pull request #4866 from amyspark/quarantine-support-unknown
Cask: constrain quarantine support status
2018-09-14 19:13:49 +02:00
Mike McQuaid
955214abc0
Use ActiveSupport Object#blank? and #present? 2018-09-14 17:02:19 +01:00
Mike McQuaid
a4d9b4816d
Partially add ActiveSupport and Concurrent Ruby gems. 2018-09-14 17:01:48 +01:00
L. E. Segovia
123dda09f0
Cask: constrain quarantine support status
Quarantine is available ONLY if the script exits with '2'.
It is definitely NOT available if Swift doesn't exist or if
it exits with '5' (incompatible SDK). All other cases are
from now on treated as unsupported.

Also print to standard error only when explictly required (via an
exception).
2018-09-14 15:48:16 +00:00
Markus Reiter
81cbab846f Remove __MACOSX directory after unzipping. 2018-09-14 17:41:09 +02:00
Markus Reiter
943e227ca1 Retry all specs with :needs_network. 2018-09-14 16:57:14 +02:00
Chongyu Zhu
76b41ba3f7
Merge pull request #4900 from lembacon/curlrc
Make remaining `curl` respect `HOMEBREW_CURLRC`
2018-09-14 21:59:53 +08:00
Chongyu Zhu
cc0f17eb7b
cmd/update: make curl respect HOMEBREW_CURLRC 2018-09-14 18:50:21 +08:00
Chongyu Zhu
93cac4ccee
utils/analytics: make curl respect HOMEBREW_CURLRC 2018-09-14 18:50:03 +08:00
Mike McQuaid
a6f25419aa
Update vendored gems
- backports to 3.11.4
- plist to 3.4.0
2018-09-14 10:08:43 +01:00
Mike McQuaid
5772493e24
Merge pull request #4895 from MikeMcQuaid/vendor-bundle-standalone
Use Bundler to manage vendor directory
2018-09-14 09:50:43 +01:00
Mike McQuaid
d7eca0b57c
Use Bundler to manage vendor directory
Rather than having to manually keep track of what version each thing in
here is and copy files around by hand on update let's use Bundler's
standalone mode and careful use of `.gitignore` to help us do it.

This means a `bundle update --standalone` will allow us to update all
gems in vendor.

We could consider vendoring other gems this way in future but I'd
suggest only doing this for gems with no dependencies or at least gems
with no native extensions. The only gem this applies to that we
currently use is `ruby-prof` and I'm not convinced it's widely used
enough to warrant vendoring for everyone. Perhaps that's another
criteria: it should be functionality that's used by non-developer
commands and/or normal Homebrew usage.
2018-09-13 15:24:18 +01:00
Mike McQuaid
1b45666518
Merge pull request #4891 from zgracem/add-commas-to-analytics
use 'number_readable' when displaying analytics
2018-09-13 14:30:15 +01:00