Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.7.0.pre2
-
Component/s: Launcher
-
Labels:None
-
Environment:jruby 1.6.7.2 (ruby-1.8.7-p357) (2012-05-01 26e08ba) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_33) [darwin-x86_64-java]
-
Number of attachments :
Description
So this works:
$ jruby --1.9 -e 'p require("rib")'
true
but not this one:
$ jruby --1.9 -r rib -e 'p require("rib")'
LoadError: no such file to load – rib
Also, if I do this:
$ jruby --1.9 -r rib
It won't show up the LoadError until I input some strings.
We could treat `-r` as calling `require` before executing the
underlying program, so that it would be consistent.
Not sure if there's other consideration though.
The motivation behind this is I don't want to do this:
$ jruby --1.9 -S bundler exec rake test
but I want to do this:
$ jruby --1.9 -r bundler/setup -S rake test
to avoid launching multiple instances of Rubies.
I know that JRuby has some tricks to avoid this,
but the command to launch this test is for all rubies,
I don't want to have a special case for JRuby.
Hope this could be considered, thanks!
We seem to behave the same as MRI does now: