intellij-idea: fix RuboCop style.

See https://github.com/Homebrew/brew/pull/7867.
This commit is contained in:
Mike McQuaid 2020-07-27 10:27:06 +01:00
parent b946fd2bb0
commit 200b5416dd
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
1 changed files with 20 additions and 15 deletions

View File

@ -1,26 +1,31 @@
cask 'intellij-idea' do
version '2020.1.4'
sha256 '91a974f59d87f19a131a7c27e37d3ddd1af9f54f51c6cfbc15811cf615754ab3'
cask "intellij-idea" do
version "2020.1.4"
sha256 "91a974f59d87f19a131a7c27e37d3ddd1af9f54f51c6cfbc15811cf615754ab3"
url "https://download.jetbrains.com/idea/ideaIU-#{version}.dmg"
appcast 'https://data.services.jetbrains.com/products/releases?code=IIU&latest=true&type=release'
name 'IntelliJ IDEA Ultimate'
homepage 'https://www.jetbrains.com/idea/'
appcast "https://data.services.jetbrains.com/products/releases?code=IIU&latest=true&type=release"
name "IntelliJ IDEA Ultimate"
homepage "https://www.jetbrains.com/idea/"
auto_updates true
app 'IntelliJ IDEA.app'
app "IntelliJ IDEA.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) && File.readlines(path).grep(%r{# see com.intellij.idea.SocketLock for the server side of this interface}).any? }
ENV["PATH"].split(File::PATH_SEPARATOR).map { |path| File.join(path, "idea") }.each do |path|
if File.exist?(path) &&
File.readlines(path).grep(/# see com.intellij.idea.SocketLock for the server side of this interface/).any?
File.delete(path)
end
end
end
zap trash: [
'~/Library/Preferences/com.jetbrains.intellij.plist',
"~/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}",
'~/Library/Saved Application State/com.jetbrains.intellij.savedState',
]
"~/Library/Preferences/com.jetbrains.intellij.plist",
"~/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}",
"~/Library/Saved Application State/com.jetbrains.intellij.savedState",
]
end