cask 'intellij-idea-eap' do version '2016.2-162.1121.10' sha256 'a43b15066be7e13d16ccc429d8ae7f7ba9ca4bd1e80da4687e22d7fb8c842588' url "https://download.jetbrains.com/idea/ideaIU-#{version.sub(%r{.*?-}, '')}.dmg" name 'IntelliJ IDEA EAP' homepage 'https://confluence.jetbrains.com/display/IDEADEV/IDEA+2016.2+EAP' license :commercial auto_updates true app 'IntelliJ IDEA.app' uninstall delete: '/usr/local/bin/idea' zap delete: [ "~/Library/Caches/IntelliJIdea#{version.major_minor}", "~/Library/Logs/IntelliJIdea#{version.major_minor}", "~/Library/Application Support/IntelliJIdea#{version.major_minor}", "~/Library/Preferences/IntelliJIdea#{version.major_minor}", ] end