From f8ce6a664afa1db48aa5289d77ee2fcb507a7a33 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 27 Dec 2014 17:00:21 +0000 Subject: [PATCH] brew-cask.rb: fix `brew audit --strict brew-cask`. We added a few more warnings so fix them up. --- brew-cask.rb | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/brew-cask.rb b/brew-cask.rb index 2dbaf7e45b..6c40f03456 100644 --- a/brew-cask.rb +++ b/brew-cask.rb @@ -1,22 +1,22 @@ -require 'pathname' -require 'formula' - -require Pathname(__FILE__).realpath.dirname.join('lib', 'cask', 'version') +require Pathname(__FILE__).realpath.dirname.join("lib", "cask", "version") class BrewCask < Formula - homepage 'https://github.com/caskroom/homebrew-cask/' - url 'https://github.com/caskroom/homebrew-cask.git', :tag => "v#{HOMEBREW_CASK_VERSION}" + homepage "https://github.com/caskroom/homebrew-cask/" + url "https://github.com/caskroom/homebrew-cask.git", :tag => "v#{HOMEBREW_CASK_VERSION}" + head "https://github.com/caskroom/homebrew-cask.git", :branch => "master" - head 'https://github.com/caskroom/homebrew-cask.git', :branch => 'master' - - skip_clean 'bin' + skip_clean "bin" def install - man1.install 'doc/man/brew-cask.1' - prefix.install 'lib' => 'rubylib' - inreplace 'bin/brew-cask', '/lib', '/rubylib' + man1.install "doc/man/brew-cask.1" + prefix.install "lib" => "rubylib" + inreplace "bin/brew-cask", "/lib", "/rubylib" - prefix.install 'Casks', 'bin' - (bin+'brew-cask').chmod 0755 + prefix.install "Casks", "bin" + (bin+"brew-cask").chmod 0755 + end + + test do + system "#{bin}/brew-cask", "cask", "info", "google-chrome" end end