diff options
| author | Markus Reiter | 2016-10-14 20:08:05 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-10-23 14:32:03 +0200 |
| commit | 8e9eae695adff40df52e667db30dd4fc318615ef (patch) | |
| tree | 416e080ab6b639042991812f2c6c75a3ab98e4fd /Library/Homebrew/cask/lib/hbc/cli | |
| parent | 1a0f8b8a02cfe8795e2128fb294e97bb67fb03f0 (diff) | |
| download | brew-8e9eae695adff40df52e667db30dd4fc318615ef.tar.bz2 | |
Use `()` as delimiters for `%Q` and `%q` literals.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/doctor.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/edit.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb index 873ca47fd..a41781a0c 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb @@ -104,7 +104,7 @@ module Hbc end def self.locale_variables - ENV.keys.grep(/^(?:LC_\S+|LANG|LANGUAGE)\Z/).collect { |v| %Q{#{v}="#{ENV[v]}"} }.sort.join("\n") + ENV.keys.grep(/^(?:LC_\S+|LANG|LANGUAGE)\Z/).collect { |v| %Q(#{v}="#{ENV[v]}") }.sort.join("\n") end def self.privileged_uid @@ -154,7 +154,7 @@ module Hbc def self.render_env_var(var) if ENV.key?(var) - %Q{#{var}="#{ENV[var]}"} + %Q(#{var}="#{ENV[var]}") else none_string end diff --git a/Library/Homebrew/cask/lib/hbc/cli/edit.rb b/Library/Homebrew/cask/lib/hbc/cli/edit.rb index a6ff34234..a6cb9e209 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/edit.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/edit.rb @@ -9,7 +9,7 @@ module Hbc cask_path = Hbc.path(cask_token) odebug "Opening editor for Cask #{cask_token}" unless cask_path.exist? - raise CaskUnavailableError, %Q{#{cask_token}, run "brew cask create #{cask_token}" to create a new Cask} + raise CaskUnavailableError, %Q(#{cask_token}, run "brew cask create #{cask_token}" to create a new Cask) end exec_editor cask_path end |
