Skip to content

Instantly share code, notes, and snippets.

@paulhammond
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulhammond/9441506 to your computer and use it in GitHub Desktop.
Save paulhammond/9441506 to your computer and use it in GitHub Desktop.
Homebrew formula for jp
require 'formula'
class Jp < Formula
homepage 'http://www.paulhammond.org/jp/'
url 'https://github.com/paulhammond/jp/releases/download/v0.2/mac.tgz'
version '0.2'
sha1 '65e5cb43af3a7f4e1567914c53b764aca204714c'
def install
bin.install 'jp'
end
test do
`echo '{"foo": "bar" }' | jp -compact - ` == '{"foo":"bar"}'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment