git-cal 0.9 (new formula)

git-cal is a simple script to view a commits calendar for a git
repository (similar to github contributions calendar) on the
command line.

Closes Homebrew/homebrew#22785.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Joe Block 2013-09-24 07:39:18 -07:00 committed by Mike McQuaid
parent 57247db6e0
commit 4055e6a433

17
Formula/git-cal.rb Normal file
View file

@ -0,0 +1,17 @@
require 'formula'
class GitCal < Formula
homepage 'https://github.com/k4rthik/git-cal'
url 'https://github.com/k4rthik/git-cal/archive/v0.9.tar.gz'
sha1 'dd4027e367382a8593cab4212d2c7882a7b37680'
def install
bin.install 'git-cal'
end
test do
# git-cal fails when run outside of a git repo, so
# switch to #{bin} before testing it.
system "cd #{bin}; #{bin}/git-cal"
end
end