2 version "10.0.0,a1b9b1"
3 sha256 "2776ab6679a37bdd55e02c88b049f002f1f84225fa3124c60f3b096888ad95ed"
5 url "https://cdn.change-vision.com/files/astah-uml-#{version.csv.first.dots_to_underscores}-#{version.csv.second}-MacOs.dmg",
6 verified: "cdn.change-vision.com/files/"
7 name "Change Vision Astah UML"
8 desc "UML diagramming tool with mind mapping"
9 homepage "https://astah.net/products/astah-uml/"
12 url "https://members.change-vision.com/download/files/astah_UML/latest/mac_pkg"
13 regex(/astah[._-]uml[._-]v?(\d+(?:[._]\d+)+)[._-](\h+)[._-]MacOs\.dmg/i)
14 strategy :header_match do |headers, regex|
15 match = headers["location"]&.match(regex)
18 "#{match[1].tr("_", ".")},#{match[2]}"
22 pkg "astah uml ver #{version.csv.first.dots_to_underscores}.pkg"
24 uninstall pkgutil: "com.change-vision.astah.uml"
26 zap trash: "~/Library/Preferences/com.change-vision.astah.uml.plist"