Markus Reiter
c39abef045
Always prefer default tap.
2024-02-12 21:45:07 +01:00
Markus Reiter
48c9897081
Convert FromNameLoader
to class.
2024-02-12 07:43:29 +01:00
Markus Reiter
8e04ab8b42
Fix type signature.
2024-02-12 07:14:28 +01:00
Markus Reiter
0211feebd7
Fix loading test fixtures.
2024-02-12 07:14:27 +01:00
Markus Reiter
6f28392d6e
Remove FromDefaultTapPathLoader
and FromDefaultTapLoader
.
2024-02-12 07:12:33 +01:00
Markus Reiter
d17aa66759
Avoid T.cast
.
2024-02-12 07:12:32 +01:00
Markus Reiter
3e61e3b428
Stop following recursive tap migrations.
2024-02-10 15:07:31 +01:00
Markus Reiter
cb13f95928
Avoid T.cast
.
2024-02-09 16:59:27 +01:00
Markus Reiter
1323262610
Rename constant.
2024-02-08 19:22:02 +01:00
Markus Reiter
76d8d6c840
Add type signatures.
2024-02-08 16:30:08 +01:00
Markus Reiter
a37afcb777
Fix loading renamed casks from API.
2024-02-08 16:29:31 +01:00
Markus Reiter
889854b0b3
Merge FromTapPathLoader
into FromPathLoader
.
2024-02-08 16:20:32 +01:00
Markus Reiter
dc21095731
Simplify multiple if
s into single case
statement.
2024-02-08 16:20:32 +01:00
Markus Reiter
732e4438f4
Use token
instead of name
for casks.
2024-02-08 16:20:31 +01:00
Markus Reiter
6e5b6b7cc9
Remove unused parameter from CaskLoader::tap_paths
.
2024-02-08 16:20:31 +01:00
Markus Reiter
c301b9c703
Readd debug logging.
2024-02-07 14:02:12 +01:00
Markus Reiter
825222cc83
Simplify code style.
...
Co-authored-by: Kevin <apainintheneck@gmail.com>
2024-02-07 14:02:10 +01:00
Markus Reiter
c559e6777c
Reuse rename logic for default cask tap.
2024-02-07 02:02:03 +01:00
Markus Reiter
889c3c38ed
Refactor CaskLoader::for
.
2024-02-07 02:02:02 +01:00
Markus Reiter
e5a6f765da
Revert "Merge pull request #16608 from bevanjkay/revert-16596-cask-rename-migrations"
...
This reverts commit 5799e8541567385c4d729cc3f0062b45e55b9936, reversing
changes made to 677517132782b276ba1c4ba77456adf7540d99ba.
2024-02-07 02:02:02 +01:00
Bevan Kay
f0b8845ad6
Revert "Handle tap migrations in CaskLoader
."
2024-02-06 20:16:03 +00:00
Markus Reiter
094761dcd9
Add tests for CaskLoader::for
.
2024-02-06 19:56:09 +01:00
Markus Reiter
ed00dc0b95
Add type annotations for cask loaders.
2024-02-06 16:04:08 +01:00
Markus Reiter
5cab0c8a6e
Handle tap migrations in CaskLoader
.
2024-02-06 01:08:23 +01:00
Eric Knibbe
e63b1f4da5
docs: monospace suggested values
2024-02-04 15:42:26 +01:00
Eric Knibbe
7698cf2098
audit: messaging improvements
2024-02-04 15:10:14 +01:00
Mike McQuaid
0d02aa3313
Merge pull request #16578 from dnicolson/fix-quick-look
...
Replace “QuickLook” with “Quick Look”
2024-02-04 12:09:45 +01:00
Dave Nicolson
31f09f8d30
Replace “QuickLook” with “Quick Look”
2024-02-03 23:54:04 +01:00
Douglas Eichelberger
e235bcf903
Add caveats.rbi
2024-01-31 22:23:40 -08:00
Douglas Eichelberger
eb7c3e52a0
Require SystemInclude only where needed
2024-01-31 11:42:01 -08:00
Douglas Eichelberger
f99d39faf9
Vendor CompactBlank cop
2024-01-26 15:03:59 -08:00
Mike McQuaid
86e1c8aacf
Merge pull request #16463 from dduugg/no-active-support
...
Remove ActiveSupport from runtime
2024-01-22 19:22:12 +00:00
Douglas Eichelberger
8efe73b32c
Add Object#deep_dup to extend/
2024-01-22 10:52:43 -08:00
Mike McQuaid
2ed2b337c2
Merge pull request #16507 from bevanjkay/cask-uninstall-upgrade-skip
...
cask/uninstall: skip quit/signal directives when upgrading or reinstalling
2024-01-21 19:16:36 +00:00
Douglas Eichelberger
f6c7eb7124
Add hash/keys to extend/
2024-01-19 13:36:17 -08:00
Issy Long
c63723bd7d
Merge pull request #16501 from issyl0/rubocop-new-rules-style-redundant-freeze
...
Fix RuboCop `Style/RedundantFreeze` offenses
2024-01-19 15:05:08 +00:00
Bevan Kay
bd6ab1d2b8
cask/uninstall: skip quit and signal directives when upgrading or reinstalling
2024-01-19 23:30:25 +11:00
Issy Long
f682147598
Fix RuboCop Style/RedundantFreeze
offenses
2024-01-18 22:20:01 +00:00
Issy Long
0e27dc2564
Fix RuboCop Style/ArrayIntersect
offenses
2024-01-18 14:11:43 +00:00
Patrick Linnane
3fdba532a2
various: fix miscellaneous typos
...
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-01-12 10:56:49 -08:00
Bo Anderson
1c3c64a743
api: use freeze option for JSON parsing
2024-01-09 19:07:36 +00:00
apainintheneck
926c5b739a
cmd/audit: fix type error in cask livecheck url audit
...
This got updated recently in 42a42c96acc5193dbb6e321ff2aaecceb00e48a4
to split out the livecheck audits and as a result of that the type
signature for the #validate_url_for_https_availablity method got updated.
This did not account for the possibility that the livecheck url was nil.
I've added a nil check here since it makes no sense to try and validate
a nil url and we have nil checks for the other two http availability
audits already. Plus, the livecheck blocks are audited thoroughly already
for syntax.
2024-01-07 15:45:24 -08:00
Markus Reiter
d496d044f1
Split https_availability
audit.
2024-01-06 11:40:56 +01:00
apainintheneck
984dcf8c11
API: Load casks/formula from JSON with missing keys
...
We'd like to reduce the size of the API JSON and to do that we are
going to remove unused and/or blank elements from the cask/formula
definition. This will reduce the amount of data that has to go
over the wire and make it easier to load this data into memory.
2024-01-01 19:10:48 -08:00
Douglas Eichelberger
ffd761d2e9
Create dedicated Attrable mixin for attr_ methods
2023-12-28 11:46:27 -08:00
Douglas Eichelberger
caf8259ae6
Code review changes
2023-12-27 15:29:33 -08:00
Douglas Eichelberger
3abbf4447e
Some minor regexp match perf improvements
2023-12-27 13:16:36 -08:00
Razvan Azamfirei
2dc3741f08
audit: fix formula path
2023-12-26 08:19:49 +02:00
apainintheneck
b79778229c
Resolve Cask::Cask.all todo
...
Now it takes the :eval_all parameter that means we can remove
ARGV handling inside Cask::Cask.all.
2023-12-21 21:55:16 -08:00
apainintheneck
5a674c232f
Fix Cask::Cask.all bug
...
We were only loading casks from files with this command which,
of course, didn't work for casks that can only be loaded from
the API (when the core cask tap is not tapped). This changes
things to align more with what we do for formulae.
2023-12-21 21:39:58 -08:00