LanguageModuleRequirement: remove node support
This commit is contained in:
parent
1ad2aeef86
commit
36cef3c974
@ -18,7 +18,7 @@ require "set"
|
||||
class DependencyCollector
|
||||
# Define the languages that we can handle as external dependencies.
|
||||
LANGUAGE_MODULES = Set[
|
||||
:jruby, :lua, :node, :ocaml, :perl, :python, :python3, :ruby
|
||||
:jruby, :lua, :ocaml, :perl, :python, :python3, :ruby
|
||||
].freeze
|
||||
|
||||
CACHE = {}
|
||||
|
||||
@ -24,7 +24,6 @@ class LanguageModuleRequirement < Requirement
|
||||
when :jruby then %W[/usr/bin/env jruby -rubygems -e require\ '#{@import_name}']
|
||||
when :lua then %W[/usr/bin/env luarocks-5.2 show #{@import_name}]
|
||||
when :lua51 then %W[/usr/bin/env luarocks-5.1 show #{@import_name}]
|
||||
when :node then %W[/usr/bin/env node -e require('#{@import_name}');]
|
||||
when :ocaml then %W[/usr/bin/env opam list --installed #{@import_name}]
|
||||
when :perl then %W[/usr/bin/env perl -e use\ #{@import_name}]
|
||||
when :python then %W[/usr/bin/env python -c import\ #{@import_name}]
|
||||
@ -38,7 +37,6 @@ class LanguageModuleRequirement < Requirement
|
||||
when :jruby then "jruby -S gem install"
|
||||
when :lua then "luarocks-5.2 install"
|
||||
when :lua51 then "luarocks-5.1 install"
|
||||
when :node then "npm install"
|
||||
when :ocaml then "opam install"
|
||||
when :perl then "cpan -i"
|
||||
when :python then "pip install"
|
||||
|
||||
@ -50,14 +50,4 @@ class LanguageModuleRequirementTests < Homebrew::TestCase
|
||||
def test_good_ruby_deps
|
||||
assert_deps_pass "date" => :ruby
|
||||
end
|
||||
|
||||
if which("node")
|
||||
def test_bad_node_deps
|
||||
assert_deps_fail "notapackage" => :node
|
||||
end
|
||||
|
||||
def test_good_node_deps
|
||||
assert_deps_pass "util" => :node
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user