2014-02-22 18:13:26 +00:00
|
|
|
|
class Aha < Formula
|
|
|
|
|
homepage "https://github.com/theZiz/aha"
|
2015-01-26 23:32:22 +00:00
|
|
|
|
url "https://github.com/theZiz/aha/archive/0.4.8.tar.gz"
|
|
|
|
|
sha1 "45d91e1cda8663e8bf0c5fa8b94e4d2290aa9895"
|
2014-02-22 18:13:26 +00:00
|
|
|
|
|
2014-11-03 01:05:41 +00:00
|
|
|
|
bottle do
|
|
|
|
|
cellar :any
|
2015-01-26 23:52:30 +00:00
|
|
|
|
sha1 "93856bbcf2cd6b169f7a21d9b1a242c0bc031c7e" => :yosemite
|
|
|
|
|
sha1 "80a16f10a5c7417916f64e0df12b072baf29ba03" => :mavericks
|
|
|
|
|
sha1 "d756f3be34861bc510e3182cc406e099d857bdf9" => :mountain_lion
|
2014-11-03 01:05:41 +00:00
|
|
|
|
end
|
|
|
|
|
|
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
|