2019-12-24 17:11:31 +00:00
|
|
|
require "language/node"
|
|
|
|
|
|
|
|
class Whistle < Formula
|
|
|
|
desc "HTTP, HTTP2, HTTPS, Websocket debugging proxy"
|
|
|
|
homepage "https://github.com/avwo/whistle"
|
2019-12-29 09:34:27 +00:00
|
|
|
url "https://registry.npmjs.org/whistle/-/whistle-2.4.4.tgz"
|
|
|
|
sha256 "a1216eaec1c6e651cf26c5307d6a5938c978943e03b47c57aa32575e6a6cee53"
|
2019-12-24 17:11:31 +00:00
|
|
|
|
2019-12-25 16:39:21 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2019-12-29 15:53:06 +00:00
|
|
|
sha256 "91cb16e9dc79acfae70377f853d696f979dfce7f60ead8ba22c8e6bafa4524ec" => :catalina
|
|
|
|
sha256 "b593158ea53057116b0b31fd40aeb98c662f1bc3861209863db09838a3e063dc" => :mojave
|
|
|
|
sha256 "f84c0f7f05845c490b58e2d8bfca612400c9875b2e094a45b76ab47868526834" => :high_sierra
|
2019-12-25 16:39:21 +00:00
|
|
|
end
|
|
|
|
|
2019-12-24 17:11:31 +00:00
|
|
|
depends_on "node"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
|
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"package.json").write('{"name": "test"}')
|
|
|
|
system bin/"whistle", "start"
|
|
|
|
system bin/"whistle", "stop"
|
|
|
|
end
|
|
|
|
end
|