homebrew-cask/Casks/rubymine.rb

26 lines
997 B
Ruby

cask 'rubymine' do
version '2017.1.5,171.4694.62'
sha256 '7b4ac8531d222d9579dc39236bebac820306437c5f17bc111fbec594483f75cb'
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: '06071a649a2271699628db6f2a595a7e3f9f506038c1292d412bfb4bc294de38'
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