Files
gitlabhq/spec/models
Marin Jankovski 9d0065f054 Merge branch 'hotfix/ruby-21-broken-update' into 'master'
fix syntax error on 2.1 and rubocop on 2.2

Background:

Hashes `{:'key': 'value'}` are not valid in 2.1 but are recommended by Rubocop on 2.2. We only use those when we have a key such as `weird-key`, `weird.key`, etc... 

We could disable Rubocop but it wouldn't warn us about the recommended syntax since `Ruby 1.9`: `{key: 'value'}`, which is valid for `Ruby 1.9+`.

Workaround 1 could be disabling `Style/HashSyntax:` in `rubocop.yml`. 

Workaround 2 (tried in this MR) is to trick Rubocop using `.to_sym` which is effectively the same as adding the `:`. This would allow to keep the warning in place.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/12801

See merge request !2637
2016-01-29 08:12:18 +00:00
..
2015-12-09 10:50:51 +01:00
2016-01-28 15:10:48 +01:00
2015-12-09 10:50:51 +01:00
2015-12-09 10:50:51 +01:00
2016-01-06 13:09:55 +00:00
2015-12-09 10:50:51 +01:00
2015-12-09 10:50:51 +01:00
2016-01-06 13:09:55 +00:00
2016-01-06 13:09:55 +00:00
2016-01-06 13:09:55 +00:00
2016-01-12 12:29:10 -02:00
2015-12-09 10:50:51 +01:00
2015-12-18 14:19:48 -06:00
2015-12-15 00:53:52 -02:00
2015-12-09 10:50:51 +01:00
2015-12-09 10:50:51 +01:00
2015-12-09 10:50:51 +01:00
2016-01-06 13:09:55 +00:00
2015-12-09 10:50:51 +01:00
2016-01-06 13:09:55 +00:00
2016-01-14 10:04:48 +01:00
2015-12-09 10:50:51 +01:00
2015-12-09 10:50:51 +01:00
2016-01-06 13:09:55 +00:00
2015-12-09 10:50:51 +01:00
2015-12-09 10:50:51 +01:00
2015-11-13 19:22:46 +01:00
2016-01-06 13:09:55 +00:00
2015-12-09 10:50:51 +01:00
2015-12-09 10:50:51 +01:00