15827 Commits

Author SHA1 Message Date
Mike McQuaid
83e2049636 formulary: handle unreadable bottle formula.
This occurs for any formulae that use relative `require` to files that
are inside of e.g. a tap to use abstract formulae.
2017-10-04 10:14:06 +01:00
Kevin Abel
4f55565677 Add test for php version in URL middle 2017-10-03 23:39:14 -05:00
Kevin Abel
9d36096d68 Add version detection support for php URL
Pulls a semver from anywhere in the URL (not just stem).
2017-10-03 23:29:33 -05:00
Markus Reiter
7ee86cfe77 Merge pull request #3256 from claui/pkg-unshadow-options
Unshadow `allow_untrusted` option for pkg artifact
2017-10-03 18:25:59 +02:00
Markus Reiter
643b2a168c Refactor cask/cli specs. 2017-10-03 10:56:40 +02:00
Markus Reiter
ec0d8fa7ba Merge pull request #3220 from yzguy/yzguy/cask_available_languages_to_info
add available languages to cask info command
2017-10-03 08:31:56 +02:00
Markus Reiter
a92b6318eb Remove UnderscoreSupportingURI. 2017-10-03 08:29:20 +02:00
Adam Smith
270bf0506a stylistic changes for cask info tests 2017-10-02 11:34:50 -07:00
Markus Reiter
e322663836 Merge pull request #3255 from reitermarkus/summarize
Add missing `summarize` method.
2017-10-02 14:21:45 +02:00
Markus Reiter
23da0aa7fb Merge pull request #3247 from reitermarkus/fix-trash
Fix `brew tests` leaving last file in trash.
2017-10-02 14:02:24 +02:00
Claudia
fbd526ffe6 Unshadow allow_untrusted option for pkg artifact
The pkg stanza has an option called `allow_untrusted`, which is
supposed to cause `/usr/sbin/installer` to be called with the
`-allowUntrusted` switch.

PR #3141 seems to have renamed the `pkg_install_opts` field to
`options`. At the same time, it introduces an `options` parameter for
the `run_installer` method, which shadows the `options` getter
method, causing the `allow_untrusted` option to be silently ignored.

The issue affects just the `pkg` stanza because `Hbc::Artifact::Pkg`
is the only artifact class that has an `options` method.

This commit removes the shadowing by renaming the field to
`stanza_options`; in one case, it uses `_options` for a parameter
name (instead of the more canonical `_`) for the sake of clarity.
2017-10-02 13:34:57 +02:00
Mike McQuaid
e7cf509cfb Merge pull request #3257 from sjackman/text-files
text_files: Skip the formula in .brew/formula.rb
2017-10-02 09:28:50 +01:00
Shaun Jackman
03ae6aae3b text_files: Skip the formula in .brew/formula.rb 2017-10-01 18:27:05 -07:00
Markus Reiter
da66e06068 Add missing summarize method. 2017-10-01 23:33:52 +02:00
Markus Reiter
e86c79fbc0 Merge pull request #3248 from reitermarkus/audit-warning
Add audit warning if previous Cask version cannot be read.
2017-10-01 22:27:53 +02:00
Markus Reiter
3bb89f5440 Only run trash test when collecting coverage. 2017-10-01 22:26:04 +02:00
Markus Reiter
965ca01596 Fix brew tests leaving last file in trash. 2017-10-01 22:19:07 +02:00
Mike McQuaid
55dd44efad Merge pull request #3254 from MikeMcQuaid/travis-no-clone-core
travis.yml: avoid cloning Homebrew/homebrew-core.
2017-10-01 20:33:43 +01:00
Mike McQuaid
fe5674d943 travis.yml: avoid cloning Homebrew/homebrew-core.
Rearrange the test-bot clones so that the Homebrew/homebrew-core move
can be successful to avoid the later clone.
2017-10-01 19:53:19 +01:00
Mike McQuaid
a8ca47d294 diagnostic: remove unnecessary blank line. 2017-10-01 19:07:10 +01:00
ilovezfs
533ea9d255 Merge pull request #3252 from MikeMcQuaid/no-export-default-make
shims/super/make: don't export MAKE=make.
2017-10-01 05:49:05 -07:00
Mike McQuaid
3343d79b9f shims/super/make: don't export MAKE=make.
This is redundant and breaks Handbrake:
https://github.com/HandBrake/HandBrake/issues/872
2017-10-01 12:36:13 +01:00
ilovezfs
d62d496e36 Merge pull request #3250 from sjackman/pour-bottle
pour_bottle?: Check bottle.compatible_cellar?
2017-09-30 19:25:01 -07:00
Shaun Jackman
a4838d22f4 pour_bottle?: Check bottle.compatible_cellar?
formula.bottled? is false when the bottle has no sha256,
as with a local bottle.
2017-09-30 18:25:23 -07:00
Adam Smith
92311901c9 add available languages to cask info command
add language tests for dsl

add fixtures, tests for languages info output

add extra lines
2017-09-30 18:25:12 -07:00
Markus Reiter
d9a474ed0e Add audit warning if previous Cask version cannot be read. 2017-10-01 02:13:53 +02:00
Markus Reiter
700300a76b Merge pull request #3243 from reitermarkus/PATH
Use `PATH` where possible.
2017-09-30 10:20:04 +02:00
Markus Reiter
7cadff0a33 Use PATH where possible. 2017-09-29 22:18:24 +02:00
Mike McQuaid
ffb582b5a6 Merge pull request #3240 from MikeMcQuaid/update-handle-ruby-changes
brew: handle Ruby 2.3 more gracefully.
2017-09-29 20:39:59 +01:00
Mike McQuaid
bcca2a7c6b brew: handle Ruby 2.3 more gracefully.
- `brew.rb` needed updated to fail unless on Ruby 2.3
- `brew update` should unset `HOMEBREW_RUBY_PATH` to ensure that this
  doesn't "stick" on a Ruby 2.0 version after a portable Ruby has been
  installed.
2017-09-29 19:53:50 +01:00
Mike McQuaid
3883382a50 Merge pull request #3241 from MikeMcQuaid/travis-xcode
travis.yml: update Xcode version.
2017-09-29 19:38:35 +01:00
Vítor Galvão
03e37faea4 Merge pull request #3234 from reitermarkus/locale
Support UN M.49 region codes.
2017-09-29 19:23:50 +01:00
Mike McQuaid
60a8b29a41 Merge pull request #3236 from MikeMcQuaid/audit-official-taps-shadow
audit: don't care about shadowing official taps.
2017-09-29 16:56:55 +01:00
Mike McQuaid
56149c725a travis.yml: update Xcode version. 2017-09-29 16:47:46 +01:00
Mike McQuaid
134bd00d10 audit: don't care about shadowing official taps.
We're trying to import all of these formulae anyway.
2017-09-29 16:23:02 +01:00
Mike McQuaid
296a44195b Merge pull request #3176 from sjackman/bottle-formula
BottleLoader: Use the formula stored in the bottle
2017-09-29 13:59:52 +01:00
Mike McQuaid
978bd61f58 Merge pull request #3230 from maxim-belkin/stop-early
install.rb: stop early when there are no formulae to be installed
2017-09-29 13:57:28 +01:00
Markus Reiter
22e329fb02 Merge pull request #3195 from reitermarkus/fix-language_eval
Fail if no default language is specified.
2017-09-29 12:13:28 +02:00
Markus Reiter
d07b6b6134 Merge pull request #3221 from yzguy/asmith/cask-language-manpage
add --language to brew-cask manpage
2017-09-29 11:54:23 +02:00
Markus Reiter
a750644b92 Fail if no default language is specified. 2017-09-29 11:47:21 +02:00
Markus Reiter
479544665b Support UN M.49 region codes. 2017-09-29 11:41:23 +02:00
Adam Smith
9383063216 add --language to brew-cask manpage 2017-09-28 20:02:24 -07:00
Vítor Galvão
06b9ab5586 Merge pull request #3198 from commitay/cask-java-caveats
Cask dsl caveats: bump java version to 9
2017-09-29 00:58:23 +01:00
Shaun Jackman
c19cc70ac8 FormulaInstaller: Warn when tap version is newer
Warn if a more recent version of this formula is available in the tap.
2017-09-28 12:29:23 -07:00
Shaun Jackman
2e77de3b58 Fix installing a local bottle from source
Factor Utils::Bottles.formula_contents out of BottleLoader.
2017-09-28 12:29:23 -07:00
Shaun Jackman
3ed832d4f0 BottleLoader: Use the formula stored in the bottle 2017-09-28 12:29:23 -07:00
Shaun Jackman
9642ec769e testball_bottle-0.1: Add the formula to the bottle
Update the SHA-256.
2017-09-28 12:29:23 -07:00
Shaun Jackman
3ebf282269 pour_bottle?: Fix when formula.bottle is nil
formula.bottle is nil when bottle.compatible_cellar? is false.
Use formula.bottle_specification.compatible_cellar? rather
than formula.bottle.compatible_cellar?.
2017-09-28 12:29:22 -07:00
Maxim Belkin
b8d8049f70
install.rb: stop early if there are no formulae to be installed 2017-09-28 14:17:42 -05:00
Mike McQuaid
7974ce24b6 Fix regex style 2017-09-28 20:10:06 +01:00