Use ruby1.8 compatible syntax for hooks-receiver service

王权利请求将github/fork/spuder/issue#7763合并到master

Created by: spuder

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

合并请求报告