lib/physique/tool_locator.rb in physique-0.3.0 vs lib/physique/tool_locator.rb in physique-0.3.1

- old
+ new

@@ -17,13 +17,13 @@ # Throws a ToolNotFoundError if no tool could be found. def locate_tool(paths, options = {}) # FileList only correctly handles forward-slashes, even on Windows paths = paths.gsub('\\', '/') - info { "Extracting paths from the following pattern #{paths}" } + debug { "Extracting paths from the following pattern #{paths}" } paths = FileList[paths] unless paths.respond_to?(:each) - info { "Attempting to locate tool in the following paths #{paths}" } + debug { "Attempting to locate tool in the following paths #{paths}" } opts = Map.options(options) opts = opts.apply :find_latest => true paths = paths.collect { |p| which(p) }.compact.sort paths = paths.reverse if opts[:find_latest] tool = paths.first \ No newline at end of file