require 'formula' class Gist < Formula homepage 'https://github.com/defunkt/gist' url 'https://github.com/defunkt/gist/tarball/v3.1.0' sha1 '3271be7d41ac545afd17772652dda7adc7c90d7a' head 'https://github.com/defunkt/gist.git' def install rake "install", "prefix=#{prefix}" end test do system "#{bin}/gist", '--version' end end