2017-03-26 18:09:25 +00:00
|
|
|
require "language/node"
|
|
|
|
|
|
|
|
class Alexjs < Formula
|
|
|
|
desc "Catch insensitive, inconsiderate writing"
|
|
|
|
homepage "http://alexjs.com"
|
2017-04-14 15:13:35 +00:00
|
|
|
url "https://github.com/wooorm/alex/archive/4.1.0.tar.gz"
|
|
|
|
sha256 "e2acbf03d260344a5dfb637835dd1009dd93a252a2376a97a29cd4dee660cb89"
|
2017-03-26 18:09:25 +00:00
|
|
|
|
2017-03-27 14:43:11 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "77742bd766ced4b5b967ae4e67fc90282757be55bb039aebaf3f6a69ddc0a53f" => :sierra
|
|
|
|
sha256 "b3fefe37d5abcafd84685c816bb4a6a8ad02ae2ad87f0d6c2692295c9c4a727a" => :el_capitan
|
|
|
|
sha256 "40aa9a3a1310165657ae47476c7593a08a7dbc90d133f1688505c9e7973144f0" => :yosemite
|
|
|
|
end
|
|
|
|
|
2017-03-26 18:09:25 +00:00
|
|
|
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
|