Affects Version/s: None
Fix Version/s: JRuby 1.7.0.pre2
Environment:jruby 18.104.22.168 (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 :
So this works:
$ jruby --1.9 -e 'p require("rib")'
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!