ccat 0.1.0 (new formula)

Closes Homebrew/homebrew#39646.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Jingwen Owen Ou 2015-05-11 11:36:20 -07:00 committed by Mike McQuaid
parent d95968a750
commit c63829d2c7

20
Formula/ccat.rb Normal file
View file

@ -0,0 +1,20 @@
class Ccat < Formula
homepage "https://github.com/jingweno/ccat"
url "https://github.com/jingweno/ccat/archive/v0.1.0.tar.gz"
sha256 "437c7582ab39c8a1fb5e97ae9569e0096c98209a2ebb11ca67a7f9246b129c7c"
depends_on "go" => :build
def install
system "./script/build"
bin.install "ccat"
end
test do
(testpath/"test.txt").write <<-EOS.undent
I am a colourful cat
EOS
assert_match(/I am a colourful cat/, shell_output("#{bin}/ccat test.txt"))
end
end