homebrew-core/Formula/git-plus.rb

40 lines
1.6 KiB
Ruby

class GitPlus < Formula
include Language::Python::Virtualenv
desc "Git utilities: git multi, git relation, git old-branches, git recent"
homepage "https://github.com/tkrajina/git-plus"
url "https://files.pythonhosted.org/packages/73/b5/6cf7f0513fd1ef42b5a3ac0e342b3c4176551f60ad17fc5dbe52329f2b58/git-plus-v0.4.6.tar.gz"
sha256 "bcf3a83a2730e8b6f5bc106db00b7b6be5df534cb9543ba7ecc506c535c5158b"
license "Apache-2.0"
revision 1
head "https://github.com/tkrajina/git-plus.git"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "e2a53a282b0e444cb0aca6173d8475b803b247b72462605574f28f62d2f7d9b9"
sha256 cellar: :any_skip_relocation, big_sur: "6fbeb0f79fb3149feec139360140b71dc8905336fe3e57979a5555542b14315d"
sha256 cellar: :any_skip_relocation, catalina: "77a2c33cfbcaa7eeebf0599197ef9865821df0a513c60f768586049c78795709"
sha256 cellar: :any_skip_relocation, mojave: "de4043e1cd948c93b60ba863ddc3ed42528e733263efb54f4e4c608cc6fcb148"
sha256 cellar: :any_skip_relocation, high_sierra: "774bf600193c1446a6097675f995ec808eada8f45d9b78f735121de23cd3d56c"
end
depends_on "python@3.9"
def install
virtualenv_install_with_resources
end
test do
mkdir "testme" do
system "git", "init"
system "git", "config", "user.email", "\"test@example.com\""
system "git", "config", "user.name", "\"Test\""
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