diff options
Diffstat (limited to 'Library/Formula/jsawk.rb')
| -rw-r--r-- | Library/Formula/jsawk.rb | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Library/Formula/jsawk.rb b/Library/Formula/jsawk.rb index e9bc531a9..84ec2a569 100644 --- a/Library/Formula/jsawk.rb +++ b/Library/Formula/jsawk.rb @@ -1,16 +1,19 @@ -require 'formula' - class Jsawk < Formula - homepage 'https://github.com/micha/jsawk' - url 'https://github.com/micha/jsawk/archive/1.4.tar.gz' - sha1 '4f2c962c8a5209764116457682985854400cbf24' + homepage "https://github.com/micha/jsawk" + url "https://github.com/micha/jsawk/archive/1.4.tar.gz" + sha1 "4f2c962c8a5209764116457682985854400cbf24" - head 'https://github.com/micha/jsawk.git' + head "https://github.com/micha/jsawk.git" - depends_on 'spidermonkey' + depends_on "spidermonkey" def install mv "README.markdown", "README" bin.install "jsawk" end + + test do + cmd = %(#{bin}/jsawk 'this.a = "foo"') + assert_equal %({"a":"foo"}\n), pipe_output(cmd, "{}") + end end |
