alexjs 4.0.1 (new formula)

This catches insensitive, inconsiderate writing. It’s available through
NPM but we package other things that are and this is sufficiently
useful to non-Javascript folks that it makes sense to add.

Closes #11606.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Mike McQuaid 2017-03-26 19:09:25 +01:00 committed by FX Coudert
parent b75573d032
commit e7c269bba1

20
Formula/alexjs.rb Normal file
View file

@ -0,0 +1,20 @@
require "language/node"
class Alexjs < Formula
desc "Catch insensitive, inconsiderate writing"
homepage "http://alexjs.com"
url "https://github.com/wooorm/alex/archive/4.0.1.tar.gz"
sha256 "85786f7e5a89b2ee77c54a57275723046309933639f96ab3174e9366c7c37675"
depends_on "node"
def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
bin.install_symlink Dir["#{libexec}/bin/*"]
end
test do
(testpath/"test.txt").write "garbageman"
assert_match "garbage collector", shell_output("#{bin}/alex test.txt 2>&1", 1)
end
end