29 lines
698 B
Ruby
29 lines
698 B
Ruby
class Vnu < Formula
|
|
desc "Nu Markup Checker: command-line and server HTML validator"
|
|
homepage "https://validator.github.io/validator/"
|
|
url "https://github.com/validator/validator/releases/download/17.2.0/vnu.jar_17.2.0.zip"
|
|
version "20170130"
|
|
sha256 "9e96616caf5ec720ab6db12ea0d9a9a3fd97128551e3d358e1bb7a50d4310aa6"
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
libexec.install "vnu.jar"
|
|
bin.write_jar_script libexec/"vnu.jar", "vnu"
|
|
end
|
|
|
|
test do
|
|
(testpath/"index.html").write <<-EOS.undent
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>hi</title>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|
|
EOS
|
|
system bin/"vnu", testpath/"index.html"
|
|
end
|
|
end
|