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>
This commit is contained in:
parent
9d489b9a5c
commit
df4e1b8742
1 changed files with 7 additions and 12 deletions
|
@ -1,8 +1,8 @@
|
|||
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.2.0.tar.gz"
|
||||
sha256 "b7ab54ad4079fab9f7ddef1bb0fb280eb25315c3da7750786fed4d43d2dd892f"
|
||||
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
|
||||
|
@ -10,16 +10,11 @@ class GitPlus < Formula
|
|||
depends_on :python if MacOS.version <= :snow_leopard
|
||||
|
||||
def install
|
||||
site_packages = libexec/"lib/python2.7/site-packages"
|
||||
libexec_bin = libexec/"bin"
|
||||
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
|
||||
system "python", *Language::Python.setup_install_args(libexec)
|
||||
|
||||
ENV.prepend_create_path "PYTHONPATH", site_packages
|
||||
|
||||
site_packages.install "gitutils.py"
|
||||
libexec_bin.install Dir["git-*"]
|
||||
|
||||
bin.install Dir[libexec_bin/"*"]
|
||||
bin.env_script_all_files libexec_bin, :PYTHONPATH => ENV["PYTHONPATH"]
|
||||
bin.install Dir[libexec/"bin/*"]
|
||||
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
||||
end
|
||||
|
||||
test do
|
||||
|
@ -31,6 +26,6 @@ class GitPlus < Formula
|
|||
rm "README"
|
||||
end
|
||||
|
||||
assert_match /D README/, shell_output("#{bin}/git-multi")
|
||||
assert_match "D README", shell_output("#{bin}/git-multi")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue