gitlabhq/gitlabhq — pull request #7764 by spuder (2014-09-17 20:57:36+00:00)
Title: Resolves issue #7336

Adds support for ruby 1.8 by using the hash rocket syntax for port creation. Maintains ruby 1.9 and ruby 2.0 compatibility.
Fixes incorrect do .. else. They either need to be surrounded in {} if on 1 line, or moved to separate lines.
Additional information http://stackoverflow.com/questions/25899476/webrick-gives-error-unexpected-expecting-end