homebrew-core/Formula/jshon.rb

20 lines
463 B
Ruby
Raw Normal View History

class Jshon < Formula
desc "Parse, read, and create JSON from the shell"
homepage "http://kmkeen.com/jshon/"
url "http://kmkeen.com/jshon/jshon.tar.gz"
version "8"
sha256 "bb8ffdbda89a24f15d23af06d23fc4a9a4319503eb631cc64a5eb4c25afd45fb"
depends_on "jansson"
def install
system "make"
bin.install "jshon"
man1.install "jshon.1"
end
2013-03-26 15:45:52 +00:00
test do
2014-05-04 19:12:41 +00:00
assert_equal "3", pipe_output("#{bin}/jshon -l", "[true,false,null]").strip
end
end