33 lines
1.7 KiB
Ruby
33 lines
1.7 KiB
Ruby
class ForkCleaner < Formula
|
|
desc "Cleans up old and inactive forks on your GitHub account"
|
|
homepage "https://github.com/caarlos0/fork-cleaner"
|
|
url "https://github.com/caarlos0/fork-cleaner/archive/v2.2.1.tar.gz"
|
|
sha256 "24397ec0ad89738aee48b77e80033a2e763941e67e67b673b6ff86ab04367283"
|
|
license "MIT"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_ventura: "3bde0e2723b9702064f844e1041af6bb5817461d070279349f974946b93b3d82"
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "7bb9884000c308e93182a1a3fd85f5763085e2dcfce62a33ae123bc06fdda42d"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "83f76a38e1962eeb871e00a3171791e70af5f3f0ab5d134fa6437b875f577bc6"
|
|
sha256 cellar: :any_skip_relocation, ventura: "f4311b35b368af916f35d4f5536a803d240847b1ee09c0c0cbbfb2257e0c7458"
|
|
sha256 cellar: :any_skip_relocation, monterey: "fadca52e9366303de45eb299a8d79b7032d77216eccae4a575dc866c5be7ba35"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "4d89ad868b65bb6375a39376ff4470e435df3250d5b6295d7c27040814bf9876"
|
|
sha256 cellar: :any_skip_relocation, catalina: "5f369eaafb9f81888458504d90b0cb5a3f6f822c3617168031c183310350a579"
|
|
sha256 cellar: :any_skip_relocation, mojave: "48a456d3a6483c5b4b5200c5e08d2e3093ae7dc4adf265d56042a80f35f19da3"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "c4a4d8ca76c6c6f33697a07a3486f9518f782c6b841789fb8e641ee0edf204c0"
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
system "make"
|
|
bin.install "fork-cleaner"
|
|
prefix.install_metafiles
|
|
end
|
|
|
|
test do
|
|
output = shell_output("#{bin}/fork-cleaner 2>&1", 1)
|
|
assert_match "missing github token", output
|
|
end
|
|
end
|