dependabot[bot]
c74497ee3a
build(deps): bump rubocop-performance in /Library/Homebrew
...
Bumps [rubocop-performance](https://github.com/rubocop/rubocop-performance ) from 1.11.4 to 1.11.5.
- [Release notes](https://github.com/rubocop/rubocop-performance/releases )
- [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-performance/compare/v1.11.4...v1.11.5 )
---
updated-dependencies:
- dependency-name: rubocop-performance
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-18 18:03:46 +00:00
Sam Ford
7011e0f183
Merge pull request #11862 from samford/livecheck/move-strategy-url-regex-generation-into-methods
...
livecheck: move url/regex generation into methods
2021-08-18 13:20:05 -04:00
Bo Anderson
d756d05a23
Merge pull request #11871 from Bo98/headers-type
...
download_strategy: fix error when using custom headers with a redirect
2021-08-18 13:43:06 +01:00
Michka Popoff
3573ff8d5b
Merge pull request #11773 from iMichka/curlfetch
...
Use Homebrew curl for audit when specified in the formula
2021-08-18 09:00:41 +02:00
Bo Anderson
de15cd6420
download_strategy: fix error when using custom headers with a redirect
2021-08-18 03:02:13 +01:00
Sam Ford
8940d198fe
Make tarball extension regex explicit
2021-08-17 19:15:07 -04:00
Sam Ford
26821301e7
livecheck: move url/regex generation into methods
2021-08-17 18:03:40 -04:00
Sam Ford
f026dd21c1
Merge pull request #11854 from samford/livecheck/refactor-find_versions-parameters
...
Refactor #find_versions parameters in strategies
2021-08-17 17:32:08 -04:00
Mike McQuaid
54857c084b
Merge pull request #11869 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.9045
...
build(deps-dev): bump sorbet from 0.5.9042 to 0.5.9045 in /Library/Homebrew
2021-08-17 19:33:38 +01:00
Carlo Cabrera
0ae032ad2f
Merge pull request #11756 from carlocab/deuniversalize-machos
...
formula: add `deuniversalize_machos` method
2021-08-18 02:28:34 +08:00
BrewTestBot
4de036b7c5
brew vendor-gems: commit updates.
2021-08-17 18:06:45 +00:00
dependabot[bot]
4ceeb6cbd0
build(deps-dev): bump sorbet in /Library/Homebrew
...
Bumps [sorbet](https://github.com/sorbet/sorbet ) from 0.5.9042 to 0.5.9045.
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
---
updated-dependencies:
- dependency-name: sorbet
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-17 18:03:47 +00:00
Bo Anderson
8efce9a9d2
os/mac/diagnostic: check min CLT version on env setup
2021-08-17 18:36:27 +01:00
Carlo Cabrera
f20d61df9a
Fix typecheck error
2021-08-17 22:47:08 +08:00
Carlo Cabrera
fa635db8a1
Simplify re-definition of targets
2021-08-17 22:32:52 +08:00
Michka Popoff
07df4a7e70
Use Homebrew curl for audit and fetch when specified in the formula
...
Introduce new :using for urls
2021-08-17 13:35:55 +02:00
Rylan Polster
8b69798ba4
Merge pull request #11865 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.9042
...
build(deps-dev): bump sorbet from 0.5.9033 to 0.5.9042 in /Library/Homebrew
2021-08-16 16:34:28 -04:00
BrewTestBot
50c19d9349
Update RBI files for parallel_tests.
2021-08-16 18:10:34 +00:00
BrewTestBot
73d9164aab
brew vendor-gems: commit updates.
2021-08-16 18:07:38 +00:00
BrewTestBot
e978bd6719
brew vendor-gems: commit updates.
2021-08-16 18:06:47 +00:00
dependabot[bot]
ec82e5f870
build(deps-dev): bump sorbet in /Library/Homebrew
...
Bumps [sorbet](https://github.com/sorbet/sorbet ) from 0.5.9033 to 0.5.9042.
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
---
updated-dependencies:
- dependency-name: sorbet
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-16 18:03:52 +00:00
dependabot[bot]
643d8d2c28
build(deps): bump parallel_tests in /Library/Homebrew
...
Bumps [parallel_tests](https://github.com/grosser/parallel_tests ) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/grosser/parallel_tests/releases )
- [Changelog](https://github.com/grosser/parallel_tests/blob/master/CHANGELOG.md )
- [Commits](https://github.com/grosser/parallel_tests/compare/v3.7.0...v3.7.1 )
---
updated-dependencies:
- dependency-name: parallel_tests
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-16 18:03:27 +00:00
Sam Ford
13b349b4ae
Refactor #find_versions parameters in strategies
2021-08-16 12:01:32 -04:00
Mike McQuaid
90494ed8a3
Merge pull request #11852 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.19.0
...
build(deps): bump rubocop from 1.18.4 to 1.19.0 in /Library/Homebrew
2021-08-16 14:25:04 +01:00
Mike McQuaid
7bade41572
rubocop.yml: fix #:
usage.
...
Also, do some automatic reformating.
2021-08-16 13:58:13 +01:00
Dawid Dziurla
df086d618e
bump-formula-pr: use default remote if forcing Homebrew on Linux
2021-08-13 22:56:05 +02:00
BrewTestBot
d30773f81e
Update RBI files for rubocop-ast.
2021-08-13 18:08:49 +00:00
BrewTestBot
e8c005c177
brew vendor-gems: commit updates.
2021-08-13 18:06:29 +00:00
dependabot[bot]
be922631e0
build(deps): bump rubocop-ast from 1.9.1 to 1.10.0 in /Library/Homebrew
...
Bumps [rubocop-ast](https://github.com/rubocop-hq/rubocop-ast ) from 1.9.1 to 1.10.0.
- [Release notes](https://github.com/rubocop-hq/rubocop-ast/releases )
- [Changelog](https://github.com/rubocop/rubocop-ast/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop-hq/rubocop-ast/compare/v1.9.1...v1.10.0 )
---
updated-dependencies:
- dependency-name: rubocop-ast
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-13 18:03:58 +00:00
Bo Anderson
e8b82bbe1e
Fix brew style
2021-08-13 13:49:52 +01:00
BrewTestBot
9589416fd4
Update RBI files for rubocop.
2021-08-12 18:11:22 +00:00
BrewTestBot
02d6cba752
brew vendor-gems: commit updates.
2021-08-12 18:08:56 +00:00
BrewTestBot
7e08abe374
brew vendor-gems: commit updates.
2021-08-12 18:08:30 +00:00
dependabot[bot]
f820dbd711
build(deps-dev): bump sorbet in /Library/Homebrew
...
Bumps [sorbet](https://github.com/sorbet/sorbet ) from 0.5.9030 to 0.5.9033.
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
---
updated-dependencies:
- dependency-name: sorbet
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-12 18:06:02 +00:00
dependabot[bot]
0fe3b7cf14
build(deps): bump rubocop from 1.18.4 to 1.19.0 in /Library/Homebrew
...
Bumps [rubocop](https://github.com/rubocop/rubocop ) from 1.18.4 to 1.19.0.
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.18.4...v1.19.0 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-12 18:05:49 +00:00
Nanda H Krishna
afc5804cbe
Merge pull request #11720 from nandahkrishna/formula-branch-audit
...
resource_auditor: add audit for HEAD default branch
2021-08-12 19:52:21 +05:30
Sam Ford
694645e91c
Merge pull request #11842 from samford/livecheck/refactor-strategy-block-handling
...
Refactor livecheck strategy block handling
2021-08-12 10:15:02 -04:00
Nanda H Krishna
5191199957
resource_auditor: use if
instead of unless
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-08-12 19:28:06 +05:30
Connor Mann
92717b6f6f
Update Library/Homebrew/cli/named_args.rb
...
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2021-08-12 09:16:23 -04:00
Nanda H Krishna
f69f9be233
Add allowlist, make branch:
mandatory
2021-08-12 12:43:22 +05:30
Nanda H Krishna
d75320069f
resource_auditor: add audit for HEAD default branch
2021-08-12 12:43:21 +05:30
Connor Mann
a566c53db8
Add resolve_latest_keg
revision secondary sort
2021-08-11 20:07:28 -04:00
Sam Ford
c59d5db631
Remove unnecessary require statements
2021-08-11 19:06:00 -04:00
Sam Ford
c936a9420e
Improve documentation comments
2021-08-11 19:05:59 -04:00
Sam Ford
f2bd39ccef
Add additional method signatures to strategies
2021-08-11 19:05:59 -04:00
Sam Ford
7e07010f06
Improve standardization of strategy tests
2021-08-11 19:05:59 -04:00
Sam Ford
56dd89114d
Standardize valid strategy block return types
...
Valid `strategy` block return types currently vary between
strategies. Some only accept a string whereas others accept a string
or array of strings. [`strategy` blocks also accept a `nil` return
(to simplify early returns) but this was already standardized across
strategies.]
While some strategies only identify one version by default (where a
string is an appropriate return type), it could be that a strategy
block identifies more than one version. In this situation, the
strategy would need to be modified to accept (and work with) an
array from a `strategy` block.
Rather than waiting for this to become a problem, this modifies all
strategies to standardize on allowing `strategy` blocks to return a
string or array of strings (even if only one of these is currently
used in practice). Standardizing valid return types helps to further
simplify the mental model for `strategy` blocks and reduce cognitive
load.
This commit extracts related logic from `#find_versions` into
methods like `#versions_from_content`, which is conceptually similar
to `PageMatch#page_matches` (renamed to `#versions_from_content`
for consistency). This allows us to write tests for the related code
without having to make network requests (or stub them) at this point.
In general, this also helps to better align the structure of
strategies and how the various `#find_versions` methods work with
versions.
There's still more planned work to be done here but this is a step
in the right direction.
2021-08-11 19:05:57 -04:00
Sam Ford
cf79ced740
Rework how strategy constants are identified
...
Up to this point, we've had to rely on making `Strategy` constants
private to ensure that the only available constants are strategies.
With the current setup, the existence of a constant that's not a
strategy would break `Strategy#strategies` and
`Livecheck#livecheck_strategy_names`.
Instead, we can achieve the same goal by skipping over constants
that aren't a class. Other than saving us from having to make these
constants private, this is necessary to be able to create a
`Strategy` constant that can be used in all strategies.
2021-08-11 18:25:34 -04:00
BrewTestBot
37e1d3cb71
Update RBI files for rubocop-ast.
2021-08-11 18:10:53 +00:00
BrewTestBot
8fd6f9735b
brew vendor-gems: commit updates.
2021-08-11 18:08:35 +00:00