Is jruby supposed to have 1.9’s gem prelude?
rdp@rdp-vm:~/dev/p2pwebclient/final/pics/helpers$ jruby --1.9
./regenerate_all_graphs.rb
./regenerate_all_graphs.rb:1:in `require’: no such file to load – sane
(LoadError)
from ./regenerate_all_graphs.rb:1
rdp@rdp-vm:~/dev/p2pwebclient/final/pics/helpers$ gem which sane
(checking gem sane-0.19.1 for sane)
/free_space/rdp/downloads/jruby/lib/ruby/gems/1.8/gems/sane-0.19.1/lib/sane.rb
?
-r
On Tue, Jan 12, 2010 at 3:07 PM, Roger P. [email protected]
wrote:
Is jruby supposed to have 1.9’s gem prelude?
If 1.9 does something different, we should do that Though I’m not
sure if it’s wise for us to start having two separate gem locations
in a given JRuby install. I think people would be very unhappy about
that. Is that what you’re referring to?
?
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Charles Nutter wrote:
On Tue, Jan 12, 2010 at 3:07 PM, Roger P. [email protected]
wrote:
Is jruby supposed to have 1.9’s gem prelude?
If 1.9 does something different, we should do that Though I’m not
sure if it’s wise for us to start having two separate gem locations
in a given JRuby install. I think people would be very unhappy about
that. Is that what you’re referring to?
I was referring to this code:
(install gem wait_pid first)
test.rb:
require ‘rubygems’ if RUBY_VERSION < ‘1.9’
require ‘wait_pid’
This should work in both
$ jruby test.rb
and
$ jruby --1.9 test.rb
because gem_prelude should preload the LOAD_PATH, or so I’m told.
I could file it if so desired.
-r
On Thu, Jan 14, 2010 at 4:08 PM, Roger P. [email protected]
wrote:
$ jruby --1.9 test.rb
because gem_prelude should preload the LOAD_PATH, or so I’m told.
I could file it if so desired.
Yeah, please do, and figure out exactly how much of RubyGems it loads
as part of the prelude. I can’t imagine it loads everything, since
that would mean running RubyGems’ filesystem scanning for even
non-RubyGems stuff.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email