mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Execute the appropriate gem command when using JRuby [#2215 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
This commit is contained in:
parent
9d906707be
commit
5b751ae0b3
1 changed files with 8 additions and 1 deletions
|
@ -236,7 +236,14 @@ module Rails
|
|||
|
||||
private
|
||||
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
|
||||
|
||||
def install_command
|
||||
|
|
Loading…
Reference in a new issue