languages: support both luas
This commit is contained in:
parent
f78a63984b
commit
3369c55dc6
@ -23,7 +23,8 @@ class LanguageModuleRequirement < Requirement
|
|||||||
case @language
|
case @language
|
||||||
when :chicken then %W[/usr/bin/env csi -e (use\ #{@import_name})]
|
when :chicken then %W[/usr/bin/env csi -e (use\ #{@import_name})]
|
||||||
when :jruby then %W[/usr/bin/env jruby -rubygems -e require\ '#{@import_name}']
|
when :jruby then %W[/usr/bin/env jruby -rubygems -e require\ '#{@import_name}']
|
||||||
when :lua then %W[/usr/bin/env luarocks show #{@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 :node then %W[/usr/bin/env node -e require('#{@import_name}');]
|
||||||
when :ocaml then %W[/usr/bin/env opam list --installed #{@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 :perl then %W[/usr/bin/env perl -e use\ #{@import_name}]
|
||||||
@ -38,7 +39,8 @@ class LanguageModuleRequirement < Requirement
|
|||||||
case @language
|
case @language
|
||||||
when :chicken then "chicken-install"
|
when :chicken then "chicken-install"
|
||||||
when :jruby then "jruby -S gem install"
|
when :jruby then "jruby -S gem install"
|
||||||
when :lua then "luarocks install"
|
when :lua then "luarocks-5.2 install"
|
||||||
|
when :lua51 then "luarocks-5.1 install"
|
||||||
when :node then "npm install"
|
when :node then "npm install"
|
||||||
when :ocaml then "opam install"
|
when :ocaml then "opam install"
|
||||||
when :perl then "cpan -i"
|
when :perl then "cpan -i"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user