github/gollum — pull request #494 by releu (2012-08-28 18:51:52+00:00)
Title: Move require "uri_encode_component"

I have a bug when use gollum without app server.

```ruby

# lib/gollum/markup.rb

def process_headers(doc)
toc = nil
doc.css('h1,h2,h3,h4,h5,h6').each do |h|
id = encodeURIComponent(h.content.gsub(' ','-'))
# ...
end
```

But, `encodeURIComponent` is defined in `lib/gollum/frontend/uri_encode_component.rb` and requieres only in `lib/gollum/frontend/app.rb`.

So if I don't start app I have not get this file required and gollum will raise `undefined method `encodeURIComponent' for #`