homebrew-core/Formula/gist.rb

30 lines
1.4 KiB
Ruby

class Gist < Formula
desc "Command-line utility for uploading Gists"
homepage "https://github.com/defunkt/gist"
url "https://github.com/defunkt/gist/archive/v6.0.0.tar.gz"
sha256 "ddfb33c039f8825506830448a658aa22685fc0c25dbe6d0240490982c4721812"
license "MIT"
head "https://github.com/defunkt/gist.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "4f3d176c1e7f99c3d702bd439fd7f0c86a8a5b57e82d4564cfa7df7a9773e1fb"
sha256 cellar: :any_skip_relocation, big_sur: "3df0b9c1971dc59b1ccd20dd0c1516dd8ba46a0fb58ecaa5b6c0bf9386c69c7a"
sha256 cellar: :any_skip_relocation, catalina: "1d756e91ae99001381dda127f1315af4363cb158e323d83c72f466a5ff7c3e36"
sha256 cellar: :any_skip_relocation, mojave: "af69b6fdaf48f811b2eb1789febe49677d74375da1e4b118b7753ff783f6ce0c"
sha256 cellar: :any_skip_relocation, high_sierra: "28f8947a2912459cc79536eed7cbc2af958c9282f31990741f2fd0f32fffa70a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "1498973dae05c765735c2670f0af06c4c055507a249d55831c7d2b3013469e37"
sha256 cellar: :any_skip_relocation, all: "1498973dae05c765735c2670f0af06c4c055507a249d55831c7d2b3013469e37"
end
uses_from_macos "ruby", since: :high_sierra
def install
system "rake", "install", "prefix=#{prefix}"
end
test do
output = pipe_output("#{bin}/gist", "homebrew")
assert_match "GitHub now requires credentials", output
end
end