homebrew-core/Formula/git-quick-stats.rb
2017-09-04 09:51:38 -07:00

19 lines
628 B
Ruby

class GitQuickStats < Formula
desc "Simple and efficient way to access statistics in git."
homepage "https://github.com/arzzen/git-quick-stats"
url "https://github.com/arzzen/git-quick-stats/archive/1.0.8.tar.gz"
sha256 "722b0ecebeea6075fec3de6f642746b20cf7371084f2ae8b4734165d46e80918"
bottle :unneeded
def install
bin.install "git-quick-stats"
end
test do
system "git", "init"
assert_match "All branches (sorted by most recent commit)",
shell_output("#{bin}/git-quick-stats branchesByDate")
assert_match /^Invalid argument/, shell_output("#{bin}/git-quick-stats command", 1)
end
end