Merge pull request #14748 from SMillerDev/feat/cask/audit_short_version_sparkle
cask: audit if sparkle livecheck needs multipart version
This commit is contained in:
commit
2b1fbaa26d
@ -474,6 +474,16 @@ module Cask
|
|||||||
add_error "download not possible: #{e}"
|
add_error "download not possible: #{e}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
sig { void }
|
||||||
|
def audit_appcast_unneeded_long_version
|
||||||
|
return unless cask.livecheck.strategy == :sparkle
|
||||||
|
return unless cask.version.csv.second
|
||||||
|
return if cask.url.to_s.include? cask.version.csv.second
|
||||||
|
return if cask.version.csv.third.present? && cask.url.to_s.include?(cask.version.csv.third)
|
||||||
|
|
||||||
|
add_warning "Download does not require additional version components. Use `&:short_version` in the livecheck"
|
||||||
|
end
|
||||||
|
|
||||||
sig { void }
|
sig { void }
|
||||||
def audit_signing
|
def audit_signing
|
||||||
return if !signing? || download.blank? || cask.url.blank?
|
return if !signing? || download.blank? || cask.url.blank?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user