cask 'webstorm-eap' do version '2017.1.1,171.4073.31' sha256 'e73fe3ae991fb71d9ff0cccbe510579dd4bff2b96c4853c295edb018ab0fdbf9' url "https://download.jetbrains.com/webstorm/WebStorm-#{version.after_comma}.dmg" name 'WebStorm EAP' homepage 'https://confluence.jetbrains.com/display/WI/WebStorm+EAP' conflicts_with cask: 'webstorm' app "WebStorm #{version.before_comma} EAP.app" uninstall_postflight do ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'wstorm') }.each { |path| File.delete(path) if File.exist?(path) } end zap delete: [ "~/Library/Application Support/WebStorm#{version.major_minor}", "~/Library/Caches/WebStorm#{version.major_minor}", "~/Library/Logs/WebStorm#{version.major_minor}", "~/Library/Preferences/WebStorm#{version.major_minor}", ] end