33 Commits

Author SHA1 Message Date
nandahkrishna
8ddf9b37bd
Apply suggestions from code review
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-03-05 18:55:51 +05:30
nandahkrishna
7d5216c500
Improve formula/cask disambiguation 2021-03-04 23:56:04 +05:30
nandahkrishna
22cc750c66
livecheck and bump: formula/cask disambiguation 2021-03-04 23:56:04 +05:30
Seeker
5dbdcbcb6b livecheck: fix filtering of watchlist with --formulae/--casks flag 2021-01-29 13:26:50 -08:00
EricFromCanada
2ae4f11963 reorder command flags 2021-01-26 15:36:44 -05:00
Rylan Polster
d1f3e39b7b
Update commands to generate usage banner 2021-01-18 21:20:11 -05:00
Dawid Dziurla
cf654da251
dev-cmd: indicate multiple named args in usage banner 2021-01-15 13:04:07 +01:00
Rylan Polster
da811373d3 Add named_args DSL for commands 2021-01-13 17:09:42 -05:00
hyuraku
ffc5c3206e
repair message 2020-12-19 22:59:27 -05:00
hyuraku
9f7e471382
livecheck: raise error if no watchlist 2020-12-19 22:59:26 -05:00
Sam Ford
e604cf742b
dev-cmd/livecheck: use safe navigation on #sort_by 2020-12-19 22:59:26 -05:00
Markus Reiter
f711352cfd Add audit for livecheck in casks. 2020-12-14 15:44:35 +01:00
Sam Ford
15a868c5e6
dev-cmd/livecheck: respect --cask and --formula
When running `brew livecheck --cask` or `brew livecheck --formula`,
livecheck wasn't properly respecting these flags. It should have
worked by only including the casks or formulae in the watchlist but
instead these flags were treating all the names in the watchlist as
formulae or casks, which doesn't work properly.

This addresses the issue by always using `#to_formulae_and_casks`
on the watchlist names and then using `#reject` to conditionally
exclude formulae or casks based on whether the related flags were
passed to `brew livecheck`.
2020-12-12 17:43:26 -05:00
Sam Ford
7b14f7446d
dev-cmd/livecheck: format usage_banner 2020-12-12 17:43:25 -05:00
Markus Reiter
f35829dd37
Load formulae/casks from tap files. 2020-12-12 17:43:24 -05:00
Markus Reiter
00e219caf9
Fix type error. 2020-12-12 17:43:24 -05:00
Markus Reiter
af56a99a37
Use symbol for respond_to?. 2020-12-12 17:43:24 -05:00
Markus Reiter
3b366d05b9
Fix code style. 2020-12-12 17:43:23 -05:00
Seeker
90067ea8ed
Add --formula/--formulae and --cask/--casks 2020-12-12 17:43:23 -05:00
Seeker
a7b36ee9ea
Update help text 2020-12-12 17:43:23 -05:00
Seeker
f06f83ca69
Rename livecheck_formulae_and_casks to run_checks 2020-12-12 17:43:23 -05:00
Seeker
e40bc65414
Sort formulae_and_casks_to_check in Livecheck#livecheck 2020-12-12 17:43:22 -05:00
Seeker
4b87da4da9
Initial small fixes
- Skip blank lines in watchlist
- Initialize Livecheck#version as nil
- Simplify livecheck_version logic
- Make test a bit more understandable
2020-12-12 17:43:22 -05:00
Seeker
6794a78087
livecheck: add support for casks 2020-12-12 17:43:21 -05:00
Markus Reiter
5be4c9b5e0 Upgrade typed sigils. 2020-11-25 17:04:19 +01:00
Markus Reiter
da9289eff0 Add more type signatures. 2020-11-13 12:26:36 +01:00
Markus Reiter
24ae318a3d Move type annotations into files. 2020-10-10 14:59:39 +02:00
nandahkrishna
cf293d0ef5
livecheck: progress bar for JSON output
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
2020-09-18 02:40:51 +05:30
Mike McQuaid
2e5272d04c Deprecate/disable code for Homebrew 2.5.0.
Do the usual "disable deprecations" and "uncomment pending deprecations"
dance and delete/deprecate/disable relevant/related code.
2020-09-03 10:34:22 +01:00
Joshua Peek
2d0369fd50
Fix whitespace 2020-09-01 11:45:05 -07:00
Joshua Peek
9480de8f5d
Default .brew_livecheck_watchlist to String type 2020-09-01 11:44:47 -07:00
Joshua Peek
518af675fb Fix reading HOMEBREW_LIVECHECK_WATCHLIST file 2020-09-01 11:20:39 -07:00
nandahkrishna
e5fe57c1fe
Migrate livecheck to Homebrew/brew
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
Co-authored-by: Thierry Moisan <thierry.moisan@gmail.com>
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
Co-authored-by: Maxim Belkin <maxim.belkin@gmail.com>
Co-authored-by: Issy Long <me@issyl0.co.uk>
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Co-authored-by: Seeker <meaningseeking@protonmail.com>
2020-08-31 17:08:28 +05:30