homebrew-core/Formula/jsmin.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

16 lines
510 B
Ruby

class Jsmin < Formula
desc "Minify JavaScript code"
homepage "http://www.crockford.com/javascript/jsmin.html"
url "https://github.com/douglascrockford/JSMin/archive/1bf6ce5f74a9f8752ac7f5d115b8d7ccb31cfe1b.tar.gz"
version "2013-03-29"
sha256 "aae127bf7291a7b2592f36599e5ed6c6423eac7abe0cd5992f82d6d46fe9ed2d"
def install
system ENV.cc, "jsmin.c", "-o", "jsmin"
bin.install "jsmin"
end
test do
assert_equal "\nvar i=0;", pipe_output(bin/"jsmin", "var i = 0; // comment")
end
end