chore: update livechecks for GitHub API usage (#146730)

* accord: fix livecheck for github API

* bonitastudiocommunity: fix livecheck for github API

* btcpayserver-vault: fix livecheck for github API

* camera-live: fix livecheck for github API

* chrysalis: fix livecheck for github API

* desmume: fix livecheck for github API

* elk: fix livecheck for github API

* firefly: fix livecheck for github API

* fvim: fix livecheck for github API

* home-assistant: fix livecheck for github API

* flame: fix livecheck for github API

* josm: fix livecheck for github API

* hydrus-network: fix livecheck for github API

* jupyterlab: fix livecheck for github API

* lbry: fix livecheck for github API

* mambaforge: fix livecheck for github API

* manyverse: fix livecheck for github API

* miniforge: fix livecheck for github API

* n1ghtshade: fix livecheck for github API

* only-switch: fix livecheck for github API

* onlyoffice: fix livecheck for github API

* openrocket: fix livecheck for github API

* outline-manager: fix livecheck for github API

* pingnoo: fix livecheck for github API

* plover: fix livecheck for github API

* processing: fix livecheck for github API

* ricochet-refresh: fix livecheck for github API

* sequel-ace: fix livecheck for github API

* time-to-leave: fix livecheck for github API

* turtl: fix livecheck for github API

* ubports-installer: fix livecheck for github API

* utm: fix livecheck for github API

* vidcutter: fix livecheck for github API

* vimediamanager: fix livecheck for github API

* vine-server: fix livecheck for github API

* waterfox-classic: fix livecheck for github API

* webots: fix livecheck for github API

* wezterm: fix livecheck for github API

* zesarux: fix livecheck for github API

* desmume: update livecheck

* extraterm: update livecheck

* flame: update livecheck

* fvim: update livecheck

* home-assistant: update livecheck

* obs-websocket: update livecheck

* processing: update livecheck

* sequel-ace: update livecheck

* time-to-leave: update livecheck

* turtl: update livecheck

* vine-server: update livecheck

* wezterm: update livecheck

---------

Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
This commit is contained in:
Sean Molenaar
2023-05-08 14:45:55 -07:00
committed by GitHub
co-authored by Sam Ford
parent 99a01c549d
commit 6e5a25efd6
41 changed files with 70 additions and 69 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ cask "accord" do
livecheck do
url :url
regex(%r{href=.*?/tag/v?\.?(\d+(?:\.\d+)+)["' >]}i)
regex(/v?\.?(\d+(?:\.\d+)+)/i)
strategy :github_latest
end
+1 -1
View File
@@ -10,7 +10,7 @@ cask "bonitastudiocommunity" do
livecheck do
url :url
regex(%r{href=["']?[^"' >]*?/tag/[^"' >]*?(\d+(?:[.-]\d+)+(?:-\w+)?)["' >]}i)
regex(/(\d+(?:[.-]\d+)+(?:-\w+)?)/i)
strategy :github_latest
end
+1 -1
View File
@@ -9,7 +9,7 @@ cask "btcpayserver-vault" do
livecheck do
url :url
regex(%r{href=["']?[^"' >]*?/tag/Vault/v?(\d+(?:\.\d+)+)["' >]}i)
regex(/v?(\d+(?:\.\d+)+)/i)
strategy :github_latest
end
+1 -1
View File
@@ -9,7 +9,7 @@ cask "camera-live" do
livecheck do
url :url
regex(%r{href=["']?[^"' >]*?/tag/v?(\d+)["' >]}i)
regex(/v?(\d+)/i)
strategy :github_latest
end
+1 -1
View File
@@ -12,7 +12,7 @@ cask "chrysalis" do
# tag in a different repository, which led to an incorrect version match.
livecheck do
url :url
regex(%r{href=.*?/Chrysalis/releases/tag/v?(\d+(?:\.\d+)+)["' >]}i)
regex(/v?(\d+(?:\.\d+)+)/i)
strategy :github_latest
end
+3 -3
View File
@@ -10,9 +10,9 @@ cask "desmume" do
livecheck do
url :url
regex(%r{href=["']?[^"' >]*?/tag/[^"' >]*?(\d+(?:[._-]\d+)+[a-z]?)["' >]}i)
strategy :github_latest do |page, regex|
page.scan(regex).map { |match| match[0].tr("_", ".") }
regex(/^(?:release[._-])?(\d+(?:[._-]\d+)+[a-z]?)$/i)
strategy :github_latest do |json, regex|
json["tag_name"]&.scan(regex)&.map { |match| match[0].tr("_", ".") }
end
end
+1 -1
View File
@@ -12,7 +12,7 @@ cask "elk" do
livecheck do
url :url
regex(%r{href=.*?/tag/elk[._-]native[._-]v?(\d+(?:\.\d+)+)["' >]}i)
regex(/elk[._-]native[._-]v?(\d+(?:\.\d+)+)/i)
strategy :github_latest
end
+6 -2
View File
@@ -8,9 +8,13 @@ cask "extraterm" do
desc "Swiss army chainsaw of terminal emulators"
homepage "https://extraterm.org/"
# As of writing, upstream marks all releases on GitHub as "pre-release".
# This should be updated to use the `GithubLatest` strategy if/when stable
# versions become available.
livecheck do
url :url
strategy :github_latest
url "https://github.com/sedwards2009/extraterm/releases"
regex(%r{href=["']?[^"' >]*?/tag/v?(\d+(?:\.\d+)+)["' >]}i)
strategy :page_match
end
app "ExtratermQt.app"
+1 -1
View File
@@ -10,7 +10,7 @@ cask "firefly" do
livecheck do
url :url
regex(%r{href=.*?/tag/desktop[._-]v?(\d+(?:\.\d+)+)["' >]}i)
regex(/desktop[._-]v?(\d+(?:\.\d+)+)/i)
strategy :github_latest
end
+3 -3
View File
@@ -11,9 +11,9 @@ cask "flame" do
livecheck do
url :url
regex(%r{href=.*?/tag/v?(\d+(?:\.\d+){1,2})(?:\s*[(._-](\d+)\)?)?["' >]}i)
strategy :github_latest do |page, regex|
page.scan(regex).map do |match|
regex(/^v?(\d+(?:\.\d+)+)(?:\((\d+)\))?$/i)
strategy :github_latest do |json, regex|
json["tag_name"]&.scan(regex)&.map do |match|
match[1].present? ? "#{match[0]},#{match[1]}" : match[0]
end
end
+5 -5
View File
@@ -9,11 +9,11 @@ cask "fvim" do
livecheck do
url :url
strategy :github_latest do |page|
match = page.match(%r{href=.*?/tag/v?(\d+(?:\.\d+)+)\+(g?\h+)["' >]}i)
next if match.blank?
"#{match[1]},#{match[2]}"
regex(/^v?(\d+(?:\.\d+)+)(?:[+-](g?\h+))?$/i)
strategy :github_latest do |json, regex|
json["tag_name"]&.scan(regex)&.map do |match|
match[1].present? ? "#{match[0]},#{match[1]}" : match[0]
end
end
end
+3 -8
View File
@@ -8,16 +8,11 @@ cask "home-assistant" do
desc "Companion app for Home Assistant home automation software"
homepage "https://companion.home-assistant.io/"
# We use the GitHubLatest strategy as Home Assistant also tags pre-releases, and
# we also specify a regex since tags are unconventional, e.g. `2021.2.2/2021.55`,
# and use a custom block to replace the slash with a comma in the resulting version
livecheck do
url :url
strategy :github_latest do |page|
version = page.match(%r{href=".+/tree/(?:mac|release)/([\d.]+)/([\d.]+)"}i)
next if version.blank?
"#{version[1]},#{version[2]}"
regex(%r{^(?:mac|release)/(\d+(?:\.\d+)+)/(\d+(?:\.\d+)*)}i)
strategy :github_latest do |json, regex|
json["tag_name"]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]}" }
end
end
+1 -1
View File
@@ -10,7 +10,7 @@ cask "hydrus-network" do
livecheck do
url :url
regex(%r{href=["']?[^"' >]*?/tree/v?(\d+(?:\.\d+)*[a-z]?)[^"' >]*?["' >]}i)
regex(/v?(\d+(?:\.\d+)*[a-z]?)/i)
strategy :github_latest
end
+1 -1
View File
@@ -10,7 +10,7 @@ cask "josm" do
livecheck do
url :url
regex(%r{href=["']?[^"' >]*?/tree/\D*?(\d+(?:\.\d+)*)[^"' >]*?["' >]}i)
regex(/\D*?(\d+(?:\.\d+)*)/i)
strategy :github_latest
end
+1 -1
View File
@@ -12,7 +12,7 @@ cask "jupyterlab" do
livecheck do
url :url
regex(%r{href=.*?/tag/v?(\d+(?:[.-]\d+)+)["' >]}i)
regex(/v?(\d+(?:[.-]\d+)+)/i)
strategy :github_latest
end
+1 -1
View File
@@ -10,7 +10,7 @@ cask "lbry" do
livecheck do
url :url
regex(%r{href=.*?/lbry-desktop/releases/tag/v?(\d+(?:\.\d+)+)["' >]}i)
regex(/v?(\d+(?:\.\d+)+)/i)
strategy :github_latest
end
+1 -1
View File
@@ -12,7 +12,7 @@ cask "mambaforge" do
livecheck do
url :url
regex(%r{href=.*?/tag/v?(\d+(?:[._-]\d+)+)["' >]}i)
regex(/v?(\d+(?:[._-]\d+)+)/i)
strategy :github_latest
end
+1 -1
View File
@@ -10,7 +10,7 @@ cask "manyverse" do
livecheck do
url :url
regex(%r{href=["']?[^"' >]*?/tag/v?(\d+(?:\.\d+)+-beta)["' >]}i)
regex(/v?(\d+(?:\.\d+)+-beta)/i)
strategy :github_latest
end
+1 -1
View File
@@ -12,7 +12,7 @@ cask "miniforge" do
livecheck do
url :homepage
regex(%r{href=.*?/tag/v?(\d+(?:[.-]\d+)+)["' >]}i)
regex(/v?(\d+(?:[.-]\d+)+)/i)
strategy :github_latest
end
+1 -1
View File
@@ -9,7 +9,7 @@ cask "n1ghtshade" do
livecheck do
url :url
regex(%r{href=.*?/tag/v?([\w._-]+)["' >]}i)
regex(/v?([\w._-]+)/i)
strategy :github_latest
end

Some files were not shown because too many files have changed in this diff Show More