cask 'intellij-idea-ce-eap' do version '2016.3.6,163.15188.11' sha256 '86be1e9bd529e28b851e311abc9b9bac8be1770f32738f2385276644c1b4a6e3' url "https://download.jetbrains.com/idea/ideaIC-#{version.before_comma}.dmg" name 'IntelliJ IDEA Community Edition EAP' name 'IntelliJ IDEA CE EAP' homepage "https://confluence.jetbrains.com/display/IDEADEV/IDEA+#{version.major_minor}+EAP" auto_updates true app 'IntelliJ IDEA CE.app' uninstall_postflight do ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'idea') }.each { |path| File.delete(path) if File.exist?(path) } end zap delete: [ "~/Library/Application Support/IdeaIC#{version.major_minor}", "~/Library/Preferences/IdeaIC#{version.major_minor}", "~/Library/Caches/IdeaIC#{version.major_minor}", "~/Library/Logs/IdeaIC#{version.major_minor}", ] end