cask "rubymine" do arch arm: "-aarch64" version "2024.3,243.21565.197" sha256 arm: "410f621c351b57b6fdc15391f836f45a454f2accee8d49fd60848ced3ddd4c25", intel: "bb6a97f54a1a108f92a88152c1c4af9e6d6b85e66cff4e55038c275b3a061971" url "https://download.jetbrains.com/ruby/RubyMine-#{version.csv.first}#{arch}.dmg" name "RubyMine" desc "Ruby on Rails IDE" homepage "https://www.jetbrains.com/ruby/" livecheck do url "https://data.services.jetbrains.com/products/releases?code=RM&latest=true&type=release" strategy :json do |json| json["RM"]&.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 "RubyMine.app" binary "#{appdir}/RubyMine.app/Contents/MacOS/rubymine" zap trash: [ "~/Library/Application Support/RubyMine#{version.major_minor}", "~/Library/Caches/RubyMine#{version.major_minor}", "~/Library/Logs/RubyMine#{version.major_minor}", "~/Library/Preferences/RubyMine#{version.major_minor}", ] end