mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user