From 0e7534d5c5e724671edc564956d14bd9fe622991 Mon Sep 17 00:00:00 2001 From: Christian Moritz Date: Tue, 12 Apr 2016 15:58:05 +0200 Subject: [PATCH] autocode: use Language::Node --- Formula/autocode.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Formula/autocode.rb b/Formula/autocode.rb index e0e90306da..27fbe1b815 100644 --- a/Formula/autocode.rb +++ b/Formula/autocode.rb @@ -1,8 +1,10 @@ +require "language/node" + class Autocode < Formula desc "Code automation for every language, library and framework" homepage "https://autocode.run" - url "https://github.com/ctate/autocode/archive/v1.3.1.tar.gz" - sha256 "a263353a3ff63bd0cf7606335e453f40caa76abd783957ac4feb8b793f1751bf" + url "https://registry.npmjs.org/autocode/-/autocode-1.3.1.tgz" + sha256 "952364766e645d4ddae30f9d6cc106fdb74d05afc4028066f75eeeb17c4b0247" bottle do cellar :any_skip_relocation @@ -14,9 +16,7 @@ class Autocode < Formula depends_on "node" def install - ENV.prepend_path "PATH", "#{Formula["node"].opt_libexec}/npm/bin" - system "npm", "install" - libexec.install Dir["*", ".autocode"] + system "npm", "install", *Language::Node.std_npm_install_args(libexec) bin.install_symlink Dir["#{libexec}/bin/*"] end