2015-08-23 16:23:43 +00:00
|
|
|
class Gor < Formula
|
|
|
|
desc "Real-time HTTP traffic replay tool written in Go"
|
2016-05-25 13:27:33 +00:00
|
|
|
homepage "https://gortool.com"
|
2016-08-10 12:15:55 +00:00
|
|
|
url "https://github.com/buger/gor.git",
|
2016-09-01 09:54:03 +00:00
|
|
|
:tag => "v0.15.1",
|
|
|
|
:revision => "967c380dc3ca1a96c6cbabd6296b0656a6546016"
|
2015-08-23 16:23:43 +00:00
|
|
|
head "https://github.com/buger/gor.git"
|
|
|
|
|
2015-08-25 20:07:31 +00:00
|
|
|
bottle do
|
2015-10-29 09:49:24 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-09-01 10:01:35 +00:00
|
|
|
sha256 "664cff81e41321a473a087aa0ca465fa8df7ddc6844c468c3445fe9fb76cb6e5" => :el_capitan
|
|
|
|
sha256 "07bfff5c49bdcd69bc145369d306a7b538b58586b4d6347639b92531b3074644" => :yosemite
|
|
|
|
sha256 "aebc9f938167cc563d674b7acaf0110cb359d854fb98689135ae9fd09be0648d" => :mavericks
|
2015-08-25 20:07:31 +00:00
|
|
|
end
|
|
|
|
|
2015-08-23 16:23:43 +00:00
|
|
|
depends_on "go" => :build
|
2016-05-25 13:27:33 +00:00
|
|
|
|
2015-08-23 16:23:43 +00:00
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
2016-08-10 12:15:55 +00:00
|
|
|
(buildpath/"src/github.com/buger/gor").install buildpath.children
|
|
|
|
cd "src/github.com/buger/gor" do
|
|
|
|
system "go", "build", "-o", bin/"gor", "-ldflags", "-X main.VERSION=#{version}"
|
|
|
|
prefix.install_metafiles
|
|
|
|
end
|
2015-08-23 16:23:43 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-10-29 09:44:40 +00:00
|
|
|
assert_match version.to_s, shell_output("#{bin}/gor", 1)
|
2015-08-23 16:23:43 +00:00
|
|
|
end
|
|
|
|
end
|