# filename.so.rbputs __FILE__# somefile.rbrequire 'filename.so'# => /../../filename.so.rb
Just when I thought I knew all load-searching oddities :)
If you look at the JRuby bug you'll see that it's a very specific case
and I show several scenarios that either work or don't work...
* Only fails over for "extension" extensions like .so or
.bundle...does not fail over for things like foo.rb.rb or foo.rb.so
* Appears to do a search for both .rb and <extension extension> if the
original filename doesn't work
* Does not fail over to "extension" extensions that are not
appropriate for current platform, like .so.so on OS X
I think it's confusing and unpredictable and would just as soon have
the logic be "if it ends with an extension extension, only search
extension extensions."
- Charlie