nvm 0.31.0

Closes Homebrew/homebrew#49495.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Lasse Bang Mikkelsen 2016-02-24 20:17:28 +01:00 committed by Dominyk Tiller
parent 9d90bfc38a
commit 7a0d73b72c

View file

@ -1,8 +1,8 @@
class Nvm < Formula
desc "Manage multiple Node.js versions"
homepage "https://github.com/creationix/nvm"
url "https://github.com/creationix/nvm/archive/v0.30.1.tar.gz"
sha256 "c3f063041407845ab4aa4ced6468084f8f63fb96fc8d904f66464e02c0867c5a"
url "https://github.com/creationix/nvm/archive/v0.31.0.tar.gz"
sha256 "5f9bc1c89c70e852f6bc2688389e6b9822ad851250d25d0910d05fa88b842540"
head "https://github.com/creationix/nvm.git"
bottle :unneeded
@ -36,9 +36,9 @@ class Nvm < Formula
end
test do
output = pipe_output("#{prefix}/nvm-exec 2>&1")
output = pipe_output("NODE_VERSION=homebrewtest #{prefix}/nvm-exec 2>&1")
assert_no_match /No such file or directory/, output
assert_no_match /nvm: command not found/, output
assert_match /Node Version Manager/, output
assert_match /N\/A: version \"homebrewtest\" is not yet installed/, output
end
end