aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-cal.rb
blob: a0aec4a7c67f8a477b9022291b4258d1b5256d81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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