homebrew-core/Formula/git-tracker.rb
Steven Harman 3ffd221843 git-tracker 1.6.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-13 21:17:16 -07:00

21 lines
629 B
Ruby

require 'formula'
class GitTracker < Formula
homepage 'https://github.com/stevenharman/git_tracker'
url 'https://github.com/stevenharman/git_tracker/archive/v1.6.1.tar.gz'
sha1 'e1ea5ce789100a3e197dfcfb8b4d697d70018237'
head 'https://github.com/stevenharman/git_tracker.git'
def install
rake 'standalone:install', "prefix=#{prefix}"
end
test do
require 'open3'
Open3.popen3("#{bin}/git-tracker", "help") do |_, stdout, _|
install_message = /\Agit-tracker \d+(\.\d+)* is installed\.\z/
assert install_message.match(stdout.readline.strip), "git-tracker is not installed"
end
end
end