diff options
| author | Joe Block | 2013-09-24 07:39:18 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-16 08:00:17 +0100 |
| commit | 29745d36117667c430ab03f753528dbf1f9a93ba (patch) | |
| tree | 8595df016f5908fb6bde9a7cd73dbd77aaa8ab88 /Library/Formula/git-cal.rb | |
| parent | 55f130397c6a04ed4b4d3552a8128193f840d0a3 (diff) | |
| download | homebrew-29745d36117667c430ab03f753528dbf1f9a93ba.tar.bz2 | |
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 #22785.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/git-cal.rb')
| -rw-r--r-- | Library/Formula/git-cal.rb | 17 |
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 |
