check for directory? in WeirdMethodLocator#valid_file? prevents crash…
… under jruby
I tried to write a spec for this but couldn't figure out how to reproduce the state that causes the issue. I did however verify that the problem goes away when running pry w/ my jruby app.
Looks good, thanks :)