From 4055e6a433a5dc19eb30adc18bb18ed56817395e Mon Sep 17 00:00:00 2001 From: Joe Block Date: Tue, 24 Sep 2013 07:39:18 -0700 Subject: [PATCH] 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 --- Formula/git-cal.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Formula/git-cal.rb diff --git a/Formula/git-cal.rb b/Formula/git-cal.rb new file mode 100644 index 0000000000..a0aec4a7c6 --- /dev/null +++ b/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