12522 Commits

Author SHA1 Message Date
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
7cadff0a33 Use PATH where possible. 2017-09-29 22:18:24 +02: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
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
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
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
Ben Muschol
2d6bd04007 Merge branch 'master' into check-for-master-no-refactor 2017-09-27 16:36:10 -04:00
Ben Muschol
fe5c885da0 Implement changes 2017-09-27 16:32:13 -04:00
Shaun Jackman
1e57445eca receipt_path: Ensure the bottle contains INSTALL_RECEIPT.json 2017-09-27 09:36:41 -07:00
commitay
208135f59f Cask dsl caveats: bump java version to 9 2017-09-27 21:03:23 +10:00
ilovezfs
5377a42f7f Revert "Added tests for os/mac/keg" 2017-09-27 02:57:12 -07:00
ilovezfs
e8da9613fb Revert "mach: Avoid reopening the file for relocation" 2017-09-27 02:08:23 -07:00
ilovezfs
0831f31e44 Revert "keg_relocate: use correct number of arguments in call to change_install_name" 2017-09-27 02:07:22 -07:00
William Woodruff
a1140f7b92 Merge pull request #3079 from mansimarkaur/os_keg
Added tests for os/mac/keg
2017-09-26 21:36:16 -04:00
Steven Peters
fc5b3778cb keg_relocate: fix call to change_install_name
During the changes to macho file relocation refactoring
in #3101, #3138, and #3139,
the number of arguments to the mach::change_install_name
function changed from 3 to 2, but
there was still an instance of the function being called
with the wrong number of arguments.
2017-09-26 17:30:28 -07:00
mansimarkaur
9f57840486
test: Tests for os/mac/keg 2017-09-26 19:06:57 -04:00
ilovezfs
feda0242be bump-formula-pr: fix duplicates check
`return unless pull_requests && !pull_requests.empty?` and
`return unless pull_requests&.empty?` are not equivalent.
2017-09-25 23:03:19 -07:00
William Woodruff
6098998674 Merge pull request #3139 from woodruffw/macho-use-object
mach: Avoid reopening the file for relocation
2017-09-25 23:30:42 -04:00
William Woodruff
d618e574fb
mach: Avoid reopening the file for relocation
This commit allows the relocation code to perform install name
and dylib ID changes without reopening the file separately.
2017-09-25 17:46:23 -04:00
Mike McQuaid
a589303616 Merge pull request #3183 from MikeMcQuaid/rubocop-upgrade
Rubocop: 0.50.0 and Ruby 2.3
2017-09-25 21:29:03 +01:00
Mike McQuaid
ac8b58537f Merge pull request #3211 from MikeMcQuaid/portable-ruby-coverage
portable-ruby: use rebuild with coverage support.
2017-09-25 19:59:46 +01:00
Mike McQuaid
222da9de1c portable-ruby: use rebuild with coverage support.
This will allow `simplecov` to generate coverage by rebuilding portable
Ruby with coverage support.
2017-09-25 19:15:58 +01:00
Mike McQuaid
dd75dd8a25 os/mac/version: allow leopard_64_or_later bottles. 2017-09-25 18:35:18 +01:00
Mike McQuaid
598ea0cdec portable-ruby: fix installation on Leopard.
Download it insecurely there and require `rubygems` for `Gem::Version`.
2017-09-25 15:46:58 +01:00
Mike McQuaid
9697c8638c vendor-install: output only to stderr.
This avoids causing errors in scripts that call e.g. `brew --prefix`.
2017-09-25 06:53:23 +01:00
Mike McQuaid
cf5fdeef1d Rubocop: manual rule fixes. 2017-09-24 21:23:59 +01:00
Mike McQuaid
01e9ec9a9f Rubocop: automatic rule fixes. 2017-09-24 21:23:59 +01:00
Mike McQuaid
9eb51db400 Rubocop 0.50 and target 2.3. 2017-09-24 21:23:59 +01:00
Mike McQuaid
82aa148cb2 Merge pull request #3206 from MikeMcQuaid/utils-git-cache-less
utils/git: cache less aggressively.
2017-09-24 20:54:22 +01:00
Mike McQuaid
3d876f7d70 utils/git: cache less aggressively.
This should avoid weird test ordering failures with specs on Linux (but
there's no real reason this can't occur on macOS too).
2017-09-24 20:39:06 +01:00
ilovezfs
28c7838450 audit: also skip homebrew/science duplicates found by search_taps
Follow-up to #3202.
2017-09-24 00:29:34 -07:00
ilovezfs
e984623214 audit: don't check for homebrew/science duplicates
It's just noise to turn the migration PRs red over expected duplicates.
2017-09-23 23:00:29 -07:00
Mike McQuaid
a5b37e3b44 Merge pull request #3201 from MikeMcQuaid/git-coretap-tests
utils/git: don't fail when CoreTap is untapped.
2017-09-23 22:06:10 +01:00
Mike McQuaid
7f93d816a3 utils/git: don't fail when CoreTap is untapped.
This produces test failures on Linux where we intentionally avoid having
it tapped.
2017-09-23 21:53:20 +01:00
Mike McQuaid
182ed794bd Merge pull request #3200 from MikeMcQuaid/audit-el-capitan-vendor-ruby
audit: hack around El Capitan audit failure.
2017-09-23 21:25:05 +01:00