blob: d01b74e7f46fad5a768e802107088092d94fa40e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
class Resty < Formula
homepage "https://github.com/micha/resty"
url "https://github.com/micha/resty/archive/2.2.tar.gz"
sha1 "a4dc1b55cee034e72fcf8d58831c734e19f5869a"
head "https://github.com/micha/resty.git"
# Don't take +x off these files
skip_clean "bin"
def install
bin.install %w[pp resty pypp]
end
def caveats; <<-EOS.undent
The Python printy-printer (pypp) uses the json module, available in
Python 2.6 and newer.
The Perl printy-printer (pp) depends on JSON from CPAN:
cpan JSON
EOS
end
test do
pipe_output("#{bin}/resty https://api.github.com", "GET /orgs/homebrew/repos")
end
end
|