2836 Commits

Author SHA1 Message Date
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
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
943e227ca1 Retry all specs with :needs_network. 2018-09-14 16:57:14 +02:00
Mike McQuaid
7c056124e5
Merge pull request #4767 from amyspark/upgrade-relink
Upgrade: implement linkage repair
2018-09-13 14:29:58 +01:00
Mike McQuaid
44bcf69d1f
cmd/shellenv: use Bash.
This speeds up execution by 3x on my machine and the script is simple
enough to warrant this.
2018-09-13 09:27:44 +01:00
Markus Reiter
1130e1d24e
Merge pull request #4812 from alecclarke/increase-messages-unit-test-coverage
Increase the unit test coverage of messages.rb
2018-09-13 05:20:30 +02:00
L. E. Segovia
d442905719
Upgrade: implement linkage repair
After upgrading existing kegs, we now search and upgrade their
dependents as well. If any are detected that have broken linkage, they
are reinstalled from source.

If there are any formulae in the dependents tree that are pinned, they
are only reinstalled if they're not outdated; in all cases, a suitable
message is printed detailing the kegs that will be acted upon.
2018-09-12 19:28:02 +00:00
Alec Clarke
e6409f6a09 Increase the unit test coverage of messages.rb
This increases the messages.rb unit test coverage to 100%.
2018-09-12 06:11:38 -07:00
Mike McQuaid
23da378dd8
Merge pull request #4882 from Homebrew/dependabot/bundler/Library/Homebrew/test/parser-2.5.1.2
Bump parser from 2.5.1.0 to 2.5.1.2 in /Library/Homebrew/test
2018-09-12 08:31:37 +01:00
Mike McQuaid
3983db700f
Merge pull request #4881 from Homebrew/dependabot/bundler/Library/Homebrew/test/rspec-expectations-3.8.1
Bump rspec-expectations from 3.8.0 to 3.8.1 in /Library/Homebrew/test
2018-09-12 08:31:23 +01:00
Mike McQuaid
9e9845a5d4
Merge pull request #4879 from Homebrew/dependabot/bundler/Library/Homebrew/test/docile-1.3.1
Bump docile from 1.3.0 to 1.3.1 in /Library/Homebrew/test
2018-09-12 08:30:57 +01:00
dependabot[bot]
727b1e5ec8
Bump ruby-progressbar from 1.9.0 to 1.10.0 in /Library/Homebrew/test
Bumps [ruby-progressbar](https://github.com/jfelchner/ruby-progressbar) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/jfelchner/ruby-progressbar/releases)
- [Changelog](https://github.com/jfelchner/ruby-progressbar/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jfelchner/ruby-progressbar/compare/releases/v1.9.0...releases/v1.10.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-09-12 05:26:09 +00:00
dependabot[bot]
1ce9c3841c
Bump parser from 2.5.1.0 to 2.5.1.2 in /Library/Homebrew/test
Bumps [parser](https://github.com/whitequark/parser) from 2.5.1.0 to 2.5.1.2.
- [Release notes](https://github.com/whitequark/parser/releases)
- [Changelog](https://github.com/whitequark/parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/whitequark/parser/compare/v2.5.1.0...v2.5.1.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-09-12 05:26:07 +00:00
dependabot[bot]
e75ed35a44
Bump rspec-expectations from 3.8.0 to 3.8.1 in /Library/Homebrew/test
Bumps [rspec-expectations](https://github.com/rspec/rspec-expectations) from 3.8.0 to 3.8.1.
- [Release notes](https://github.com/rspec/rspec-expectations/releases)
- [Changelog](https://github.com/rspec/rspec-expectations/blob/master/Changelog.md)
- [Commits](https://github.com/rspec/rspec-expectations/compare/v3.8.0...v3.8.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-09-12 05:26:05 +00:00
dependabot[bot]
0c1fea35ff
Bump docile from 1.3.0 to 1.3.1 in /Library/Homebrew/test
Bumps [docile](https://github.com/ms-ati/docile) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/ms-ati/docile/releases)
- [Changelog](https://github.com/ms-ati/docile/blob/master/HISTORY.md)
- [Commits](https://github.com/ms-ati/docile/compare/v1.3.0...v1.3.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-09-12 05:25:41 +00:00
Shaun Jackman
f6093961ef Add Homebrew::DEFAULT_PREFIX for Linux
The default prefix is /usr/local on macOS
and /home/linuxbrew/.linuxbrew on Linux.
2018-09-11 09:57:08 -07:00
commitay
6053b6dc5b make dependency_order_cop a regular audit 2018-09-09 08:30:57 +10:00
Claudia
45bbf043c3
Merge pull request #4852 from amyspark/quarantine-per-install
Cask: fixes for quarantining
2018-09-08 22:47:50 +02:00
Markus Reiter
7bb35e1683
Merge pull request #4847 from reitermarkus/range-support
Check for range support instead of rescuing error.
2018-09-08 15:50:03 +02:00
Shaun Jackman
922843f047
Merge pull request #4849 from jamescostian/shellenv
Add brew shellenv - see #4780
2018-09-07 13:28:42 -07:00
James Costian
18d38d7b76
Add brew shellenv - see #4780 2018-09-07 11:37:14 -05:00
L. E. Segovia
ab31af2b4b
Cask: fixes for quarantining
Gatekeeper's Path Randomization is currently making automated
installation a nightmare. Let's manually toggle the (undocumented) app
translocation bit in the `com.apple.quarantine` extended attribute.

While we're at it, let's also toss in some fixes:

- zip downloads with improper permissions that prevent us from
quarantining
- quarantine/release/skip downloads as requested by the user
2018-09-07 15:37:31 +00:00
Mike McQuaid
7615d3a812
Improve writable directory handling
Consolidate the handling of which directories need to exist and which
need to be writable. Additionally, add a fatal check for formula
installations to ensure that any directories that need to be writable
are so before attempting an installation.

Fixes #4626.
2018-09-06 18:38:43 +01:00
Markus Reiter
072127197a Check for range support instead of rescuing error. 2018-09-06 16:25:22 +02:00
Markus Reiter
a84a1c63db Rename Hbc module to Cask. 2018-09-06 09:30:52 +02:00
Markus Reiter
78d4db2755 Use classes for instance doubles. 2018-09-06 09:13:21 +02:00
Markus Reiter
cf49788d3a Rename test/cask/cli to test/cask/cmd. 2018-09-06 08:33:51 +02:00
Markus Reiter
f64e0d8dbe
Merge pull request #4834 from reitermarkus/cask-version
Deprecate `brew cask --version`.
2018-09-06 07:53:42 +02:00
Markus Reiter
ac2cd67861 Deprecate brew cask --version. 2018-09-06 07:05:22 +02:00
Markus Reiter
33ce424399 Remove redundant namespacing. 2018-09-06 06:47:29 +02:00
Markus Reiter
eac60b0876 Add test for RuboCop $LOAD_PATH. 2018-09-06 01:10:47 +02:00
Markus Reiter
eca488a966 Add $LOAD_PATH for RuboCop cops. 2018-09-06 01:10:47 +02:00
commitay
88bf60d589
Merge pull request #4815 from commitay/cargo-cache
rust/cargo: enable caching
2018-09-05 21:22:03 +10:00
William Woodruff
eacdca872e
Merge pull request #4819 from woodruffw/error-pipe
utils: Use JSON to marshal child errors
2018-09-04 21:02:29 -04:00
Markus Reiter
0e03b46899 Refactor Hbc::Verify. 2018-09-05 01:39:30 +02:00
William Woodruff
367629d289
utils: Use JSON to marshal child errors
Replaces our serialization of child process
errors via Marshal with JSON, preventing
unintentional or malicious code execution outside
of the build sandbox.

Additionally, adds tests for the new behavior.
2018-09-04 11:03:32 -04:00
Mike McQuaid
1ae2326984
Rename Cask::CLI to Cask::Cmd. 2018-09-04 09:56:58 +01:00
Mike McQuaid
1d86d7a7c7
cask: move cask/cli to cask/cmd. 2018-09-04 09:56:57 +01:00
Mike McQuaid
e06f8a8beb
Rename Homebrew-Cask to Homebrew Cask. 2018-09-04 09:56:57 +01:00
Mike McQuaid
90b3a13909
cask: move cask/lib/hbc/* to cask/*.
Fix the load path, requires and some filenames accordingly.
2018-09-04 09:56:57 +01:00
Mike McQuaid
088730c6f1
Revert "Use JSON to marshal errors from children" 2018-09-04 08:37:08 +01:00
Markus Reiter
32ad22395b Remove some #popen_reads. 2018-09-04 05:16:59 +02:00
commitay
11a6413fd0 cleanup: remove cargo_cache 2018-09-04 12:00:57 +10:00
William Woodruff
1eec585afe
Merge pull request #4752 from woodruffw/error-pipe
Use JSON to marshal errors from children
2018-09-03 18:59:40 -04:00
William Woodruff
86b9647450
utils: Use JSON to marshal child errors
Replaces our serialization of child process
errors via Marshal with JSON, preventing
unintentional or malicious code execution outside
of the build sandbox.

Additionally, adds tests for the new behavior.
2018-09-03 18:42:59 -04:00
Markus Reiter
89dd608766 Deprecate gpg stanza. 2018-09-03 20:47:52 +02:00
dependabot[bot]
64869a6368
Bump parallel_tests from 2.22.0 to 2.22.1 in /Library/Homebrew/test
Bumps [parallel_tests](https://github.com/grosser/parallel_tests) from 2.22.0 to 2.22.1.
- [Release notes](https://github.com/grosser/parallel_tests/releases)
- [Commits](https://github.com/grosser/parallel_tests/compare/v2.22.0...v2.22.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-09-03 15:56:52 +00:00