rider: fix RuboCop style.
See https://github.com/Homebrew/brew/pull/7867.
This commit is contained in:
parent
0011efba8e
commit
5504f40667
|
@ -1,26 +1,31 @@
|
|||
cask 'rider' do
|
||||
version '2020.1.4,201.8538.1'
|
||||
sha256 '0d4d5aa12c368d6e32ab307e1b6d5358f6ad5f03931ce16cb6517abc8f0f043c'
|
||||
cask "rider" do
|
||||
version "2020.1.4,201.8538.1"
|
||||
sha256 "0d4d5aa12c368d6e32ab307e1b6d5358f6ad5f03931ce16cb6517abc8f0f043c"
|
||||
|
||||
url "https://download.jetbrains.com/rider/JetBrains.Rider-#{version.before_comma}.dmg"
|
||||
appcast 'https://data.services.jetbrains.com/products/releases?code=RD&latest=true&type=release'
|
||||
name 'Jetbrains Rider'
|
||||
homepage 'https://www.jetbrains.com/rider/'
|
||||
appcast "https://data.services.jetbrains.com/products/releases?code=RD&latest=true&type=release"
|
||||
name "Jetbrains Rider"
|
||||
homepage "https://www.jetbrains.com/rider/"
|
||||
|
||||
auto_updates true
|
||||
|
||||
app 'Rider.app'
|
||||
app "Rider.app"
|
||||
|
||||
uninstall_postflight do
|
||||
ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'rider') }.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, "rider") }.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/Rider#{version.major_minor}",
|
||||
"~/Library/Caches/Rider#{version.major_minor}",
|
||||
"~/Library/Logs/Rider#{version.major_minor}",
|
||||
"~/Library/Preferences/Rider#{version.major_minor}",
|
||||
'~/Library/Preferences/jetbrains.rider.71e559ef.plist',
|
||||
'~/Library/Saved Application State/com.jetbrains.rider.savedState',
|
||||
]
|
||||
"~/Library/Application Support/Rider#{version.major_minor}",
|
||||
"~/Library/Caches/Rider#{version.major_minor}",
|
||||
"~/Library/Logs/Rider#{version.major_minor}",
|
||||
"~/Library/Preferences/Rider#{version.major_minor}",
|
||||
"~/Library/Preferences/jetbrains.rider.71e559ef.plist",
|
||||
"~/Library/Saved Application State/com.jetbrains.rider.savedState",
|
||||
]
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue