Skip to content

Commit

Permalink
Execute the appropriate gem command when using JRuby [#2215 state:res…
Browse files Browse the repository at this point in the history
…olved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information
Zack Hobson authored and lifo committed Mar 13, 2009
1 parent 9d90670 commit 5b751ae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion railties/lib/rails/gem_dependency.rb
Expand Up @@ -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
Expand Down

0 comments on commit 5b751ae

Please sign in to comment.