« Return to Thread: Proposal for managing gem dependencies in a Java + JRuby application

Re: Proposal for managing gem dependencies in a Java + JRuby application

by Alon Salant :: Rate this Message:

Reply to Author | View in Thread

Charles Oliver Nutter-2 wrote:
I am interested in hearing more! What do you think about the  
feasibility of making gems run entirely from within the archive? There  
are two possible approaches: make JRuby's imply of File work against  
URL based resources (hard); or make RubyGems itself be archive-aware.

Either way I am interested on seeing what you have!
I'm taking the more direct approach of making RubyGems be archive-aware only at bootstrap time to find the .gem and unpack it to the filesystem. This makes the solution pretty straight forward. Of course this approach will only work for gems that don't require local compilation and such. So pure Ruby or Ruby + included jar gems should work fine.

I'll share soon. I'm honestly still getting my head wrapped around how much should be written in Java and used from Ruby v. just written in Ruby using Java APIs. What I have now could be simplified by reducing the Java support classes I have written.

Alon

 « Return to Thread: Proposal for managing gem dependencies in a Java + JRuby application