From 266967faa2e91c47bda2d7a79521273aab29ab7a Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Wed, 14 Jan 2015 14:10:17 +0800 Subject: resty: add test and modernize Closes #35857. Signed-off-by: Mike McQuaid --- Library/Formula/resty.rb | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'Library') diff --git a/Library/Formula/resty.rb b/Library/Formula/resty.rb index bda05663e..d01b74e7f 100644 --- a/Library/Formula/resty.rb +++ b/Library/Formula/resty.rb @@ -1,17 +1,14 @@ -require 'formula' - class Resty < Formula - homepage 'https://github.com/micha/resty' - url 'https://github.com/micha/resty/archive/2.2.tar.gz' - sha1 'a4dc1b55cee034e72fcf8d58831c734e19f5869a' + 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' + head "https://github.com/micha/resty.git" # Don't take +x off these files - skip_clean 'bin' + skip_clean "bin" def install - system "mv README.md README" bin.install %w[pp resty pypp] end @@ -23,4 +20,8 @@ class Resty < Formula cpan JSON EOS end + + test do + pipe_output("#{bin}/resty https://api.github.com", "GET /orgs/homebrew/repos") + end end -- cgit v1.2.3