1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib
Koichi ITO 8c5115f95d Bump RuboCop to 0.51.0
## Summary

RuboCop 0.51.0 was released.
https://github.com/bbatsov/rubocop/releases/tag/v0.51.0

And rubocop-0-51 channel is available in Code Climate.
https://github.com/codeclimate/codeclimate-rubocop/issues/109

This PR will bump RuboCop to 0.51.0 and fixes the following new
offenses.

```console
% bundle exec rubocop
Inspecting 2358 files

(snip)

Offenses:

actionpack/lib/action_controller/metal/http_authentication.rb:251:59: C:
Prefer double-quoted strings unless you need single quotes to avoid
extra backslashes for escaping.
          [key.strip, value.to_s.gsub(/^"|"$/, "").delete('\'')]
                                                          ^^^^
activesupport/test/core_ext/load_error_test.rb:8:39: C: Prefer
double-quoted strings unless you need single quotes to avoid extra
backslashes for escaping.
    assert_raise(LoadError) { require 'no_this_file_don\'t_exist' }
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^

2358 files inspected, 2 offenses detected
```
2017-11-10 10:52:04 +09:00
..
abstract_controller [Action Pack] require => require_relative 2017-10-21 22:48:28 +09:00
action_controller Bump RuboCop to 0.51.0 2017-11-10 10:52:04 +09:00
action_dispatch Merge pull request #31078 from aeroastro/feature/fix-typo 2017-11-09 00:53:39 -05:00
action_pack Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
abstract_controller.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
action_controller.rb [Action Pack] require => require_relative 2017-10-21 22:48:28 +09:00
action_dispatch.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
action_pack.rb [Action Pack] require => require_relative 2017-10-21 22:48:28 +09:00