GitLab Unicorn web server start: Syntax Error from gitlab-flowdock-git-hook-1.0.1
GitLab Unicorn Server (and Sidekiq as well) do not start due to following error:
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `require': /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/gitlab-flowdock-git-hook-1.0.1/lib/flowdock/git/builder.rb:92: syntax error, unexpected modifier_if (SyntaxError)
url: if @opts[:commit_url] then @opt...
^
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/gitlab-flowdock-git-hook-1.0.1/lib/flowdock/git/builder.rb:92: syntax error, unexpected keyword_then, expecting keyword_end
...url: if @opts[:commit_url] then @opts[:commit_url] % [commit...
... ^
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/gitlab-flowdock-git-hook-1.0.1/lib/flowdock/git/builder.rb:92: syntax error, unexpected ',', expecting keyword_end
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/gitlab-flowdock-git-hook-1.0.1/lib/flowdock/git/builder.rb:94: syntax error, unexpected tLABEL, expecting '='
message: commit.message,
^
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/gitlab-flowdock-git-hook-1.0.1/lib/flowdock/git/builder.rb:95: syntax error, unexpected tLABEL, expecting '='
author: {
^
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/gitlab-flowdock-git-hook-1.0.1/lib/flowdock/git/builder.rb:99: syntax error, unexpected '}', expecting keyword_end
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/gitlab-flowdock-git-hook-1.0.1/lib/flowdock/git/builder.rb:150: syntax error, unexpected end-of-input, expecting keyword_end
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `block in require'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:232:in `load_dependency'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `require'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/gitlab-flowdock-git-hook-1.0.1/lib/flowdock/git.rb:4:in `'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `require'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `block in require'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:232:in `load_dependency'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `require'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/gitlab-flowdock-git-hook-1.0.1/lib/flowdock-git-hook.rb:1:in `'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `require'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `block in require'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:232:in `load_dependency'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `require'
from /home/git/gitlab/app/models/project_services/flowdock_service.rb:21:in `'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `require'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `block in require'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:232:in `load_dependency'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `require'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:348:in `require_or_load'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:307:in `depend_on'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:225:in `require_dependency'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.1.11/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.1.11/lib/rails/engine.rb:467:in `each'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.1.11/lib/rails/engine.rb:467:in `block in eager_load!'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.1.11/lib/rails/engine.rb:465:in `each'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.1.11/lib/rails/engine.rb:465:in `eager_load!'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.1.11/lib/rails/engine.rb:346:in `eager_load!'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.1.11/lib/rails/application/finisher.rb:58:in `each'from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.1.11/lib/rails/application/finisher.rb:58:in `block in '
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.1.11/lib/rails/initializable.rb:30:in `instance_exec'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.1.11/lib/rails/initializable.rb:30:in `run'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.1.11/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/lib64/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
from /usr/lib64/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /usr/lib64/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
from /usr/lib64/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /usr/lib64/ruby/2.1.0/tsort.rb:345:in `each'
from /usr/lib64/ruby/2.1.0/tsort.rb:345:in `call'
from /usr/lib64/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
from /usr/lib64/ruby/2.1.0/tsort.rb:224:in `tsort_each'
from /usr/lib64/ruby/2.1.0/tsort.rb:205:in `tsort_each'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.1.11/lib/rails/initializable.rb:54:in `run_initializers'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.1.11/lib/rails/application.rb:300:in `initialize!'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.1.11/lib/rails/railtie.rb:194:in `public_send'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.1.11/lib/rails/railtie.rb:194:in `method_missing'
from /home/git/gitlab/config/environment.rb:5:in `'
from config.ru:16:in `require'
from config.ru:16:in `block in '
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize'
from config.ru:1:in `new'
from config.ru:1:in `'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.6.3/lib/unicorn.rb:48:in `eval'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.6.3/lib/unicorn.rb:48:in `block in builder'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.6.3/bin/unicorn_rails:139:in `call'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.6.3/bin/unicorn_rails:139:in `block in rails_builder'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:722:in `call'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:722:in `build_app!'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:140:in `start'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.6.3/bin/unicorn_rails:209:in `'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/bin/unicorn_rails:23:in `load'
from /home/git/gitlab/vendor/bundle/ruby/2.1.0/bin/unicorn_rails:23:in `'