class Jshon < Formula desc "Parse, read, and create JSON from the shell" homepage "http://kmkeen.com/jshon/" url "https://github.com/keenerd/jshon/archive/20131105.tar.gz" sha256 "28420f6f02c6b762732898692cc0b0795cfe1a59fbfb24e67b80f332cf6d4fa2" bottle do cellar :any sha256 "3215b76a79af85c6ae21b7de4e2eff0eb83098c0c5e1ae5b8c870d912498ed13" => :sierra sha256 "bab45017500667c7f8cf3b73c513f043cd04da04610cb2dc8a117ad5c9a5b99a" => :el_capitan sha256 "a97e9310af44fae5cdd60a0bcbae2bc0190c4d773d6290db3b5e970cd9999395" => :yosemite end depends_on "jansson" def install system "make" bin.install "jshon" man1.install "jshon.1" end test do assert_equal "3", pipe_output("#{bin}/jshon -l", "[true,false,null]").strip end end