homebrew-core/Formula/git-quick-stats.rb
Igor Kapkov ff842f75dd
git-quick-stats 2.0.3
Closes #36693.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-02-04 14:42:58 +08:00

19 lines
631 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.3.tar.gz"
sha256 "bb918088d972b62a0b2cf09976016467c8758c47239d40f6adbd0c10d060d0df"
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