cask 'phpstorm-eap' do version '2017.1,171.4073.14' sha256 '9ac2427639cb23718a2bcc7f746fe53f5adac519477e2e8e8c223a60611b7aee' url "https://download.jetbrains.com/webide/PhpStorm-EAP-#{version.after_comma}.dmg" name 'PhpStorm EAP' homepage 'https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program' conflicts_with cask: 'phpstorm' app "PhpStorm #{version.before_comma} EAP.app" uninstall_postflight do ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'pstorm') }.each { |path| File.delete(path) if File.exist?(path) } end zap delete: [ "~/Library/Application Support/PhpStorm#{version.major_minor}", "~/Library/Caches/PhpStorm#{version.major_minor}", "~/Library/Logs/PhpStorm#{version.major_minor}", "~/Library/Preferences/PhpStorm#{version.major_minor}", ] end