2014-02-22 18:13:26 +00:00
|
|
|
|
require "formula"
|
|
|
|
|
|
|
|
|
|
class Aha < Formula
|
|
|
|
|
homepage "https://github.com/theZiz/aha"
|
2014-11-03 00:56:30 +00:00
|
|
|
|
url "https://github.com/theZiz/aha/archive/0.4.7.3.tar.gz"
|
|
|
|
|
sha1 "cc158029efb9dcf138fa20696f07f15ab785b035"
|
2014-02-22 18:13:26 +00:00
|
|
|
|
|
2014-11-03 01:05:41 +00:00
|
|
|
|
bottle do
|
|
|
|
|
cellar :any
|
|
|
|
|
sha1 "58fb4e7cd5a7c4bf18aded8d8d8ab16ce65fae1e" => :yosemite
|
|
|
|
|
sha1 "a2dd6ea63dbe26867c6cbe51d998fe1a09c7692e" => :mavericks
|
|
|
|
|
sha1 "9f3de31efaa60c4302c10a30a2e4bcd7a50f7af8" => :mountain_lion
|
|
|
|
|
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
|