Skip to content
This repository
Browse code

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
authored March 11, 2009 lifo committed March 13, 2009

Showing 1 changed file with 8 additions and 1 deletion. Show diff stats Hide diff stats

  1. 9  railties/lib/rails/gem_dependency.rb
9  railties/lib/rails/gem_dependency.rb
@@ -236,7 +236,14 @@ def specification
236 236
 
237 237
     private
238 238
       def gem_command
239  
-        RUBY_PLATFORM =~ /win32/ ? 'gem.bat' : 'gem'
  239
+        case RUBY_PLATFORM
  240
+          when /win32/
  241
+            'gem.bat'
  242
+          when /java/
  243
+            'jruby -S gem'
  244
+          else
  245
+            'gem'
  246
+        end
240 247
       end
241 248
 
242 249
       def install_command

0 notes on commit 5b751ae

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