homebrew-core/Formula/git-quick-stats.rb
2019-10-29 11:18:00 -04:00

19 lines
632 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/2.0.11.tar.gz"
sha256 "7d8a4f01733aa32e02f070d8e594a08e5eea894d22801b236d22bea688b75582"
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 --branches-by-date")
assert_match /^Invalid argument/, shell_output("#{bin}/git-quick-stats command", 1)
end
end