26 lines
1.1 KiB
Ruby
26 lines
1.1 KiB
Ruby
cask 'rubymine' do
|
|
version '2017.3.2,173.4301.17'
|
|
sha256 'ee0d9bafb5d01b1eafa849169e04d4651525ab161b3d80b04e8407eea9146f6b'
|
|
|
|
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: '41ffb56c3bd78d1f0efce00db3314fac6ea7ac5a8a0b19535cbf870b8f2515d0'
|
|
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 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
|