cask "dataspell" do arch arm: "-aarch64" version "2024.2.2,242.22855.78" sha256 arm: "3d153a2813dd5b1527a0e5c429a390cdcb7d921774c369818283a6706bb47375", intel: "2afdedae414e62077580c88c76093ea608b49aa3e4c9c9f1ec8aef7d467a7285" url "https://download.jetbrains.com/python/dataspell-#{version.csv.first}#{arch}.dmg" name "DataSpell" desc "IDE for Professional Data Scientists" homepage "https://www.jetbrains.com/dataspell/" livecheck do url "https://data.services.jetbrains.com/products/releases?code=DS&latest=true&type=release" strategy :json do |json| json["DS"]&.map do |release| version = release["version"] build = release["build"] next if version.blank? || build.blank? "#{version},#{build}" end end end auto_updates true depends_on macos: ">= :high_sierra" app "DataSpell.app" binary "#{appdir}/DataSpell.app/Contents/MacOS/dataspell" zap trash: [ "~/Library/Application Support/DataSpell*", "~/Library/Application Support/JetBrains/DataSpell*", "~/Library/Caches/JetBrains/DataSpell*", "~/Library/Logs/JetBrains/DataSpell*", "~/Library/Preferences/com.jetbrains.dataspell.plist", "~/Library/Preferences/DataSpell*", "~/Library/Preferences/jetbrains.dataspell.*.plist", "~/Library/Saved Application State/com.jetbrains.dataspell.savedState", ] end