It seems to me that, at one point in the recent past, RubyGems started caring 
about JRuby's compatibility version when working with gems.

In other words, GEM_HOME/GEM_PATH started to default to ${jruby.home}/ 
lib/ruby/gems/1.9 when running in the 1.9 mode. (Incidentally, this is not a 
problem with RVM, which mucks GEM_HOME/GEM_PATH all by itself; as far as I can 
tell, it stuffs all gems into the same directory regardless of JRuby's 
compatibility version.)

Needless to say, this had me slightly confused when gem couldn't find rspec:

jruby --1.9 -S gem list rspec

*** LOCAL GEMS ***


Anyhow. It seems reasonable to parametrize the install-gems/install-dev-gems 
ant targets so that they can install gems into the 1.9 directory. Here's the 
patch. Before I commit it to master, I would like some reviews.

Thanks.


Attachment: 0001-Gem-install-targets-are-now-macros-allowing-gems-to-.patch
Description: Binary data

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to