Mike McQuaid
4cbc4f64d1
Merge pull request #14834 from reitermarkus/livecheck-skip-latest
...
Allow `version :latest` if `livecheck` is `skip`.
2023-02-28 11:59:29 +00:00
Mike McQuaid
d0e03fc425
Merge pull request #14820 from apainintheneck/delay-loading-from-cask-source-api
...
Delay loading from cask source api
2023-02-28 11:50:10 +00:00
Mike McQuaid
b339caf744
Merge pull request #14831 from Homebrew/sorbet-files-update
...
sorbet: Update RBI files.
2023-02-28 11:41:53 +00:00
Mike McQuaid
4986a1aa26
Merge pull request #14830 from samford/livecheck/rework-json-match
...
Strategy#from_url: Amend conditions for Json
2023-02-28 11:41:41 +00:00
Issy Long
0f2270e9ef
Merge pull request #14819 from issyl0/signoffs-were-just-a-stepping-stone-to-reviews
...
dev-cmd/contributions: Stop counting signoffs now we have "real" reviews
2023-02-28 11:37:14 +00:00
Issy Long
6b76e5e66f
dev-cmd/contributions: Stop counting signoffs now we have "real" reviews
...
- Signoffs were just a stopgap until we implemented getting "real"
reviews for a user via the GitHub API. They were a suboptimal way of getting
reviews because they only really exist in Homebrew/homebrew-core where
BrewTestBot adds signoffs for each maintainer who reviewed the PR.
2023-02-28 11:12:51 +00:00
Markus Reiter
a2a68292ae
Allow version :latest if livecheck is skip.
2023-02-28 10:35:07 +01:00
apainintheneck
b91e93cda0
Load cask source with tap info
...
This info is used in the installer to
decide whether to report analytics.
2023-02-27 23:51:43 -08:00
Douglas Eichelberger
2073e70696
brew style --fix
2023-02-27 21:43:10 -08:00
Douglas Eichelberger
f9f73f3ef6
Tidy up
2023-02-27 21:42:47 -08:00
Douglas Eichelberger
1ab278f74c
Fix style/type violations
2023-02-27 20:34:07 -08:00
Douglas Eichelberger
82dad857a8
Restore global
2023-02-27 20:31:01 -08:00
Douglas Eichelberger
6ea501b59f
Add tests
2023-02-27 20:30:55 -08:00
Douglas Eichelberger
325994a60c
Move inflection utils to Utils module
2023-02-27 20:20:56 -08:00
Douglas Eichelberger
0eccc0e987
git grep -l Utils::Inflection | xargs gsed -i 's|Utils::Inflection|Utils|g'
2023-02-27 20:18:27 -08:00
Douglas Eichelberger
86c500fdcc
Try removing inflections require
2023-02-27 20:18:10 -08:00
Douglas Eichelberger
8d788ec98c
Try removing String monkey-patched types
2023-02-27 20:18:10 -08:00
Douglas Eichelberger
cfdb0c2e4b
Fix type error
2023-02-27 20:18:10 -08:00
Douglas Eichelberger
7f3593e12d
inline titleize
2023-02-27 20:18:10 -08:00
Douglas Eichelberger
2c5067ec77
Port dynamic invocation
2023-02-27 20:18:10 -08:00
Douglas Eichelberger
3da68651e5
Port more call sites
2023-02-27 20:18:08 -08:00
Douglas Eichelberger
eb2b990575
Port more call sites
2023-02-27 20:17:33 -08:00
Douglas Eichelberger
2c73d4d9b7
Replace deconstantize inflection with util
2023-02-27 20:17:33 -08:00
Douglas Eichelberger
2400c6daed
brew style --fix
2023-02-27 20:17:33 -08:00
Douglas Eichelberger
d62211d3af
Replace demodulize inflection with util
2023-02-27 20:17:33 -08:00
Douglas Eichelberger
37015b6b08
Change to pluralize, port more call sites
2023-02-27 20:17:33 -08:00
Douglas Eichelberger
0438a3a538
Draft implementation to replace ActiveSupport inflections
2023-02-27 20:17:33 -08:00
BrewTestBot
ceae9c3485
sorbet: Update RBI files.
...
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml ) workflow.
2023-02-28 00:30:18 +00:00
Mike McQuaid
6db7732fa3
Merge pull request #14821 from issyl0/support-date-ranges-in-pr-reviews-query
...
dev-cmd/contributions: Support date ranges in PR reviews query
2023-02-28 00:06:41 +00:00
Sam Ford
ec7fd75934
Strategy#from_url: Replace #from_symbol call
...
Passing the strategy symbol into the `#from_url` `select` block
means that we can also get rid of a `#from_symbol` call in a
different conditional branch, as we can directly compare the
`livecheck_strategy` symbol to `strategy_symbol`.
2023-02-27 18:58:15 -05:00
Sam Ford
03823b5698
Strategy#from_url: Amend conditions for Json
...
When the `Json` strategy was introduced, I forgot to also ensure
that it's only treated as usable (in `Strategy#from_url`) if a
`livecheck` block uses `strategy :json`. As a result, `Json` is
incorrectly treated as a usable strategy for all formulae/casks that
contain a `strategy` block.
Since all of these `livecheck` blocks specify a strategy, this bug
doesn't meaningfully impact livecheck's behavior (i.e., these checks
continue to use their explicitly-specified strategy). The only
practical difference is that `Json` incorrectly appears in the list
of usable strategies in livecheck's verbose JSON output.
This commit modifies `Strategy#from_url` to address this issue. The
easiest way to enforce this rule involved passing in the
`@strategies` key (a symbol) into the `select` block, so we can
compare it to `livecheck_strategy` (the strategy symbol specified in
the `livecheck` block).
2023-02-27 18:58:13 -05:00
Douglas Eichelberger
1a0c02ffe0
Move tests too
2023-02-27 11:22:23 -08:00
Douglas Eichelberger
2b4d4a3707
Isolate Kernel extensions
2023-02-27 11:22:10 -08:00
Douglas Eichelberger
901a179ba6
Set back utils.rb file
2023-02-27 11:19:11 -08:00
Douglas Eichelberger
056ade18c0
Duplicate utils.rb history.
2023-02-27 11:19:11 -08:00
Douglas Eichelberger
ff48ce24c4
Copy utils.rb into extend/kernel.rb
2023-02-27 11:19:11 -08:00
Douglas Eichelberger
98f4fde68c
Keep utils.rb
2023-02-27 11:19:11 -08:00
Mike McQuaid
810c7681f9
Merge pull request #14824 from MikeMcQuaid/cat_better_error
...
dev-cmd/cat: improve error message.
2023-02-27 17:54:48 +00:00
Mike McQuaid
d6ba3878ab
dev-cmd/cat: improve error message.
...
Fixes #14815 .
Co-authored-by: Adrian Ho <the.gromgit@gmail.com>
2023-02-27 17:34:29 +00:00
Mike McQuaid
5eddc77baa
Merge pull request #14822 from maxim-belkin/wslview-win
...
Use 'wslview' instead of 'xdg-open' on Windows
2023-02-27 17:13:32 +00:00
Maxim Belkin
2b008ae7fd
os/linux.rb: wsl_version: apply suggestions from code review
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-02-27 16:56:28 +00:00
Maxim Belkin
c9b289fc3d
Use 'wslview' instead of 'xdg-open' on Windows
2023-02-27 14:39:56 +00:00
Mike McQuaid
a7a3ecacba
Merge pull request #14804 from Bo98/cask-readall
...
readall: reject casks with no URL
2023-02-27 13:41:46 +00:00
Mike McQuaid
ee65414742
Merge pull request #14816 from issyl0/predicate-fork-exists-method
...
utils/github: Tiny improvements, boolean methods end in `?` and remove unnecessary `.delete_prefix("/")`
2023-02-27 13:34:01 +00:00
Mike McQuaid
5975ca981d
Merge pull request #14808 from dduugg/audit-types
...
Fixed type error in 'brew audit'
2023-02-27 13:33:05 +00:00
Mike McQuaid
4d0154fa79
Merge pull request #14806 from Homebrew/dependabot/bundler/Library/Homebrew/concurrent-ruby-1.2.1
...
build(deps): bump concurrent-ruby from 1.2.0 to 1.2.1 in /Library/Homebrew
2023-02-27 12:45:49 +00:00
Issy Long
a2d31faa72
dev-cmd/contributions: Support date ranges in PR reviews query
...
- Now `brew contributions --from=2023-02-23 --to=2023-02-26` works to limit the
results for reviews. I forgot this in the original implementation, again,
ugh.
2023-02-26 23:34:53 +00:00
apainintheneck
fdc2e9f3f5
Merge branch 'master' into delay-loading-from-cask-source-api
2023-02-26 14:50:13 -08:00
Rylan Polster
06cf85ffd4
Merge pull request #14814 from Rylan12/fix-from-content-tap-loading
...
Set tap for casks when loading from contents via API
2023-02-26 16:58:21 -05:00
apainintheneck
9af04fdf38
Add installer tests
2023-02-26 11:26:44 -08:00