homebrew-core/Formula/aha.rb
Martin Mauch a62f921300 aha 0.4.7
Closes Homebrew/homebrew#26921.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-04 22:14:51 -08:00

20 lines
462 B
Ruby
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

require "formula"
class Aha < Formula
homepage "https://github.com/theZiz/aha"
url "https://github.com/theZiz/aha/archive/0.4.7.tar.gz"
sha1 "bbf861ea1a98aa72346c2822f1ec40941b84dd53"
def install
system "make"
bin.install "aha"
end
test do
IO.popen("#{bin}/aha", "w+") do |pipe|
pipe.write("rainpill")
pipe.close_write
assert_match /color:purple;">rain.*color:blue;">pill/, pipe.read
end
end
end