Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Execute the appropriate gem command when using JRuby [#2215 state:res…

…olved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
commit 5b751ae0b3f6c10a1053e4a2e04fd92d228d787f 1 parent 9d90670
Zack Hobson authored lifo committed
Showing with 8 additions and 1 deletion.
  1. +8 −1 railties/lib/rails/gem_dependency.rb
View
9 railties/lib/rails/gem_dependency.rb
@@ -236,7 +236,14 @@ def specification
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

0 comments on commit 5b751ae

Please sign in to comment.
Something went wrong with that request. Please try again.