blob: 84ec2a5694ae0fe505a8d0489ec0f350c3a8d570 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  | 
class Jsawk < Formula
  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"
  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
  |