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