require 'formula' class Ydcv < Formula homepage 'https://github.com/felixonmars/ydcv' url 'https://github.com/felixonmars/ydcv/archive/master.zip' version '0.0.1' head 'https://github.com/felixonmars/ydcv' def install bin.install "src/ydcv.py" => "ydcv" zsh_completion.install "contrib/zsh_completion" => "ydcv" end test do exit_code = system("ydcv --help > /dev/null") assert_equal true, exit_code end end