提交 5b751ae0 编写于 作者: Z Zack Hobson 提交者: Pratik Naik

Execute the appropriate gem command when using JRuby [#2215 state:resolved]

Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
上级 9d906707
...@@ -236,7 +236,14 @@ def specification ...@@ -236,7 +236,14 @@ def specification
private private
def gem_command def gem_command
RUBY_PLATFORM =~ /win32/ ? 'gem.bat' : 'gem' case RUBY_PLATFORM
when /win32/
'gem.bat'
when /java/
'jruby -S gem'
else
'gem'
end
end end
def install_command def install_command
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册