glejeune/Ruby-Graphviz — pull request #47 by markus1189 (2012-07-01 17:01:15+00:00)
Title: Find executable

Hi,

First of all I want to thank you for your work. I recently used Ruby-Graphviz to visualize some data and I really appreciate your efforts.

However after cloning I had some problems running your tests:

84 tests, 229 assertions, 11 failures, 1 errors, 0 skips

I found the problem in graphviz/utils.rb:find_executable.

I changed the method to prepend the given paths to the content of PATH, because by that the additionally given paths is prioritzed when searching but if not successfull it still searches the other possible places on your system leading to (hopefully) the right dot executable.

Maybe you want to have a look :)