21 lines
647 B
Ruby
21 lines
647 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.1.4.tar.gz"
|
|
sha256 "3c572463916aab75d5d0c5c0edbbbb61033d355f88081e58a2cb9ac8bc25fe0c"
|
|
license "MIT"
|
|
|
|
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
|