homebrew-core/Formula/resty.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

28 lines
741 B
Ruby

class Resty < Formula
desc "Command-line REST client that can be used in pipelines"
homepage "https://github.com/micha/resty"
url "https://github.com/micha/resty/archive/2.2.tar.gz"
sha256 "a6961e16f1489ffa25bf9f2d8b38b9599c008d49267e32adf93f4f87184d4857"
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