While searching for the reason why net/ssh didn't pick up my keys from my home folder, I noticed that Dir.home is pointing to the path defined in the LOGDIR evn variable.
In org.jruby.Rubydir.getHomeDirectoryPath() the order is
According to JRUBY-6295 in Jira it should be
(which makes much more sense).
I will check it.
Fixed by 3a1961b
@lucasallan Should this be fixed on jruby-1_7 branch as well? Does this logic match 1.8.7 or 1.9.3 behavior? If so you should commit this on that branch as well.
You're right. I just pushed it to jruby-1_7.