From 8e9eae695adff40df52e667db30dd4fc318615ef Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 14 Oct 2016 20:08:05 +0200 Subject: Use `()` as delimiters for `%Q` and `%q` literals. --- Library/Homebrew/cask/lib/hbc/cli/doctor.rb | 4 ++-- Library/Homebrew/cask/lib/hbc/cli/edit.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Library/Homebrew/cask/lib/hbc/cli') 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 -- cgit v1.2.3