cask "mongrel" do version "5.72.10,6a2016c9-7818-4203-afeb-221d13c5eb95" sha256 "9e330783f9531301acda83108e6fb353d638aa67542691557453403b6036982c" url "https://www.visorcraft.com/api/downloads/mongrel/#{version.csv.second}" name "Mongrel" desc "Database workbench with terminals, containers, Kubernetes, and API client" homepage "https://www.visorcraft.com/" livecheck do url "https://www.visorcraft.com/api/downloads/mongrel" strategy :json do |json| json["files"]&.filter_map do |file| if file["platform"] == "macos" && file["arch"] == "arm64" && file["channel"] == "stable" && file["file_name"]&.end_with?(".dmg") "#{file["version"]},#{file["id"]}" end end end end depends_on arch: :arm64 depends_on :macos app "Mongrel.app" zap trash: [ "~/Library/Application Support/com.mongrel.desktop", "~/Library/Application Support/Mongrel", "~/Library/Caches/com.mongrel.desktop", "~/Library/HTTPStorages/com.mongrel.desktop", "~/Library/Logs/Mongrel", "~/Library/Preferences/com.mongrel.desktop.plist", "~/Library/Saved Application State/com.mongrel.desktop.savedState", "~/Library/WebKit/com.mongrel.desktop", ] end