14239 Commits

Author SHA1 Message Date
Shaun Jackman
c480dd39a9 Warn if os/linux is loaded on generic OS 2018-08-13 23:38:48 -07:00
Markus Reiter
63c5bd96a0
Merge pull request #4486 from reitermarkus/container-refactoring
Assimilate `Container`s with `UnpackStrategy`.
2018-07-17 00:03:28 +02:00
Markus Reiter
e5865e7e7f Assimilate Containers with UnpackStrategy. 2018-07-16 23:50:45 +02:00
Markus Reiter
d069cc2ebc Move error to the right place. 2018-07-16 23:36:15 +02:00
Markus Reiter
954edb2885 Alias extract_nestedly to extract for uncompressed files. 2018-07-16 21:36:44 +02:00
Markus Reiter
85f76e312a Add spec for nested directories. 2018-07-16 21:36:44 +02:00
Markus Reiter
95b0b198a5 Remove redundant extract_to_dir. 2018-07-16 21:36:44 +02:00
Markus Reiter
a6aefb43c5 Don’t recurse into nested directories. 2018-07-16 21:36:44 +02:00
Markus Reiter
c5b1bb9377 Use unxz instead of xz -d. 2018-07-16 21:36:44 +02:00
Markus Reiter
589c5b4e8d Add support for nested archives. 2018-07-16 21:36:44 +02:00
Mike McQuaid
b1a125754f
Merge pull request #4487 from maxim-belkin/handle-cc
cc shim: handle the case when HOMEBREW_CC = cc
2018-07-16 20:34:20 +01:00
Maxim Belkin
20001bbbda
Handle the case when HOMEBREW_CC = cc 2018-07-16 13:40:39 -05:00
Markus Reiter
7e8fb9a0f8
Merge pull request #4481 from reitermarkus/unpack-strategies
Add two new unpack strategies.
2018-07-16 18:07:16 +02:00
Mike McQuaid
375d401580 Handle missing formulae in runtime_dependencies
Hopefully put this to bed for once and for all. Add a new method
`runtime_formulae_dependencies` which returns the `runtime_dependencies`
which have only the `Formula` objects that exist. I've checked all the
`runtime_dependencies` callers and updated them accordingly.

Also, fix a few cases where runtime dependencies were being read from
the tab when this wasn't desirable.
2018-07-16 16:46:39 +01:00
Markus Reiter
7cc3c2a846
Merge pull request #4479 from reitermarkus/refactor-containers
Change `Container::me?` to `Container::can_extract?`.
2018-07-16 11:11:59 +02:00
Markus Reiter
2a63d363c2 Add two new unpack strategies. 2018-07-16 11:04:47 +02:00
Markus Reiter
1f56314365 Clear Tap cache before each example. 2018-07-16 10:55:22 +02:00
Markus Reiter
d3534c1cc2 Use zipinfo instead of unzip -l. 2018-07-16 10:25:17 +02:00
Markus Reiter
82482f4787 Add support for self-extracting .exe archives. 2018-07-16 09:54:37 +02:00
Markus Reiter
c9c5d8e008 Change Container::me? to Container::can_extract?. 2018-07-16 09:16:50 +02:00
Markus Reiter
f92e3086ac
Merge pull request #4474 from reitermarkus/refactor-containers
Refactor containers and automatically determine dependencies.
2018-07-16 08:40:38 +02:00
commitay
43bfbe2060
Merge pull request #4343 from commitay/cask-info-updates
cask info: display `auto_updates`
2018-07-16 09:32:17 +10:00
Mike McQuaid
cab0090048 formulary: handle missing methods.
This makes formulae unreadable.

See https://discourse.brew.sh/t/error-in-mpfr-2-formula/2575.
2018-07-15 19:29:31 +01:00
Mike McQuaid
0990fbaac4 formulary: catch argument errors.
Reraise as a `FormulaUnreadableError` as these are formulae that have
mistakes that cannot be trivially repaired.

Fixes #4475.
Fixes #4476.
2018-07-15 17:03:50 +01:00
Mike McQuaid
bd5131d710
Merge pull request #4392 from MikeMcQuaid/more-deprecation-disabled
Disable more deprecations.
2018-07-15 14:48:00 +01:00
Mike McQuaid
af204c843d
Merge pull request #4359 from apjanke/display-build-times
Add --display-times option to `install`, `upgrade`, and `reinstall`
2018-07-15 11:30:22 +01:00
commitay
eb1271304f cask upgrade: add message about auto_updates and :latest 2018-07-15 11:13:04 +10:00
commitay
6d1f99fa5f cask info: display auto_updates 2018-07-15 11:13:04 +10:00
Markus Reiter
b7e849799f
Merge pull request #4469 from reitermarkus/systemcommand-path
Don’t expand `executable` path in `SystemCommand`.
2018-07-14 22:45:43 +02:00
Markus Reiter
fdc250cac4 Refactor containers and automatically determine dependencies. 2018-07-14 22:32:26 +02:00
Mike McQuaid
256dfc1af9 Move methods from FileUtils to Formula
These don't need to live on FileUtils and don't really make sense there
either.
2018-07-14 18:13:23 +01:00
Andrew Janke
0a2d8c3d4d Add --display-times option to install, reinstall, and upgrade 2018-07-14 11:06:03 -04:00
Mike McQuaid
5c6ef3d920 Disable more deprecations.
- Turn more old `odeprecated` into `odisabled`
- Remove more old `odisabled`
- Remove code for older Ruby versions
2018-07-14 16:00:50 +01:00
Mike McQuaid
abf3043125 formula: move mktemp.
This should be an instance rather than a class method.
2018-07-14 15:41:16 +01:00
Vítor Galvão
3742cf892c
Merge pull request #4457 from commitay/latest-autoupdate
cask audit: check for `latest` with `auto_updates`
2018-07-14 14:29:19 +01:00
Mike McQuaid
bb1bb51309 requirement: add mktemp function.
Addresses comments in #4465.
2018-07-14 09:17:04 +01:00
Markus Reiter
a9e109e31a Don’t expand executable path in SystemCommand. 2018-07-14 02:33:42 +02:00
Markus Reiter
232fb9721e Hbc::init does not exist anymore. 2018-07-13 23:03:18 +02:00
Mike McQuaid
060c615fae
Merge pull request #4361 from apjanke/collected-caveats
Display collected caveats at end of `install` or `upgrade`
2018-07-13 19:22:55 +01:00
Mike McQuaid
c529ad75ab
Merge pull request #4465 from MikeMcQuaid/mktemp
mktemp: move to Formula and compat.
2018-07-13 19:22:41 +01:00
Mike McQuaid
0a76c9f02e mktemp: move to Formula and compat.
Move this method away from FileUtils as it doesn't need to be on that
class.
2018-07-13 14:42:49 +01:00
Mike McQuaid
9b86ff6214 ruby.sh: cleanup gems on portable Ruby installation.
This avoids `brew style` and friends from getting upset when they
attempt to use the native gem extensions from a previous portable Ruby
or a system Ruby.

ABI? What's that?
2018-07-13 14:37:12 +01:00
Mike McQuaid
fed404b9be
Merge pull request #4460 from DomT4/cores
hardware: add dodeca-core for 2018 MBPs
2018-07-13 14:14:18 +01:00
Dominyk Tiller
be2dd62869
xcode: update expected Clang on 10.14 2018-07-13 10:50:54 +01:00
Dominyk Tiller
92c6e72a4a
hardware: add dodeca-core for 2018 MBPs 2018-07-13 10:50:30 +01:00
Mike McQuaid
0a239372f2
messages_spec: fix brew style. 2018-07-13 10:02:39 +01:00
Mike McQuaid
62f8c96bdb test/cask/cli_spec: temporary skip some tests.
These seem to be related to a leaking RSpec double between tests and
I've verified `brew cask install` still behaves as expected so
let's skip them temporarily.
2018-07-13 09:14:40 +01:00
Mike McQuaid
cc554c4ba1 extend/os/linux/hardware/cpu: return :dunno more often.
This matches the behaviour described in the test and on macOS.
2018-07-13 08:54:47 +01:00
Mike McQuaid
c3f8ffbb10 extend/fileutils: fix monkeypatch.
Otherwise using the options argument or relying on a result means this
method will fail. This is why monkeypatching sucks.

CC @reitermarkus as we've talked about monkeypatching recently.
2018-07-13 08:22:33 +01:00
Mike McQuaid
e1eb7dd3e3 Use Ruby 2.3.7
Fixes #4459.
2018-07-13 08:22:33 +01:00