Sam Ford
99ea95c28d
Sparkle: Expand tests
2020-12-20 01:56:54 -05:00
Sam Ford
c6c303acfe
Sparkle: Rename contents to content
2020-12-20 00:23:22 -05:00
Sam Ford
3933b866b6
Sparkle: Align with PageMatch
...
This inlines the `PRIORITY` and `#match?` logic from `PageMatch`
into `Sparkle` instead of subclassing `PageMatch`. `Sparkle` doesn't
really make sense as a subclass of `PageMatch` (since it functions
in a completely different manner), so it's better to simply copy
over these parts of `PageMatch`. This also helps to separate the
strategies, so any changes to `PRIORITY` or `#match?` in `PageMatch`
won't affect `Sparkle`.
2020-12-19 19:34:28 -05:00
Sam Ford
f93ecd7d55
Satisfy brew typecheck and style
2020-12-19 19:34:27 -05:00
Sam Ford
57995f936f
Sparkle: Remove unnecessary NICE_NAME
2020-12-19 19:34:27 -05:00
Sam Ford
9fdc902630
Sparkle: Reorganize methods, etc.
2020-12-19 19:34:26 -05:00
Sam Ford
1bd2be5e04
Rename page_contents to page_content
2020-12-19 19:34:25 -05:00
Sam Ford
f5774c1af4
Sparkle: Use demodulized class name in error text
2020-12-19 19:34:25 -05:00
Markus Reiter
b8de4e8b21
Simplify strategies.
2020-12-19 19:34:24 -05:00
Markus Reiter
3723cd7dec
Remove detection for Sparkle strategy.
2020-12-19 19:34:23 -05:00
Markus Reiter
4aaa2de6c4
Fix syntax.
2020-12-19 19:34:23 -05:00
Markus Reiter
71759035dd
Fix Sparkle detection if content type is missing.
2020-12-19 19:34:23 -05:00
Markus Reiter
75eb6d1780
Add Item
for Sparkle strategy.
2020-12-19 19:34:23 -05:00
Markus Reiter
3aa5395f75
Look in more places for URL, short version and version.
2020-12-19 19:34:22 -05:00
Markus Reiter
02849cf3e7
Don't pass nice_version
to block.
2020-12-19 19:34:21 -05:00
Markus Reiter
54a3eb2adb
Include item title in Sparkle strategy.
2020-12-19 19:34:21 -05:00
Markus Reiter
d5e1d004e8
Fix Sparkle strategy when only URLs but no versions are found.
2020-12-19 19:34:21 -05:00
Markus Reiter
a8d893f134
Handle Sparkle appcast which specify the version next to the enclosure.
2020-12-19 19:34:20 -05:00
Markus Reiter
5ae726e2b4
Match Sparkle appcasts with HTTPS namespace.
2020-12-19 19:34:20 -05:00
Markus Reiter
82535696fa
Fix code style.
2020-12-19 19:34:20 -05:00
Markus Reiter
f76b5f105f
Skip fetching headers if URL has .xml
extension.
2020-12-19 19:34:19 -05:00
Markus Reiter
9017778326
Don't use Cask::DSL::Version
in Sparkle
strategy.
2020-12-19 19:34:19 -05:00
Markus Reiter
b3c46ba2b9
Allow extracting URL in Sparkle strategy.
2020-12-19 19:34:17 -05:00
Markus Reiter
c24af82a25
Add Sparkle
livecheck strategy.
2020-12-19 19:34:17 -05:00