homebrew-core/Formula/git-quick-stats.rb
2018-07-17 18:02:36 +01: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.10.tar.gz"
sha256 "b0053226caa7857097f63b560624922a5fa32caa3c27e4384317946a1153b951"
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