Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix detect a directory as the phantomjs executable #165

Merged
merged 1 commit into from
Apr 2, 2014

Conversation

jorgemanrubia
Copy link
Contributor

File.executable?(exe) will return true for directories. This patch ensures that only files are selected.

With the existing code, it can detect a directory named phantomjs as the phantomjs executable. This was exactly what was happening in my case: Sencha Cmd tool creates a "phantomjs" directory which is reachable from the path, and this was making guard-jasmine fail.

`File.executable?(exe)` will return `true` for directories. This patch ensures that only files are selected.

With the existing code, it can detect a directory named `phantomjs` as the phantomjs executable. This was exactly what was happening in my case: Sencha Cmd tool creates a "phantomjs" directory which is reachable from the path, and this was making guard-jasmine fail.
@netzpirat netzpirat merged commit 76d1a5b into guard:master Apr 2, 2014
@netzpirat
Copy link
Contributor

Thanks a lot! 1.19.2 released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants