2016-10-27 21:53:56 +00:00
|
|
|
class Willgit < Formula
|
|
|
|
desc "William's miscellaneous git tools"
|
|
|
|
homepage "http://git-wt-commit.rubyforge.org"
|
|
|
|
url "https://github.com/DanielVartanov/willgit/archive/1.0.0.tar.gz"
|
|
|
|
sha256 "3bb99d6ec2614a90f40962311daf51f393b3d0abfdb0f9e0a14ba7340b33a2c8"
|
|
|
|
head "https://github.com/DanielVartanov/willgit.git"
|
|
|
|
|
|
|
|
bottle :unneeded
|
|
|
|
|
2016-10-30 20:47:32 +00:00
|
|
|
conflicts_with "git-utils",
|
|
|
|
:because => "both install a `git-rank-contributors` script"
|
|
|
|
|
2016-10-27 21:53:56 +00:00
|
|
|
def install
|
|
|
|
prefix.install "bin"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "git", "init"
|
|
|
|
(testpath/"README.md").write "# My Awesome Project"
|
|
|
|
system "git", "add", "README.md"
|
|
|
|
system "git", "commit", "-m", "init"
|
|
|
|
assert_equal "Local branch: master",
|
|
|
|
shell_output("git wtf").chomp
|
|
|
|
end
|
|
|
|
end
|