fork-cleaner 1.3.0 (new formula)

Closes #27805.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Mike McQuaid 2018-05-13 10:15:37 -04:00 committed by ilovezfs
parent 656473531b
commit b6edc8d78a

27
Formula/fork-cleaner.rb Normal file
View file

@ -0,0 +1,27 @@
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/v1.3.0.tar.gz"
sha256 "6cb97ed035cce26505f8d48406fb57029f629a6df19bfcfe44c8f3d7f60d1008"
revision 1
depends_on "dep" => :build
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
dir = buildpath/"src/github.com/caarlos0/fork-cleaner"
dir.install buildpath.children
cd dir do
system "dep", "ensure"
system "make"
bin.install "fork-cleaner"
prefix.install_metafiles
end
end
test do
output = shell_output("#{bin}/fork-cleaner 2>&1", 1)
assert_match "missing github token", output
end
end