LanguageModuleRequirement: remove jruby support

This commit is contained in:
Misty De Meo 2016-01-01 19:35:30 -04:00
parent aa1461b7d6
commit 575b75fced
2 changed files with 1 additions and 5 deletions

View File

@ -18,7 +18,7 @@ require "set"
class DependencyCollector
# Define the languages that we can handle as external dependencies.
LANGUAGE_MODULES = Set[
:jruby, :lua, :perl, :python, :python3, :ruby
:lua, :perl, :python, :python3, :ruby
].freeze
CACHE = {}

View File

@ -21,10 +21,8 @@ class LanguageModuleRequirement < Requirement
def the_test
case @language
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 :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}]
when :python3 then %W[/usr/bin/env python3 -c import\ #{@import_name}]
@ -34,10 +32,8 @@ class LanguageModuleRequirement < Requirement
def command_line
case @language
when :jruby then "jruby -S gem install"
when :lua then "luarocks-5.2 install"
when :lua51 then "luarocks-5.1 install"
when :ocaml then "opam install"
when :perl then "cpan -i"
when :python then "pip install"
when :python3 then "pip3 install"