clion: fix RuboCop style.
See https://github.com/Homebrew/brew/pull/7867.
This commit is contained in:
parent
8410adeacd
commit
c3642eb437
|
@ -1,24 +1,29 @@
|
|||
cask 'clion' do
|
||||
version '2020.1.3,201.8743.17'
|
||||
sha256 '477609f21fe7cf5609f7734a2cf26a3af45ad00bca53091c0fd2e9bb1650951d'
|
||||
cask "clion" do
|
||||
version "2020.1.3,201.8743.17"
|
||||
sha256 "477609f21fe7cf5609f7734a2cf26a3af45ad00bca53091c0fd2e9bb1650951d"
|
||||
|
||||
url "https://download.jetbrains.com/cpp/CLion-#{version.before_comma}.dmg"
|
||||
appcast 'https://data.services.jetbrains.com/products/releases?code=CL&latest=true&type=release'
|
||||
name 'CLion'
|
||||
homepage 'https://www.jetbrains.com/clion/'
|
||||
appcast "https://data.services.jetbrains.com/products/releases?code=CL&latest=true&type=release"
|
||||
name "CLion"
|
||||
homepage "https://www.jetbrains.com/clion/"
|
||||
|
||||
auto_updates true
|
||||
|
||||
app 'CLion.app'
|
||||
app "CLion.app"
|
||||
|
||||
uninstall_postflight do
|
||||
ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'clion') }.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, "clion") }.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/Application Support/CLion#{version.major_minor}",
|
||||
"~/Library/Caches/CLion#{version.major_minor}",
|
||||
"~/Library/Logs/CLion#{version.major_minor}",
|
||||
"~/Library/Preferences/CLion#{version.major_minor}",
|
||||
]
|
||||
"~/Library/Application Support/CLion#{version.major_minor}",
|
||||
"~/Library/Caches/CLion#{version.major_minor}",
|
||||
"~/Library/Logs/CLion#{version.major_minor}",
|
||||
"~/Library/Preferences/CLion#{version.major_minor}",
|
||||
]
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue