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
Connor Mann
057137c760
Merge pull request #11849 from cnnrmnn/revision-secondary-sort
...
Add revision secondary sort to `resolve_latest_keg`
2021-08-12 10:13:53 -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
Mike McQuaid
9fe642759c
Merge pull request #11818 from sudoforge/docker-remove-extraneous-commands
...
Dockerfile: remove extraneous permission modification commands
2021-08-12 13:42:31 +01: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
Nanda H Krishna
cd900ef71e
Merge pull request #11848 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-ast-1.9.1
...
build(deps): bump rubocop-ast from 1.9.0 to 1.9.1 in /Library/Homebrew
2021-08-12 00:05:34 +05:30
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
dependabot[bot]
6333d0af30
build(deps): bump rubocop-ast from 1.9.0 to 1.9.1 in /Library/Homebrew
...
Bumps [rubocop-ast](https://github.com/rubocop-hq/rubocop-ast ) from 1.9.0 to 1.9.1.
- [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.0...v1.9.1 )
---
updated-dependencies:
- dependency-name: rubocop-ast
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-11 18:04:48 +00:00
Benjamin Denhartog
ae14ab0ba0
Dockerfile: remove extraneous permission modification commands
...
These are no longer necessary due to the fact that the second `RUN`
instruction runs as the `linuxbrew` user (as of commit
77afe94446e78e688ebde7a5e2b1249fc0a4afcd).
2021-08-11 11:22:07 -06:00
Mike McQuaid
bee3e6725c
Merge pull request #10769 from Bo98/big-sur-sdk
...
Migrating to the MacOSX11.sdk symlink
2021-08-11 15:21:00 +01:00
Bo Anderson
9686ebe355
os/mac/diagnostic: prevent some double diagostic failures
2021-08-11 14:19:22 +01:00
Bo Anderson
49f789d492
os/mac/xcode: bump minimum CLT version to 12.5
2021-08-11 14:19:22 +01:00
Bo Anderson
dae1d89780
os/mac/sdk: use MacOSX11.sdk symlink
2021-08-11 14:19:22 +01:00
Nanda H Krishna
8fa1903be5
Merge pull request #11846 from Homebrew/update-man-completions
...
Update maintainers, manpage and completions.
2021-08-11 18:00:16 +05:30
BrewTestBot
33e5cd8ba4
Update maintainers, manpage and completions.
...
Autogenerated by the [update-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/update-man-completions.yml ) workflow.
2021-08-11 12:06:15 +00:00
Dustin Rodrigues
025d212db6
Merge pull request #11845 from dtrodrigues/typecheck-silicon
2021-08-11 08:04:12 -04:00
Carlo Cabrera
2d2aff3250
Merge pull request #11832 from AkihiroSuda/arch-allowlist
2021-08-11 19:19:34 +08:00
Dustin Rodrigues
c6bb748ea9
typecheck: allow typecheck
command to run on Apple Silicon
2021-08-11 06:42:02 -04:00
Mike McQuaid
f38783ad4a
Merge pull request #11771 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.6519
...
build(deps-dev): bump sorbet from 0.5.6274 to 0.5.9030 in /Library/Homebrew
2021-08-11 11:17:27 +01:00
Akihiro Suda
f63c3b08fe
New allow list: mismatched_binary_allowlist
...
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-08-11 18:09:26 +09:00
Mike McQuaid
62f7dcaa0e
dev-cmd/typecheck: don't suppress 5061 errors, do suppress 5067.
2021-08-11 09:40:57 +01:00
Mike McQuaid
3b13cf9797
Merge branch 'master' into dependabot/bundler/Library/Homebrew/sorbet-0.5.6519
2021-08-11 09:30:51 +01:00
BrewTestBot
e854fd4e25
Update RBI files for sorbet.
2021-08-11 08:28:34 +00:00
BrewTestBot
99be6d9302
brew vendor-gems: commit updates.
2021-08-11 08:26:20 +00:00
Mike McQuaid
79655bfd7f
Merge pull request #11843 from Bo98/stackprof
...
brew.rb: remove gem setup for stackprof
2021-08-11 09:15:44 +01:00
Mike McQuaid
0c337c4c12
brew vendor-gems: commit updates.
2021-08-11 09:14:58 +01:00
Mike McQuaid
ce887063de
Update sorbet
2021-08-11 09:13:41 +01:00
Carlo Cabrera
66dfcd44bd
Merge pull request #11841 from carlocab/cmake-args-params
...
formula: allow `std_cmake_args` to take parameters
2021-08-11 14:02:18 +08:00
Bo Anderson
d4b88b1b55
brew.rb: remove gem setup for stackprof
2021-08-11 02:13:37 +01:00
Dawid Dziurla
4231efe469
Merge pull request #11815 from sudoforge/11802/docker-run-as-linuxbrew
...
Dockerfile: run as user: linuxbrew
2021-08-10 19:55:56 +02:00
Rylan Polster
f452f292c3
Merge pull request #11840 from Homebrew/sorbet-files-update
...
sorbet: Update RBI files.
2021-08-10 03:19:25 -04:00
Rylan Polster
6202b44899
Merge pull request #11837 from Homebrew/dependabot/bundler/docs/faraday-1.7.0
...
build(deps): bump faraday from 1.6.0 to 1.7.0 in /docs
2021-08-10 03:18:45 -04:00
Rylan Polster
ccacdf2cd2
Merge pull request #11836 from Homebrew/dependabot/bundler/docs/nokogiri-1.12.2
...
build(deps): bump nokogiri from 1.12.0 to 1.12.2 in /docs
2021-08-10 03:18:11 -04:00
Carlo Cabrera
12435565f3
formula: allow std_cmake_args
to take parameters
...
We have a handful of of formulae that do `std_cmake_args.reject` to
override some of flags (e.g. emscripten, icemon, ortp, qt, klee,
watchman).
Let's try to simplify some of this code by allowing these formulae to
override these flags by passing arguments to `std_cmake_args`.
While we're here, let's update the type signature of `std_cargo_args`.
2021-08-10 11:55:00 +08:00