14758 Commits
Author SHA1 Message Date
Yurii Kolesnykov de2700c9b6 add quotes to brew --cache in help for cleanup command 2018-09-17 12:13:29 +03:00
Markus Reiter 05b71b80e4 Update RuboCop to 0.58.2. 2018-09-17 00:43:39 +02: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
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 f3ea2a85da Merge pull request #4890 from sjackman/elide-root-url
Elide default root_url in the bottle block
2018-09-13 14:29:45 +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
Mike McQuaid be983cfcdf info: also make verbose output readable. 2018-09-13 09:07:43 +01:00
Mike McQuaid 73e8bf68c7 Merge pull request #4892 from scpeters/bottle_keep-old_root-url
dev-cmd/bottle: fix --keep-old with --root-url
2018-09-13 08:57:26 +01:00
Markus Reiter 705f8b7616 Merge pull request #4873 from reitermarkus/pax
Fix extracting `.pax` archives.
2018-09-13 05:21:44 +02: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
Steven Peters c4ba06c9fc dev-cmd/bottle: fix --keep-old with --root-url
Don't strip the : from root_url when using --keep-old.
Closes #4554.
2018-09-12 14:48:43 -07:00
Z. Grace Moreau 0aadc1e4e6 use 'number_readable' when displaying analytics 2018-09-12 14:47:40 -06:00
Shaun Jackman e4f4e0f98b Elide default root_url in the bottle block 2018-09-12 13:10:46 -07: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
Shaun Jackman a37d46f195 Merge pull request #4772 from alebcay/linuxbrew-merge
Set HOMEBREW_BOTTLE_DEFAULT_DOMAIN based on operating system
2018-09-12 11:11:13 -07: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
Markus Reiter 375088c97c Merge pull request #4872 from reitermarkus/cleanup-resolve-formulae
Resolve formulae in `brew cleanup`.
2018-09-12 12:48:34 +02: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 3c4f9c746e Elide prefix "/usr/local" in bottle block
brew test-bot --ci-upload is run on a Linux machine.
The macOS bottles have a prefix of "/usr/local".
The default prefix on Linux is /home/linuxbrew/.linuxbrew.
Elide prefix "/usr/local" in the bottle block, even it does not match
the default prefix. Ditto for cellar.
2018-09-11 14:21:33 -07:00
Markus Reiter 06549c751b Fix extracting .pax archives. 2018-09-11 19:22:19 +02: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
Markus Reiter 769d89dead Resolve formulae in brew cleanup. 2018-09-11 17:44:39 +02:00
Markus Reiter 5cff91ac75 Don’t add error when changing checksum to :no_check. 2018-09-11 14:02:53 +02:00
Mike McQuaid 88e69f5a88 Merge pull request #4868 from MikeMcQuaid/update-follow-redirect
cmd/update: follow GitHub API redirects.
2018-09-10 14:56:13 +01:00
Caleb Xu 25817d3589 Set HOMEBREW_BOTTLE_DEFAULT_DOMAIN based on operating system 2018-09-09 15:29:27 -04:00
Vítor Galvão 80fb4d8374 Merge pull request #4865 from ericmarkmartin/upgrade-dispay-prev-vsn
Cask: show previous verison in cask upgrade
2018-09-09 19:21:31 +01:00
Eric Mark Martin c62d2e6918 Cask: rename block argument f -> cask 2018-09-09 13:37:42 -04:00
Mike McQuaid dc7b73171c cmd/update: follow GitHub API redirects.
Fixes #4867
2018-09-09 17:55:09 +01:00