2015-12-18 09:15:28 +08:00
cask 'datagrip' do
2017-09-07 11:09:15 +08:00
version '2017.2.2,172.4155.28'
sha256 '597f80785de101729b5a67f2029f3f59a2427d6f765615b0abf434217e6f8334'
2015-12-17 17:56:41 +08:00
2017-03-28 20:20:18 +08:00
url " https://download.jetbrains.com/datagrip/datagrip- #{ version . before_comma } .dmg "
2017-02-04 13:24:19 +08:00
appcast 'https://data.services.jetbrains.com/products/releases?code=DG&latest=true&type=release' ,
2017-09-07 11:09:15 +08:00
checkpoint : '8eceb992516f66ed88d665004bf3a8f0ee450db992ff1c5d768713fc192e3768'
2015-12-17 17:56:41 +08:00
name 'DataGrip'
homepage 'https://www.jetbrains.com/datagrip/'
2017-02-04 13:24:19 +08:00
auto_updates true
2016-05-29 12:37:12 +08:00
2015-12-17 17:56:41 +08:00
app 'DataGrip.app'
2016-02-06 23:11:11 +08:00
2017-04-05 07:10:29 +08:00
uninstall_postflight do
2017-08-06 17:07:56 +08:00
ENV [ 'PATH' ] . split ( File :: PATH_SEPARATOR ) . map { | path | File . join ( path , 'datagrip' ) } . 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? }
2017-04-05 07:10:29 +08:00
end
2016-02-06 23:11:11 +08:00
zap delete : [
2016-05-29 12:37:12 +08:00
" ~/Library/Caches/DataGrip #{ version . major_minor } " ,
" ~/Library/Logs/DataGrip #{ version . major_minor } " ,
2017-08-06 17:07:56 +08:00
] ,
trash : [
" ~/Library/Preferences/DataGrip #{ version . major_minor } " ,
" ~/Library/Application Support/DataGrip #{ version . major_minor } " ,
2016-02-06 23:19:09 +08:00
]
2015-12-17 17:56:41 +08:00
end