diff options
| author | Mathias Bynens | 2014-04-16 13:58:13 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-10 16:14:28 -0700 |
| commit | b9463fc099d96a5a513ccb4733b7e5754206ba6e (patch) | |
| tree | 79e078d625c1b749dad19dc5e05961a74f292531 /Library/Formula | |
| parent | bc9c705ece5e0b54ab683caf7883c20dc8f7c55d (diff) | |
| download | homebrew-b9463fc099d96a5a513ccb4733b7e5754206ba6e.tar.bz2 | |
hashpump: 1.0.2 (new formula)
Closes #28443.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/hashpump.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/hashpump.rb b/Library/Formula/hashpump.rb new file mode 100644 index 000000000..b965eb89c --- /dev/null +++ b/Library/Formula/hashpump.rb @@ -0,0 +1,23 @@ +require "formula" + +class Hashpump < Formula + homepage "https://github.com/bwall/HashPump" + url "https://github.com/bwall/HashPump/archive/v1.0.2.tar.gz" + sha1 "5496ee37298c65b4c72139a039e78e4ff3a060b2" + + def install + bin.mkpath + system "make", "INSTALLLOCATION=#{bin}", + "CXX=#{ENV.cxx}", + "install" + end + + test do + output = `#{bin}/hashpump -s '6d5f807e23db210bc254a28be2d6759a0f5f5d99' \\ + -d 'count=10&lat=37.351&user_id=1&long=-119.827&waffle=eggo' \\ + -a '&waffle=liege' -k 14` + assert output.include? "0e41270260895979317fff3898ab85668953aaa2" + assert output.include? "&waffle=liege" + assert_equal 0, $?.exitstatus + end +end |
