grids: make livecheck parse JSON (#116118)

This commit is contained in:
neutric 2021-12-20 15:55:52 +01:00 committed by GitHub
parent 5388d5fa65
commit cc7c7add6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,9 @@ cask "grids" do
livecheck do
url "https://gridsapp.net/appcast.json"
regex(/"mac"\s*:\s*"v?(\d+(?:\.\d+)+)"/i)
strategy :page_match do |page|
JSON.parse(page)["version"]["mac"]
end
end
auto_updates true