Gem.path does not allow non-existent paths under JRuby
------------------------------------------------------
Key: JRUBY-5104
URL: http://jira.codehaus.org/browse/JRUBY-5104
Project: JRuby
Issue Type: Bug
Components: Extensions
Affects Versions: JRuby 1.5.2
Reporter: Charles Oliver Nutter
Assignee: Charles Oliver Nutter
Fix For: JRuby 1.6
We monkey-path Gem.set_paths in defaults/jruby.rb to strip out non-existent
paths. This was done to clean up the badly-split URL pieces that resulted from
RubyGems blindly splitting GEM_PATH on the system path separator (the ':')
character. Bundler, when told to install to a specific path, would set GEM_HOME
to that location and load RubyGems before actually creating that directory. As
a result, Bundler would fail the first time and succeed the second time, since
the second time the path had been created.
A patch for this is available here: http://gist.github.com/599754
It basically rejiggers our monkey-patch to mask "jar:file://" and "://" from
GEM_PATH before doing the split, and then puts them back. This is preferable to
allowing RubyGems to destroy our URLs and then manually re-inserting them.
The fix needs more testing, so it won't go into 1.5.3.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email