imathis/octopress — pull request #901 by pwnall (2012-12-29 07:16:59+00:00)
Title: Fall back to Heroku pygmentize Web service if pygments.rb doesn't load

This incorporates the patch proposed in the blog post for the octopress Heroku buildpack.
http://jasongarber.com/blog/2012/01/10/deploying-octopress-to-heroku-with-a-custom-buildpack/

I modified the patch so it tries to load pygments.rb and then uses the Web API if it fails. This has the following advantages:

1. Everything is still fast during development
1. Everything works in environments where `pygments.rb` isn't available
1. It makes it easier to use the Heroku buildpack that doesn't require checking in `public`, but still track the Octopress master