cask "reunion" do version "14.0.0,241014unr" sha256 "531e3d375e3496b75276e415bf5321dafba711e9c0246a0eb2b0d3e07daa0588" url "https://store.leisterpro.com/updates/reunion#{version.major}/Reunion-#{version.csv.first.dots_to_hyphens}-#{version.csv.second}.zip" name "Reunion" desc "Genealogy (family tree) app" homepage "https://www.leisterpro.com/" livecheck do url "https://store.leisterpro.com/updates/reunion#{version.major}/appcast.xml" regex(%r{/Reunion-(\d+(?:-\d+)*)-(\d+.*?)\.zip}i) strategy :sparkle do |item, regex| item.url.scan(regex).map do |match| "#{match[0].tr("-", ".")},#{match[1]}" end end end app "Reunion #{version.major}.app" zap trash: [ "~/Documents/Reunion Files", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.leisterpro.reunion#{version.major}.sfl*", "~/Library/Application Support/Reunion", "~/Library/Caches/com.leisterpro.reunion#{version.major}", "~/Library/Preferences/com.leisterpro.reunion#{version.major}.plist", "~/Library/Preferences/com.leisterpro.reunion.version.plist", "~/Library/Preferences/Reunion Preferences", ] end