diff options
| author | Xu Cheng | 2015-01-14 14:10:17 +0800 | 
|---|---|---|
| committer | Mike McQuaid | 2015-01-14 12:32:35 +0000 | 
| commit | 266967faa2e91c47bda2d7a79521273aab29ab7a (patch) | |
| tree | b53ead59ca49125e028fc05bf57b82a739365017 /Library/Formula/resty.rb | |
| parent | 6d880e3558d289326a38f1b2add374c2210a0024 (diff) | |
| download | homebrew-266967faa2e91c47bda2d7a79521273aab29ab7a.tar.bz2 | |
resty: add test and modernize
Closes #35857.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/resty.rb')
| -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  | 
