Casks/r/rubymine.rb
cask "rubymine" do
arch arm: "-aarch64"
version "2024.2.1,242.21829.150"
sha256 arm: "feca00900fc89e03c92a12d2643e927daa47eb026db2bf635b058c5e292a45a4",
intel: "3bc2e6e43fae8f799c4a5d42a4c33d9ae13039b40e7c28bd010a77c5cb8e421f"
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|
"#{release["version"]},#{release["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