aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-cal.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/git-cal.rb')
-rw-r--r--Library/Formula/git-cal.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/git-cal.rb b/Library/Formula/git-cal.rb
new file mode 100644
index 000000000..a0aec4a7c
--- /dev/null
+++ b/Library/Formula/git-cal.rb
@@ -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