homebrew-core/Formula/git-tracker.rb

35 lines
1.8 KiB
Ruby

class GitTracker < Formula
desc "Integrate Pivotal Tracker into your Git workflow"
homepage "https://github.com/stevenharman/git_tracker"
url "https://github.com/stevenharman/git_tracker/archive/v2.0.0.tar.gz"
sha256 "ec0a8d6dd056b8ae061d9ada08f1cc2db087e13aaecf4e0d150c1808e0250504"
license "MIT"
head "https://github.com/stevenharman/git_tracker.git", branch: "main"
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_ventura: "c25f12523b2b8de0affa72363cd84c3cc3c8947bfea4765fa47382a1b5185b39"
sha256 cellar: :any_skip_relocation, arm64_monterey: "c25f12523b2b8de0affa72363cd84c3cc3c8947bfea4765fa47382a1b5185b39"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "c25f12523b2b8de0affa72363cd84c3cc3c8947bfea4765fa47382a1b5185b39"
sha256 cellar: :any_skip_relocation, ventura: "c25f12523b2b8de0affa72363cd84c3cc3c8947bfea4765fa47382a1b5185b39"
sha256 cellar: :any_skip_relocation, monterey: "c25f12523b2b8de0affa72363cd84c3cc3c8947bfea4765fa47382a1b5185b39"
sha256 cellar: :any_skip_relocation, big_sur: "c25f12523b2b8de0affa72363cd84c3cc3c8947bfea4765fa47382a1b5185b39"
sha256 cellar: :any_skip_relocation, catalina: "c25f12523b2b8de0affa72363cd84c3cc3c8947bfea4765fa47382a1b5185b39"
sha256 cellar: :any_skip_relocation, x86_64_linux: "eaaca7ee99419aa06d95fdbb70c28f435b4f2e596c28124bf80b105c89ffbe9b"
end
uses_from_macos "ruby"
def install
system "rake", "standalone:install", "prefix=#{prefix}"
# Replace `ruby` cellar path in shebang
inreplace bin/"git-tracker", Formula["ruby"].prefix.realpath, Formula["ruby"].opt_prefix unless OS.mac?
end
test do
output = shell_output("#{bin}/git-tracker help")
assert_match(/git-tracker \d+(\.\d+)* is installed\./, output)
end
end