Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Formula/node.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Node < Formula
desc "Platform built on V8 to build network applications"
homepage "https://nodejs.org/"
url "https://nodejs.org/dist/v8.8.1/node-v8.8.1.tar.xz"
sha256 "5ce2c47ab779992db49942f757a01cc5131db5cef4e0dd270e48151b0887b57a"
url "https://nodejs.org/dist/v8.9.0/node-v8.9.0.tar.xz"
sha256 "ae8258f89e127a76d4b4aff6fdb8dc395b7da0069cba054b913dfc36b3c91189"
head "https://github.com/nodejs/node.git"

bottle do
Expand Down Expand Up @@ -35,8 +35,8 @@ class Node < Formula
# We track major/minor from upstream Node releases.
# We will accept *important* npm patch releases when necessary.
resource "npm" do
url "https://registry.npmjs.org/npm/-/npm-5.4.2.tgz"
sha256 "04dc5f87b1079d59d51404d4b4c4aacbe385807a33bd15a8f2da2fabe27bf443"
url "https://registry.npmjs.org/npm/-/npm-5.5.1.tgz"
sha256 "b8b9afb0bb6211a289f969f66ba184ca5bc83abf6a570e0853ea5185073dca6f"
end

def install
Expand Down Expand Up @@ -144,7 +144,7 @@ def caveats
system "#{HOMEBREW_PREFIX}/bin/npm", *npm_args, "install", "bignum" unless head?
assert_predicate HOMEBREW_PREFIX/"bin/npx", :exist?, "npx must exist"
assert_predicate HOMEBREW_PREFIX/"bin/npx", :executable?, "npx must be executable"
assert_match "< hello >", shell_output("#{HOMEBREW_PREFIX}/bin/npx --cache=#{HOMEBREW_CACHE}/npm_cache cowsay hello")
assert_match "< hello >", shell_output("#{HOMEBREW_PREFIX}/bin/npx cowsay hello")
end
end
end
6 changes: 3 additions & 3 deletions Formula/node@4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class NodeAT4 < Formula

# Keep in sync with main node formula
resource "npm" do
url "https://registry.npmjs.org/npm/-/npm-5.4.2.tgz"
sha256 "04dc5f87b1079d59d51404d4b4c4aacbe385807a33bd15a8f2da2fabe27bf443"
url "https://registry.npmjs.org/npm/-/npm-5.5.1.tgz"
sha256 "b8b9afb0bb6211a289f969f66ba184ca5bc83abf6a570e0853ea5185073dca6f"
end

resource "icu4c" do
Expand Down Expand Up @@ -145,7 +145,7 @@ def caveats
system "#{HOMEBREW_PREFIX}/bin/npm", *npm_args, "install", "bignum" unless head?
assert_predicate HOMEBREW_PREFIX/"bin/npx", :exist?, "npx must exist"
assert_predicate HOMEBREW_PREFIX/"bin/npx", :executable?, "npx must be executable"
assert_match "< hello >", shell_output("#{HOMEBREW_PREFIX}/bin/npx --cache=#{HOMEBREW_CACHE}/npm_cache cowsay hello")
assert_match "< hello >", shell_output("#{HOMEBREW_PREFIX}/bin/npx cowsay hello")
end
end
end
6 changes: 3 additions & 3 deletions Formula/node@6.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class NodeAT6 < Formula

# Keep in sync with main node formula
resource "npm" do
url "https://registry.npmjs.org/npm/-/npm-5.4.2.tgz"
sha256 "04dc5f87b1079d59d51404d4b4c4aacbe385807a33bd15a8f2da2fabe27bf443"
url "https://registry.npmjs.org/npm/-/npm-5.5.1.tgz"
sha256 "b8b9afb0bb6211a289f969f66ba184ca5bc83abf6a570e0853ea5185073dca6f"
end

resource "icu4c" do
Expand Down Expand Up @@ -166,7 +166,7 @@ def caveats
system "#{HOMEBREW_PREFIX}/bin/npm", *npm_args, "install", "bignum" unless head?
assert_predicate HOMEBREW_PREFIX/"bin/npx", :exist?, "npx must exist"
assert_predicate HOMEBREW_PREFIX/"bin/npx", :executable?, "npx must be executable"
assert_match "< hello >", shell_output("#{HOMEBREW_PREFIX}/bin/npx --cache=#{HOMEBREW_CACHE}/npm_cache cowsay hello")
assert_match "< hello >", shell_output("#{HOMEBREW_PREFIX}/bin/npx cowsay hello")
end
end
end