aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMislav Marohnić2012-03-20 23:51:50 +0100
committerJack Nagel2012-03-20 18:08:26 -0500
commit158a6bd81d61c65f9805b3f736db84b3a8bcf31f (patch)
tree0d4d1efc16bdf2d4e4c46d94587081ba410b3cb7 /Library
parentecc314741a9bcf0d78e3fc07cff56ce9c6972236 (diff)
downloadhomebrew-158a6bd81d61c65f9805b3f736db84b3a8bcf31f.tar.bz2
update hub to v1.8.4; add shell completion scripts
Closes #11099. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/hub.rb17
1 files changed, 14 insertions, 3 deletions
diff --git a/Library/Formula/hub.rb b/Library/Formula/hub.rb
index 2072a4133..0c392e8ea 100644
--- a/Library/Formula/hub.rb
+++ b/Library/Formula/hub.rb
@@ -1,12 +1,23 @@
require 'formula'
class Hub < Formula
- url 'https://github.com/defunkt/hub/tarball/v1.8.3'
- homepage 'https://github.com/defunkt/hub#readme'
+ url 'https://github.com/defunkt/hub/tarball/v1.8.4'
+ homepage 'http://defunkt.io/hub/'
head 'https://github.com/defunkt/hub.git'
- md5 '8775c2312ba2b175775a81e9b0bf5e24'
+ md5 '1ca041817c014d2d3a5267f2aed4157b'
def install
system "rake", "install", "prefix=#{prefix}"
+ (prefix+'etc/bash_completion.d').install 'etc/hub.bash_completion.sh'
+ (share+'zsh/functions').install 'etc/hub.zsh_completion' => '_hub'
+ end
+
+ def caveats; <<-EOS.undent
+ Bash completion has been installed to:
+ #{etc}/bash_completion.d
+
+ zsh completion has been installed to:
+ #{HOMEBREW_PREFIX}/share/zsh/functions
+ EOS
end
end