4228 Commits

Author SHA1 Message Date
Sam Ford
6c4041c026
Livecheck: Do not convert URL symbol to string 2021-01-13 09:35:54 -05:00
Sam Ford
ec93e91909
Merge pull request #10208 from samford/livecheck-skip-archived-stable-urls
Livecheck: Skip archived stable URLs in formulae
2021-01-13 08:42:58 -05:00
Jonathan Chang
71f7ef0058
Merge pull request #10300 from jonchang/rubocop-v1-api
rubocops: migrate to rubocop v1 API
2021-01-13 21:20:55 +11:00
Markus Reiter
028e733e79
Merge pull request #10260 from reitermarkus/audit-livecheck
Improve audit for `livecheck` in casks.
2021-01-13 08:46:57 +01:00
Markus Reiter
92b58666ef Improve audit for livecheck in casks. 2021-01-13 08:12:11 +01:00
Seeker
82901036f9
Merge pull request #10298 from SeekingMeaning/ast
utils/ast: move helper functions from `FormulaAST` to `AST`
2021-01-12 22:32:23 -08:00
Sam Ford
12e5f4dce1
Livecheck: Refactor #skip_conditions into a module
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-01-12 18:34:33 -05:00
Sam Ford
aae91cacae
Livecheck: Skip Internet Archive stable URLs 2021-01-12 18:04:26 -05:00
Sam Ford
f36d1a7fb6
Livecheck: Skip Google Code Archive stable URLs 2021-01-12 18:04:26 -05:00
Sam Ford
84e058f6ca
Livecheck: Refactor memoized helpers 2021-01-12 18:04:26 -05:00
Seeker
99a7e2192c
Merge pull request #10296 from SeekingMeaning/utils-named-subject
test/utils/*: use `described_class` or named `subject`
2021-01-12 13:38:55 -08:00
Rylan Polster
f1f3fdc315 settings: add module for managing git config settings 2021-01-12 16:27:25 -05:00
Seeker
40d85ecb40 popen_spec: add tests for safe_popen_read and safe_popen_write 2021-01-12 09:56:05 -08:00
Jonathan Chang
ac8eb00443 rubocops/cask/*: use rubocop v1 API 2021-01-12 19:16:38 +11:00
Jonathan Chang
0366e2f7f7 rubocops/options: use rubocop v1 API 2021-01-12 19:16:38 +11:00
Jonathan Chang
23b8d0ccb8 rubocops/desc: use rubocop v1 API 2021-01-12 19:16:38 +11:00
Jonathan Chang
929e481dce rubocops/keg_only: use rubocop v1 API 2021-01-12 19:11:43 +11:00
Jonathan Chang
df8e030174 rubocops/patches: use rubocop v1 API 2021-01-12 19:11:43 +11:00
Jonathan Chang
bb497ebfe0 rubocops/caveats: use rubocop v1 API 2021-01-12 19:11:43 +11:00
Jonathan Chang
c3f797d9ac rubocops/components_order: use rubocop v1 API 2021-01-12 19:11:43 +11:00
Jonathan Chang
f57c96465c rubocops/conflicts: use rubocop v1 API 2021-01-12 19:11:43 +11:00
Jonathan Chang
92e07f5c0b rubocops/homepage: use rubocop v1 API 2021-01-12 19:11:43 +11:00
Jonathan Chang
63bebf542f rubocops/dependency_order: use rubocop v1 API 2021-01-12 19:11:43 +11:00
Jonathan Chang
098ade1319 rubocops/urls: use rubocop v1 API 2021-01-12 19:11:43 +11:00
Jonathan Chang
a778dc3bdb rubocops/class: use rubocop v1 API 2021-01-12 19:11:43 +11:00
Jonathan Chang
3bda457478 rubocops/text: use rubocop v1 API 2021-01-12 19:11:43 +11:00
Jonathan Chang
c18ffa84ca rubocops/deprecate_disable: use rubocop v1 API 2021-01-12 19:11:42 +11:00
Jonathan Chang
9046d778e0 rubocops/checksum: use rubocop v1 API 2021-01-12 19:11:42 +11:00
Jonathan Chang
b8fb568021 rubocops/lines: use rubocop v1 API 2021-01-12 19:11:42 +11:00
Seeker
14b4916dda utils/ast: move helper functions from FormulaAST to AST 2021-01-11 20:35:14 -08:00
Seeker
022bcbb269 test/utils/*: use described_class or named subject 2021-01-11 12:31:39 -08:00
Rylan Polster
e7b369273a completions: link official taps automatically 2021-01-11 12:27:57 -05:00
Seeker
2ebfb4221c utils/ast: add FormulaAST class 2021-01-10 09:25:46 -08:00
Zaid Kokaja
d98de86e76 Update expected test output to match new JSON 2021-01-09 23:17:47 -05:00
Dustin Rodrigues
425535e32b python: add --no-user when doing pip install 2021-01-09 10:09:44 -05:00
Dustin Rodrigues
19a47d7c50 python: use built-in venv instead of virtualenv when installing formulae 2021-01-09 10:09:44 -05:00
Rylan Polster
e9d09c4d8f tests: add and fix tests 2021-01-08 17:11:20 -05:00
Seeker
2a80427755 unless_multiple_conditions: add autocorrect 2021-01-08 10:33:56 -08:00
Seeker
b9854bd4cf rubocops: add unless_multiple_conditions 2021-01-08 10:33:54 -08:00
Mike McQuaid
57eaae6146
Merge pull request #10248 from MikeMcQuaid/analytics-tweaks
Improve submitted analytics data
2021-01-08 10:01:19 +00:00
Mike McQuaid
50ffa38213
Merge pull request #10247 from iMichka/sha256
checksum: simplify, use only sha256
2021-01-08 09:43:23 +00:00
Michka Popoff
5e91802470 checksum: simplify, use only sha256
We use only one sha type right now.

Needed for https://github.com/Homebrew/brew/pull/10186
2021-01-07 20:46:13 +01:00
Seeker
41e0619de8 utils: add git_repository 2021-01-07 11:45:11 -08:00
Mike McQuaid
d8a5e467e8
audit: quieten down and make casks audit consistent with formulae.
The current casks audit is very noisy in the no-op case (i.e. no errors)
https://github.com/Homebrew/brew/pull/10234/checks?check_run_id=1655630568#step:15:7

This means when there are errors and you're querying all casks it's
pretty hard to quickly identify the problems.

This commit silences the `passing`, `warning` and header/summary output
when you're querying all casks (rather than a specific cask or tap).

This is more consistent with `brew audit` for formulae which is silent
unless there are audit failures.
2021-01-07 13:31:14 +00:00
Mike McQuaid
8af4895479
Improve submitted analytics data
- Use default `custom-prefix` label on macOS ARM (as `/usr/local` is
  not the default).
- Add architecture (or Rosetta) to analytics event label.
- Don't send minor versions on Big Sur.
- Remove defunct `HOMEBREW_OSX_VERSION` reference.
2021-01-07 09:28:40 +00:00
Mike McQuaid
dad7dc6a14
Merge pull request #10196 from souleater7/delete-devel
Delete references to devel
2021-01-06 09:15:52 +00:00
souleater7
98e7538679
Fix style test in lines_spec.rb 2021-01-05 15:22:26 -08:00
Seeker
8828b4bd68 utils/ast: add stanza_text helper function 2021-01-03 22:26:19 -08:00
souleater7
e50e3e4b22 Delete references to devel 2021-01-01 10:16:31 -08:00
Seeker
4cbd4f296b bottle: add tests for merge_bottle_spec 2020-12-31 11:29:10 -08:00