hub 1.11.0

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>

Closes Homebrew/homebrew#25393.
This commit is contained in:
Mislav Marohnić 2013-12-22 02:18:21 +01:00 committed by Mike McQuaid
parent d132615bc5
commit cef9bc6903

View file

@ -2,19 +2,26 @@ require 'formula'
class Hub < Formula
homepage 'http://hub.github.com/'
url 'https://github.com/github/hub/archive/v1.10.6.tar.gz'
sha1 'e29d158c65a10ef3889f4af438bf1fb50fbd0536'
url 'https://github.com/github/hub/archive/v1.11.0.tar.gz'
sha1 'fea06d242af3be473b78bb738a04afc11ca4df21'
head 'https://github.com/github/hub.git'
option 'without-completions', 'Disable bash/zsh completions'
def install
ENV['GIT_DIR'] = downloader.cached_location/'.git' if build.head?
rake "install", "prefix=#{prefix}"
bash_completion.install 'etc/hub.bash_completion.sh'
zsh_completion.install 'etc/hub.zsh_completion' => '_hub'
if build.with? 'completions'
bash_completion.install 'etc/hub.bash_completion.sh'
zsh_completion.install 'etc/hub.zsh_completion' => '_hub'
end
end
test do
HOMEBREW_REPOSITORY.cd do
assert_equal 'bin/brew', `#{bin}/git ls-files -- bin`.strip
assert_equal 'bin/brew', `#{bin}/hub ls-files -- bin`.strip
end
end
end