diff options
| -rw-r--r-- | Library/Formula/resty.rb | 17 |
1 files changed, 9 insertions, 8 deletions
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 |
