Merge pull request #207020 from Homebrew/bump-qpdf-11.10.0
[Homebrew/homebrew-core.git] / Formula / w / willgit.rb
blob674beac4858ada3b3cd1f18fc2cebb65a0f52891
1 class Willgit < Formula
2   desc "William's miscellaneous git tools"
3   homepage "https://github.com/DanielVartanov/willgit"
4   url "https://github.com/DanielVartanov/willgit/archive/refs/tags/1.0.0.tar.gz"
5   sha256 "3bb99d6ec2614a90f40962311daf51f393b3d0abfdb0f9e0a14ba7340b33a2c8"
6   license "MIT"
7   head "https://github.com/DanielVartanov/willgit.git", branch: "master"
9   bottle do
10     rebuild 1
11     sha256 cellar: :any_skip_relocation, all: "50393beba0d169140488b806a2b4635dbd02a81f93bddb654e367f040b57f570"
12   end
14   uses_from_macos "ruby"
16   def install
17     prefix.install "bin"
18   end
20   test do
21     system "git", "init", "--initial-branch=main"
22     (testpath/"README.md").write "# BrewTest"
23     system "git", "add", "README.md"
24     system "git", "commit", "-m", "init"
25     assert_equal "Local branch: main", shell_output("git wtf").chomp
26   end
27 end