Mike McQuaid
aae9d39939
os/mac/xcode: fallback to clang version for detecting CLT.
...
For some reason `pkgutil --pkgs` no longer lists the CLT after the
Catalina supplemental update.
Fixes https://github.com/Homebrew/brew/issues/6610
2019-10-16 16:26:57 +01:00
Mike McQuaid
48f54d17f8
Merge pull request #6595 from sjackman/portable-ruby-aarch64
...
vendor-install: Add ruby bottle for aarch64
2019-10-16 14:16:57 +01:00
Mike McQuaid
a69d28c23e
Merge pull request #6609 from xu-cheng/bottle
...
bottle: do not install patchelf if --skip-relocation flag is passed
2019-10-16 08:56:27 +01:00
Cheng XU
94cf0d922e
bottle: do not install patchelf if --skip-relocation flag is passed
2019-10-16 14:29:53 +08:00
Markus Reiter
9e337978d9
Merge pull request #6606 from reitermarkus/quarantine-symlinks
...
Skip quarantining symlinks.
2019-10-15 19:16:08 +02:00
Markus Reiter
16b3cb0d71
Skip quarantining symlinks.
2019-10-15 18:32:37 +02:00
Markus Reiter
d24f3c3b99
Merge pull request #6605 from reitermarkus/missing-command-method
...
Fix missing `command` method.
2019-10-15 18:05:22 +02:00
Markus Reiter
40a0b8b10a
Fix missing command
method.
2019-10-15 17:39:15 +02:00
Mike McQuaid
334f151268
Merge pull request #6604 from MikeMcQuaid/update-maintainers
...
README: update maintainers.
2019-10-15 15:55:17 +01:00
Mike McQuaid
cbde3e2ce2
README: update maintainers.
...
Some arriving, some leaving.
2019-10-15 14:03:06 +01:00
L. E. Segovia
e3f8939cff
zip: overwrite existing files
...
Fixes homebrew/homebrew-cask#69879
2019-10-15 12:33:42 +00:00
Mike McQuaid
675e38b5e4
Merge pull request #6602 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-0.75.1
...
build: bump rubocop from 0.75.0 to 0.75.1 in /Library/Homebrew
2019-10-15 12:17:09 +01:00
dependabot-preview[bot]
dfb33d6f3f
build: bump rubocop from 0.75.0 to 0.75.1 in /Library/Homebrew
...
Bumps [rubocop](https://github.com/rubocop-hq/rubocop ) from 0.75.0 to 0.75.1.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases )
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.75.0...v0.75.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-15 10:15:05 +00:00
Mike McQuaid
b92fafbb6b
Merge pull request #6603 from MikeMcQuaid/tests-raise-deprecation-exceptions
...
Raise deprecation exceptions in tests
2019-10-15 10:51:56 +01:00
Mike McQuaid
8a93230c15
test/cask: remove disabled functionality tests.
2019-10-15 09:52:33 +01:00
Mike McQuaid
02ded996a4
formulary_spec: remove deprecated tap-pin usage.
2019-10-15 09:13:11 +01:00
Mike McQuaid
1b4fdc17f4
Raise deprecation exceptions in tests
...
Previously tests which hit `odeprecated` would print warnings but not
always raise exceptions or fail. Combine this with the ability to have
`odeprecated` to turn into `odisabled` on certain dates and you have
tests that may fail just on the clock changing (this is bad).
Instead, ensure that tests always raise deprecations as exceptions so
that new deprecations will have their tests handled immediately.
2019-10-15 08:52:42 +01:00
Markus Reiter
8fa65aaabf
Merge pull request #6598 from amyspark/workaround-xattr
...
Cask: only quarantine working symlinks
2019-10-14 20:25:44 +02:00
L. E. Segovia
ed7327296a
Cask: only quarantine working symlinks
...
Fixes Homebrew/homebrew-cask#70796
2019-10-14 15:38:41 +00:00
Markus Reiter
455bb3e05b
Merge pull request #6597 from reitermarkus/semantics
...
Move condition to nested `if` statement.
2019-10-14 12:16:18 +02:00
Markus Reiter
f762033a57
Move condition to nested if
statement.
2019-10-14 11:28:30 +02:00
Markus Reiter
9a857ccf9b
Merge pull request #6596 from reitermarkus/dmg
...
Fix `Dmg` detection.
2019-10-14 11:28:20 +02:00
Markus Reiter
cc234d1948
Fix Dmg
detection.
2019-10-14 10:44:52 +02:00
Issy Long
d0c3885f31
Merge pull request #6592 from issyl0/bump-rubocop-target-ruby-version
...
Bump Rubocop's `TargetRubyVersion` to 2.6 and fix all offenses
2019-10-14 09:39:21 +01:00
Mike McQuaid
cbf458ea9c
Lint/ElseAlignment: ignore some bugged autocorrections.
2019-10-14 09:03:02 +01:00
Mike McQuaid
f1702e5139
Merge pull request #6591 from amyspark/fix-depth-upgrade-check
...
upgrade: reject formulae checked in earlier levels
2.1.14
2019-10-14 08:44:10 +01:00
Issy Long
1f6168fe8a
Change regexp.match?(string) to string.match?(regexp) everywhere
...
- Only try to call `.match?` on strings that aren't nil.
2019-10-13 23:22:51 +01:00
Shaun Jackman
c71b540ea6
vendor-install: Add ruby bottle for aarch64
2019-10-13 14:24:08 -07:00
Markus Reiter
eac74ec6e6
Merge pull request #6594 from reitermarkus/tar-dmg
...
Fix `Dmg` being detected as `Tar`.
2019-10-13 22:10:45 +02:00
Markus Reiter
67d51ef0e1
Fix Dmg
being detected as Tar
.
2019-10-13 17:19:02 +02:00
Issy Long
18e684fad7
Stringify dev-cmd/audit text
variables when used in Regexp matching
...
- To have the audit commands continue to work, and the tests passing
(the previous error was [1]), everywhere we're trying to
`.match?(text)`, instead do `.match?(text.to_s)`.
[1] 5) Homebrew::FormulaAuditor#audit_file __END__ but no DATA
Failure/Error: fa.audit_file
TypeError:
no implicit conversion of Homebrew::FormulaText into String
# ./dev-cmd/audit.rb:267:in `match?'
# ./dev-cmd/audit.rb:267:in `audit_file'
# ./test/dev-cmd/audit_spec.rb:137:in `block (3 levels) in <module:Homebrew>'
2019-10-13 16:04:38 +01:00
Issy Long
fed1bbe029
Disable Metrics/LineLength for long URL lines in patches_spec.rb
...
- The final two `brew style` offenses were for Metrics/LineLength where
parsing the GitHub diff URL as a regex took 119/118 lines.
- This disables the cop for each of those long, problematic lines, and
re-enables them straight afterwards, else they'd apply to the whole file
from the first occurrence onwards, which we probably don't want?
- I wondered about increasing the LineLength limit to 119 or 120, but
it appears to have been set for a justifiable reason in 80d75bc0d8.
2019-10-13 16:04:37 +01:00
Issy Long
3570cb6e77
Auto-fix Style/NegatedUnless offenses
2019-10-13 16:04:36 +01:00
Issy Long
37fee928b5
Auto-fix Style/NegatedIf offenses
2019-10-13 16:04:35 +01:00
Issy Long
b87782ef7d
Auto-fix Style/UnpackFirst offenses
2019-10-13 16:04:34 +01:00
Issy Long
7193229b42
Auto-fix Layout/CommentIndentation offenses
2019-10-13 16:04:33 +01:00
Issy Long
489ba3f462
Auto-fix Layout/ClosingHeredocIndentation offenses
2019-10-13 16:04:32 +01:00
Issy Long
00adbbe98f
Auto-fix Layout/IndentHeredoc offenses
2019-10-13 16:04:31 +01:00
Issy Long
e5e28fbd69
Auto-fix more Layout/IndentationWidth offenses
...
- These didn't appear in the first pass as the other offense fixes caused them.
2019-10-13 16:04:30 +01:00
Issy Long
69d84ebfd9
Auto-fix Lint/ErbNewArguments offenses
2019-10-13 16:04:29 +01:00
Issy Long
245c61017f
Auto-fix Layout/ElseAlignment offenses
2019-10-13 16:04:28 +01:00
Issy Long
341ea60807
Auto-fix Style/RedundantBegin offenses
...
- This also required auto-fixes for Layout/EmptyLinesAroundBlockBody and
Layout/InconsistentIndentation once the auto-fixer had got rid of the
"redundant begin"s.
2019-10-13 16:04:27 +01:00
Issy Long
b78028b9c2
Auto-fix Performance/RegexpMatch offenses
2019-10-13 16:04:26 +01:00
Issy Long
6d7ef5c94d
Bump the Rubocop TargetRubyVersion
parameter now we're using 2.6.3
...
- This was set to 2.3 because Homebrew was running Ruby 2.3.7. Since
https://github.com/Homebrew/brew/pull/6556 , we're running 2.6.3. With
this change, Rubocop will check against modern Ruby syntax.
2019-10-13 10:00:18 +01:00
L. E. Segovia
024007f9e2
upgrade: address @MikeMcQuaid's comments
2019-10-12 22:06:08 +00:00
Mike McQuaid
16d477c696
Merge pull request #6523 from petdance/patch-1
...
bash completion example should not call brew if brew doesn't exist
2019-10-12 21:09:32 +01:00
Mike McQuaid
966e7ab363
Merge pull request #6581 from ytqh/remove-unsupported-option-in-xattr
...
remove /usr/bin/xattr unsupported -s option in macOS 10.15
2019-10-12 16:59:09 +01:00
Mike McQuaid
b438aa4d35
Merge pull request #6585 from BlueGone/search-migrated-cask-uneeded-warning
...
Remove uneeded warning when searching for a cask migrated from formula
2019-10-12 16:55:15 +01:00
L. E. Segovia
f4707a8041
upgrade: reject formulae checked in earlier levels
2019-10-12 15:53:21 +00:00
Thomas Plaçais
e616a23a0b
Remove uneeded warning message when searching for a cask that was migrated from a formula
2019-10-11 22:44:52 +01:00