28 lines
1.1 KiB
Ruby
28 lines
1.1 KiB
Ruby
cask 'rubymine' do
|
|
version '2017.2.3,172.3968.40'
|
|
sha256 'a26b32ac19c7129e6b7a3caa45c8fb48b168df5379e9a8a5175ec032f5e32c1c'
|
|
|
|
url "https://download.jetbrains.com/ruby/RubyMine-#{version.before_comma}.dmg"
|
|
appcast 'https://data.services.jetbrains.com/products/releases?code=RM&latest=true&type=release',
|
|
checkpoint: '8094786a9451539f737caa4b4824faa41fb831efa0810c82e8cded31eb3e412c'
|
|
name 'RubyMine'
|
|
homepage 'https://www.jetbrains.com/ruby/'
|
|
|
|
auto_updates true
|
|
|
|
app 'RubyMine.app'
|
|
|
|
uninstall_postflight do
|
|
ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'mine') }.each { |path| File.delete(path) if File.exist?(path) && File.readlines(path).grep(%r{# see com.intellij.idea.SocketLock for the server side of this interface}).any? }
|
|
end
|
|
|
|
zap delete: [
|
|
"~/Library/Caches/RubyMine#{version.major_minor}",
|
|
"~/Library/Logs/RubyMine#{version.major_minor}",
|
|
],
|
|
trash: [
|
|
"~/Library/Application Support/RubyMine#{version.major_minor}",
|
|
"~/Library/Preferences/RubyMine#{version.major_minor}",
|
|
]
|
|
end
|