homebrew-core/Formula/aha.rb

21 lines
464 B
Ruby
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

require "formula"
class Aha < Formula
homepage "https://github.com/theZiz/aha"
url "https://github.com/theZiz/aha/archive/0.4.7.2.tar.gz"
sha1 "09933fddb02b3129a690eb3d7d140edb97ac0627"
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