homebrew-core/Formula/git-quick-stats.rb
2020-01-07 13:10:27 +11: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.12.tar.gz"
sha256 "441ba87af3a3d304fe5aa9036100f47f103e10f8cf5e7f11e451f710712b6b1e"
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