This project is archived and is in readonly mode.
JRuby platform support for gem tasks.
Reported by Zack Hobson | March 11th, 2009 @ 05:47 PM | in 2.x
In a Rails project that uses JRuby, the rake task gems:install doesn't use the correct rubygems binary to install dependencies. The correct solution is to use the Gem API to run the install command rather than spawning the rubygems command in a shell.
Comments and changes to this ticket
-
CancelProfileIsBroken March 11th, 2009 @ 07:19 PM
- Assigned user set to Matt Jones
-
Matt Jones March 11th, 2009 @ 09:59 PM
This is trickier than it seems - the GemRunner version of install exits the process after the first gem is installed (see #210).
Is it possible to just pick the correct executable in gem_command?
-
Zack Hobson March 12th, 2009 @ 12:55 AM
Thanks Matt, I wasn't aware of the purpose of the current implementation. A new patch is attached that just checks for the java platform and selects an appropriate command.
-
Zack Hobson March 12th, 2009 @ 12:59 AM
- Title changed from Use the Gem API to install gem dependencies instead of a shell command. to JRuby platform support for gem tasks.
-
Matt Jones March 12th, 2009 @ 07:50 AM
This looks reasonable to me, but I don't have a JRuby setup to test on. I've posted a request to rails-core to get some feedback.
-
Repository March 13th, 2009 @ 10:25 AM
- State changed from new to resolved
(from [5b751ae0b3f6c10a1053e4a2e04fd92d228d787f]) Execute the appropriate gem command when using JRuby [#2215 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 2215 JRuby platform support for gem tasks. (from [5b751ae0b3f6c10a1053e4a2e04fd92d228d787f]) Execute...
- 2531 Fix Rails Templates for Windows Might also want to solicit some input from the JRuby folk...