From 0cc0e7acc578341ff7d34f96f6321d428b43eed4 Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Sat, 30 Sep 2023 00:36:02 -0400 Subject: [PATCH] maria: discontinued The GitHub repository for `maria` was archived on 2023-04-13, so this sets the cask as discontinued. The most recent release was on 2017-01-21 (though there were a couple of subsequent version tags in 2017/2018 that didn't get a release), so it's fair to say this probably isn't being developed anymore. --- Casks/m/maria.rb | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/Casks/m/maria.rb b/Casks/m/maria.rb index cef585f643..597eb58110 100644 --- a/Casks/m/maria.rb +++ b/Casks/m/maria.rb @@ -7,23 +7,9 @@ cask "maria" do desc "App/widget for aria2 download tool" homepage "https://github.com/shincurry/Maria" - livecheck do - url "https://github.com/shincurry/Maria/releases/latest" - regex(%r{href=.*?/Maria_v?(\d+(?:\.\d+)*)_build(.*?)\.dmg}i) - strategy :header_match do |headers, regex| - next if headers["location"].blank? - - # Identify the latest tag from the response's `location` header - latest_tag = File.basename(headers["location"]) - next if latest_tag.blank? - - # Fetch the assets list HTML for the latest tag and match within it - assets_page = Homebrew::Livecheck::Strategy.page_content( - @url.sub(%r{/releases/?.+}, "/releases/expanded_assets/#{latest_tag}"), - ) - assets_page[:content]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]}" } - end - end - app "Maria.app" + + caveats do + discontinued + end end