26 lines
995 B
Ruby
26 lines
995 B
Ruby
cask 'rubymine' do
|
|
version '2017.2,172.3317.60'
|
|
sha256 '8f3e38db85ca01f9f6838aa04e34cb50c4b898d6626b40f6bb2b502a7ba8616f'
|
|
|
|
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: '1f3e9c14e69f90994940662494d47dd2fecad754eb68f7da6a643be11c0ce84f'
|
|
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) }
|
|
end
|
|
|
|
zap delete: [
|
|
"~/Library/Application Support/RubyMine#{version.major_minor}",
|
|
"~/Library/Preferences/RubyMine#{version.major_minor}",
|
|
"~/Library/Caches/RubyMine#{version.major_minor}",
|
|
"~/Library/Logs/RubyMine#{version.major_minor}",
|
|
]
|
|
end
|