I noticed strange error messages when trying to install any gem using RubyGems:
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory -
After doing some investigating I narrowed down the problem to File.directory?:
irb(main):002:0> File.directory? '/'
irb(main):003:0> bklang@openindiana:~/jruby-1.6.7$ uname -a
SunOS openindiana 5.11 oi_151a i86pc i386 i86pc Solaris
I have verified this is an issue on Solaris, but NOT an issue on OS X. Also this is a regression, as the issue is not present in JRuby-188.8.131.52 and earlier:
irb(main):001 > JRUBY_VERSION
irb(main):002 > File.directory? "/"