Closed yannlugrin closed 10 years ago
File.executable? can return true if is a directory, just verify if is a file before test is is executable.
File.executable?
Problem spotted on OSX (Montain Lion) with ruby 2.0.0-p247
Thanks!
Aww, can't merge from my phone when the build is failing. I'll merge it in a bit.
File.executable?
can return true if is a directory, just verify if is a file before test is is executable.Problem spotted on OSX (Montain Lion) with ruby 2.0.0-p247