homebrew-core/Formula/vnu.rb
Chuancong Gao 8a025e158d vnu: fix checksum
See https://github.com/validator/validator/issues/35.

Closes Homebrew/homebrew#36903.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-02-21 00:28:12 -05:00

27 lines
587 B
Ruby

class Vnu < Formula
homepage "https://validator.github.io/validator/"
url "https://github.com/validator/validator/releases/download/20150216/vnu-20150216.jar.zip"
sha1 "76806240e7f07d210e23e0dd96a06f6f2c5f0162"
version "20150216"
def install
libexec.install "vnu.jar"
bin.write_jar_script libexec/"vnu.jar", "vnu"
end
test do
path = testpath/"index.html"
path.write <<-EOS.undent
<!DOCTYPE html>
<html>
<head>
<title>hi</title>
</head>
<body>
</body>
</html>
EOS
system bin/"vnu", path
end
end