2015-12-18 09:15:28 +08:00
cask 'datagrip' do
2018-01-18 17:12:05 +08:00
version '2017.3.4,173.4301.31'
sha256 'f30dd470d0c676161f971c783601b1ca0ee00e288ec18f7b11ca8287b759b59d'
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' ,
2018-01-18 17:12:05 +08:00
checkpoint : '443f5f51a5a4db802afc0d5a2ceaa3db7897aff65451e25ced86f0d3d549d8eb'
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
2017-11-18 13:23:05 +08:00
zap trash : [
2017-11-18 17:35:46 +08:00
" ~/Library/Application Support/DataGrip #{ version . major_minor } " ,
2017-11-18 13:23:05 +08:00
" ~/Library/Caches/DataGrip #{ version . major_minor } " ,
" ~/Library/Logs/DataGrip #{ version . major_minor } " ,
" ~/Library/Preferences/DataGrip #{ version . major_minor } " ,
]
2015-12-17 17:56:41 +08:00
end