aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/hub.rb
blob: 84e5754744b23ee854298b9f38cbeffa7ef4d52a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Hub < Formula
  homepage 'http://defunkt.io/hub/'
  url 'https://github.com/defunkt/hub/tarball/v1.10.5'
  sha1 '397d70213e653c6a503d64e95826c696dc6e099e'
  head 'https://github.com/defunkt/hub.git'

  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
      `#{bin}/hub ls-files -- bin`.chomp == 'bin/brew'
    end
  end
end