homebrew-core/Formula/jsonpp.rb
Mike McQuaid 7f000e41f8 formulae: don't use GitHub zip files.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-03-08 00:54:35 +00:00

25 lines
560 B
Ruby

require 'formula'
class Jsonpp < Formula
homepage 'http://jmhodges.github.io/jsonpp/'
url 'https://github.com/jmhodges/jsonpp/releases/v1.2.0/715/jsonpp-1.2.0-osx-x86_64.tar.gz'
version '1.2.0'
sha1 '422d5b2cefa92923d2fbef9afe1324d72134509e'
def install
bin.install 'jsonpp'
end
test do
IO.popen("#{bin}/jsonpp", "w+") do |pipe|
pipe.puts '{"foo":"bar","baz":"qux"}'
pipe.close_write
assert_equal <<-EOS.undent, pipe.read
{
"foo": "bar",
"baz": "qux"
}
EOS
end
end
end