2018-11-13 05:50:39 +00:00
|
|
|
require "language/node"
|
|
|
|
|
|
|
|
class Fx < Formula
|
|
|
|
desc "Command-line JSON processing tool"
|
|
|
|
homepage "https://github.com/antonmedv/fx"
|
2019-02-09 16:53:50 +00:00
|
|
|
url "https://registry.npmjs.org/fx/-/fx-11.1.0.tgz"
|
|
|
|
sha256 "1751d347b1d252abb1977f46b8347cb7f257a776f81d912e15f70fc68ebf320c"
|
2018-11-13 05:50:39 +00:00
|
|
|
|
2018-11-13 07:41:50 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2019-02-09 17:01:13 +00:00
|
|
|
sha256 "7ec14c7dcfd4a2243e42285ff62e6f2aaf1a798af8bbc3528454e7e39d2d17d4" => :mojave
|
|
|
|
sha256 "308b9a104d108613b66901d2437c7d33923ae5e397a89289e109b155a73cdd81" => :high_sierra
|
|
|
|
sha256 "f0e50d1e836fe0336806d93d229f507dee0c923b18284c5630c666e15f270ba4" => :sierra
|
2018-11-13 07:41:50 +00:00
|
|
|
end
|
|
|
|
|
2018-11-13 05:50:39 +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
|
|
|
|
assert_match "bar", shell_output("echo '{\"foo\": \"bar\"}' #{bin}/fx .foo")
|
|
|
|
end
|
|
|
|
end
|