homebrew-core/Formula/shml.rb

22 lines
569 B
Ruby

class Shml < Formula
desc "Style Framework for The Terminal"
homepage "http://shml.xyz"
url "https://github.com/MaxCDN/shml/archive/1.0.4.tar.gz"
sha256 "583fefbbf2adf45d989b052696be0f20f695903878558a4d2e9f74255b91ed51"
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 "1.0.4", result
end
end
end