class Shml < Formula desc "Style Framework for The Terminal" homepage "http://shml.xyz" url "https://github.com/MaxCDN/shml/archive/1.1.0.tar.gz" sha256 "0f0634fe5dd043f5ff52946151584a59b5826acbb268c9d884a166c3196b8f4f" bottle :unneeded def install bin.install "shml.sh" bin.install_symlink bin/"shml.sh" => "shml" end test do ["shml", "shml.sh"].each do |cmd| result = shell_output("#{bin}/#{cmd} -v") result.force_encoding("UTF-8") if result.respond_to?(:force_encoding) assert_match version.to_s, result end end end