2013-02-02 18:23:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GitTracker < Formula
|
|
|
|
homepage 'https://github.com/stevenharman/git_tracker'
|
2014-03-26 14:22:13 +00:00
|
|
|
url 'https://github.com/stevenharman/git_tracker/archive/v1.6.2.tar.gz'
|
|
|
|
sha1 'fd0495f3b593b3fbec3104d83faace441893d570'
|
2013-02-02 18:23:59 +00:00
|
|
|
|
|
|
|
head 'https://github.com/stevenharman/git_tracker.git'
|
|
|
|
|
|
|
|
def install
|
|
|
|
rake 'standalone:install', "prefix=#{prefix}"
|
|
|
|
end
|
|
|
|
|
2013-03-26 15:51:05 +00:00
|
|
|
test do
|
|
|
|
require 'open3'
|
2013-08-12 19:03:45 +00:00
|
|
|
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"
|
2013-03-26 15:51:05 +00:00
|
|
|
end
|
2013-02-02 18:23:59 +00:00
|
|
|
end
|
|
|
|
end
|