require issue
Hi!
There seems to be an issue with the latest ruby1.9.1 causing a bunch auf
auto-bugs by Lucas' latest rebuild:
While this works:
$ touch /tmp/test.rb ; ruby1.9.1 -e "require '/tmp/test'"
This doesn't:
$ touch test.rb ; ruby1.9.1 -e "require 'test'"
<internal:lib/rubygems/custom_require>:29:in `require': no such file to
load -- rubygems (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:gem_prelude>:167:in `load_full_rubygems_library'
from <internal:gem_prelude>:217:in `try_activate'
from <internal:lib/rubygems/custom_require>:32:in `rescue in require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from -e:1:in `<main>'
It's seems ruby has an issue with requiring from a relative path and then
falling back to rubygems. And the cause of this seems to be, that '.' is
missing from the load path:
$ ruby1.8 -e "p $:.include?('.')"
true
$ ruby1.9.1 -e "p $:.include?('.')"
false
Tobias
Reply to: