aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/cli/style.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-02-03 11:54:38 +0100
committerMarkus Reiter2017-02-12 23:06:35 +0100
commitf48857d24657c2cf9c8d01c781ba270cff52c8a0 (patch)
treef82ccce7c70a0ad46cc9a1538e2063ee7922c22a /Library/Homebrew/cask/lib/hbc/cli/style.rb
parent93724c0645f59ccdb4b4bf34f701957bacb5e45a (diff)
downloadbrew-f48857d24657c2cf9c8d01c781ba270cff52c8a0.tar.bz2
Use constants for RuboCop version.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli/style.rb')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/style.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/style.rb b/Library/Homebrew/cask/lib/hbc/cli/style.rb
index cdcc135b8..d3e44382d 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/style.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/style.rb
@@ -23,12 +23,10 @@ module Hbc
$CHILD_STATUS.success?
end
- RUBOCOP_CASK_VERSION = "~> 0.10.6".freeze
-
def install_rubocop
Utils.capture_stderr do
begin
- Homebrew.install_gem_setup_path! "rubocop-cask", RUBOCOP_CASK_VERSION, "rubocop"
+ Homebrew.install_gem_setup_path! "rubocop-cask", HOMEBREW_RUBOCOP_CASK_VERSION, "rubocop"
rescue SystemExit
raise CaskError, Tty.strip_ansi($stderr.string).chomp.sub(/\AError: /, "")
end