homebrew-core/Formula/git-plus.rb
ilovezfs df4e1b8742 git-plus 0.3.0
- formula style tweaks from poet
- switch from regex to string for the substring assert_match in the test

Closes #2807.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-07-08 12:55:16 -07:00

31 lines
967 B
Ruby

class GitPlus < Formula
desc "Git utilities: git multi, git relation, git old-branches, git recent"
homepage "https://github.com/tkrajina/git-plus"
url "https://github.com/tkrajina/git-plus/archive/v0.3.0.tar.gz"
sha256 "4b68dad52a1ca544d4fcede2c910adaddf9af5a852805ee7718278c40de71d51"
head "https://github.com/tkrajina/git-plus.git"
bottle :unneeded
depends_on :python if MacOS.version <= :snow_leopard
def install
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
system "python", *Language::Python.setup_install_args(libexec)
bin.install Dir[libexec/"bin/*"]
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
test do
mkdir "testme" do
system "git", "init"
touch "README"
system "git", "add", "README"
system "git", "commit", "-m", "testing"
rm "README"
end
assert_match "D README", shell_output("#{bin}/git-multi")
end
end