homebrew-core/Formula/shml.rb
2018-04-19 00:10:04 -07:00

21 lines
574 B
Ruby

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