26 lines
1.0 KiB
Ruby
26 lines
1.0 KiB
Ruby
class Plow < Formula
|
|
desc "High-performance and real-time metrics displaying HTTP benchmarking tool"
|
|
homepage "https://github.com/six-ddc/plow"
|
|
url "https://github.com/six-ddc/plow/archive/refs/tags/v1.1.0.tar.gz"
|
|
sha256 "aa579bfa7fee552d84723b6f49d7851759bfd2ff15c9a5d0f216c11a838472a8"
|
|
license "Apache-2.0"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "eb13e15c3cb95c4e9ae36c498f5eafbbe2401bba7846e3eef7764e56927bafb2"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "35efcee910b6391bcb00a74e174bd2c7961742c75b7ce5d81cf739f5f8907e41"
|
|
sha256 cellar: :any_skip_relocation, catalina: "d30cae49b41472ed81c454b2e5ef2031e1e46307f8b838b4892fedd80c41d318"
|
|
sha256 cellar: :any_skip_relocation, mojave: "beb6ba83885124eb4ba8e2e4bb5bcaf8951bb574ef8d9b94c2c48307b92caff6"
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
system "go", "build", *std_go_args
|
|
end
|
|
|
|
test do
|
|
output = "2xx"
|
|
assert_match output.to_s, shell_output("#{bin}/plow -n 1 https://httpbin.org/get")
|
|
end
|
|
end
|