2014-04-16 11:58:13 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Hashpump < Formula
|
|
|
|
homepage "https://github.com/bwall/HashPump"
|
2014-06-21 20:22:54 +00:00
|
|
|
url "https://github.com/bwall/HashPump/archive/v1.1.0.tar.gz"
|
|
|
|
sha1 "610582b0e4c86bbcbe5620d4a3ad48e9c3046817"
|
2014-10-16 20:00:16 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "b205ab988f9d104af20fc395167a2fd101acc2fb" => :mavericks
|
|
|
|
sha1 "38feeea2fae40cdeadee93423cc32d564775f8b7" => :mountain_lion
|
|
|
|
sha1 "0b6068bb47267c3df84c9fd51656e2760fba1cd8" => :lion
|
|
|
|
end
|
|
|
|
|
2014-10-16 19:49:11 +00:00
|
|
|
revision 1
|
|
|
|
|
|
|
|
depends_on "openssl"
|
2014-04-16 11:58:13 +00:00
|
|
|
|
|
|
|
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
|