homebrew-core/Formula/htmlcleaner.rb

19 lines
571 B
Ruby
Raw Normal View History

require 'formula'
class Htmlcleaner < Formula
homepage 'http://htmlcleaner.sourceforge.net/index.php'
2014-04-18 22:21:54 +00:00
url 'https://downloads.sourceforge.net/project/htmlcleaner/htmlcleaner/htmlcleaner%20v2.8/htmlcleaner-2.8.zip'
sha1 'e4cbfebb306fc0baa95205ba91e452c961eebf85'
def install
libexec.install "htmlcleaner-#{version}.jar"
bin.write_jar_script libexec/"htmlcleaner-#{version}.jar", "htmlcleaner"
end
test do
path = testpath/"index.html"
path.write "<html>"
2014-05-04 19:12:41 +00:00
assert shell_output("#{bin}/htmlcleaner src=#{path}").include?("</html>")
end
end