2014-02-22 18:13:26 +00:00
|
|
|
|
require "formula"
|
|
|
|
|
|
|
|
|
|
class Aha < Formula
|
|
|
|
|
homepage "https://github.com/theZiz/aha"
|
2014-06-21 20:21:35 +00:00
|
|
|
|
url "https://github.com/theZiz/aha/archive/0.4.7.2.tar.gz"
|
|
|
|
|
sha1 "09933fddb02b3129a690eb3d7d140edb97ac0627"
|
2014-02-22 18:13:26 +00:00
|
|
|
|
|
|
|
|
|
def install
|
|
|
|
|
system "make"
|
|
|
|
|
bin.install "aha"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test do
|
2014-05-04 19:12:41 +00:00
|
|
|
|
out = pipe_output(bin/"aha", "[35mrain[34mpill[00m")
|
|
|
|
|
assert_match /color:purple;">rain.*color:blue;">pill/, out
|
2014-02-22 18:13:26 +00:00
|
|
|
|
end
|
|
|
|
|
end
|