sons-of-mars/rocco — comment on commit 3c05eb9f291a8796521b4722b670a8454cfe9710
File:  line 0
By yumitsu:

It will break all the tests since `which pygmentize` returns empty string in Mac OS X.
I suggest a patch:

```diff
diff --git lib/rocco.rb lib/rocco.rb
index 510d7c2..ee79d11 100644
--- lib/rocco.rb
+++ lib/rocco.rb
@@ -51,7 +51,8 @@ require 'net/http'

# Code is run through [Pygments](http://pygments.org/) for syntax
# highlighting. If it's not installed, locally, use a webservice.
-if `which pygmentize`.include? "not found"
+pygmentize = `which pygmentize`
+if pygmentize.include? "not found" || pygmentize.empty?
warn "WARNING: Pygments not found. Using webservice."
end

@@ -161,7 +162,8 @@ class Rocco

# Returns `true` if `pygmentize` is available locally, `false` otherwise.
def pygmentize?
- @_pygmentize ||= `which pygmentize`
+ pygmentize = `which pygmentize`
+ @_pygmentize ||= !(pygmentize.include?("not found") || pygmentize.empty?)
end

# If `pygmentize` is available, we can use it to autodetect a file's
```