require 'formula' class Ghi < Formula homepage 'https://github.com/stephencelis/ghi' url 'https://github.com/stephencelis/ghi/archive/0.9.0.20131120.tar.gz' sha1 '7d1b245f22f78338ec3c5d1696af80b1437c3c7a' def install bin.install "ghi" man1.install "man/ghi.1" end test do system "#{bin}/ghi", "--version" end end