homebrew-core/Formula/hub.rb

21 lines
533 B
Ruby
Raw Normal View History

2009-12-11 16:13:57 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Hub < Formula
homepage 'http://hub.github.com/'
url 'https://github.com/github/hub/archive/v1.10.6.tar.gz'
sha1 'e29d158c65a10ef3889f4af438bf1fb50fbd0536'
head 'https://github.com/github/hub.git'
2009-12-11 16:13:57 +00:00
def install
rake "install", "prefix=#{prefix}"
bash_completion.install 'etc/hub.bash_completion.sh'
zsh_completion.install 'etc/hub.zsh_completion' => '_hub'
end
test do
HOMEBREW_REPOSITORY.cd do
2013-06-09 02:26:21 +00:00
assert_equal 'bin/brew', `#{bin}/git ls-files -- bin`.strip
end
end
2009-12-11 16:13:57 +00:00
end