homebrew-core/Formula/git-quick-stats.rb

20 lines
627 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.9.tar.gz"
sha256 "af2a79be4650d0e99665cb559f06c94c74c8e44e6d192578e9cda6e4db9480e6"
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