Make GitLab work with Ruby 2.2
Related issue:
https://github.com/gitlabhq/gitlabhq/issues/8696