rubocop 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rubocop might be problematic. Click here for more details.

Files changed (35) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +18 -0
  3. data/config/default.yml +4 -0
  4. data/config/enabled.yml +13 -9
  5. data/lib/rubocop.rb +5 -1
  6. data/lib/rubocop/backports/bsearch.rb +39 -0
  7. data/lib/rubocop/cop/lint/useless_comparison.rb +2 -0
  8. data/lib/rubocop/cop/lint/useless_setter_call.rb +88 -13
  9. data/lib/rubocop/cop/style/align_array.rb +2 -20
  10. data/lib/rubocop/cop/style/align_parameters.rb +2 -20
  11. data/lib/rubocop/cop/style/ascii_comments.rb +1 -1
  12. data/lib/rubocop/cop/style/ascii_identifiers.rb +1 -1
  13. data/lib/rubocop/cop/style/autocorrect_alignment.rb +32 -0
  14. data/lib/rubocop/cop/style/character_literal.rb +5 -13
  15. data/lib/rubocop/cop/style/final_newline.rb +2 -2
  16. data/lib/rubocop/cop/style/hash_syntax.rb +10 -3
  17. data/lib/rubocop/cop/style/lambda_call.rb +39 -0
  18. data/lib/rubocop/cop/style/nil_comparison.rb +2 -0
  19. data/lib/rubocop/cop/style/redundant_self.rb +48 -2
  20. data/lib/rubocop/cop/style/string_help.rb +27 -0
  21. data/lib/rubocop/cop/style/string_literals.rb +5 -13
  22. data/lib/rubocop/cop/style/surrounding_space.rb +17 -5
  23. data/lib/rubocop/version.rb +1 -1
  24. data/rubocop.gemspec +0 -1
  25. data/spec/rubocop/cli_spec.rb +909 -914
  26. data/spec/rubocop/cop/lint/useless_comparison_spec.rb +5 -0
  27. data/spec/rubocop/cop/lint/useless_setter_call_spec.rb +41 -0
  28. data/spec/rubocop/cop/style/final_newline_spec.rb +6 -0
  29. data/spec/rubocop/cop/style/hash_syntax_spec.rb +26 -21
  30. data/spec/rubocop/cop/style/lambda_call_spec.rb +29 -0
  31. data/spec/rubocop/cop/style/nil_comparison_spec.rb +5 -0
  32. data/spec/rubocop/cop/style/redundant_self_spec.rb +18 -0
  33. data/spec/rubocop/cop/style/space_around_block_braces_spec.rb +68 -0
  34. metadata +20 -50
  35. data/spec/rubocop/cop/style/space_around_braces_spec.rb +0 -50
@@ -25,6 +25,11 @@ module Rubocop
25
25
  expect(cop.offences.size).to eq(2)
26
26
  end
27
27
  end
28
+
29
+ it 'works with lambda.()' do
30
+ inspect_source(cop, ['a.(x) > a.(x)'])
31
+ expect(cop.offences.size).to eq(1)
32
+ end
28
33
  end
29
34
  end
30
35
  end
@@ -74,6 +74,47 @@ module Rubocop
74
74
  end
75
75
  end
76
76
 
77
+ context 'when a lvar has an object passed as argument ' +
78
+ 'by multiple-assignment at the end of the method' do
79
+ it 'accepts the lvar attr assignment' do
80
+ inspect_source(cop,
81
+ ['def test(some_arg)',
82
+ ' _first, some_lvar, _third = 1, some_arg, 3',
83
+ ' some_lvar.attr = 5',
84
+ 'end'
85
+ ])
86
+ expect(cop.offences).to be_empty
87
+ end
88
+ end
89
+
90
+ context 'when a lvar possibly has an object passed as argument ' +
91
+ 'by logical-operator-assignment at the end of the method' do
92
+ it 'accepts the lvar attr assignment' do
93
+ inspect_source(cop,
94
+ ['def test(some_arg)',
95
+ ' some_lvar = nil',
96
+ ' some_lvar ||= some_arg',
97
+ ' some_lvar.attr = 5',
98
+ 'end'
99
+ ])
100
+ expect(cop.offences).to be_empty
101
+ end
102
+ end
103
+
104
+ context 'when a lvar does not have any object passed as argument ' +
105
+ 'by binary-operator-assignment at the end of the method' do
106
+ it 'registers an offence' do
107
+ inspect_source(cop,
108
+ ['def test(some_arg)',
109
+ ' some_lvar = some_arg',
110
+ ' some_lvar += some_arg',
111
+ ' some_lvar.attr = 5',
112
+ 'end'
113
+ ])
114
+ expect(cop.offences.size).to eq(1)
115
+ end
116
+ end
117
+
77
118
  context 'when a lvar declared as an argument ' +
78
119
  'is no longer the passed object at the end of the method' do
79
120
  it 'registers an offence for the lvar attr assignment' do
@@ -19,6 +19,12 @@ module Rubocop
19
19
  inspect_source(cop, source)
20
20
  expect(cop.offences).to be_empty
21
21
  end
22
+
23
+ it 'accepts an empty file' do
24
+ source = ['']
25
+ inspect_source(cop, source)
26
+ expect(cop.offences).to be_empty
27
+ end
22
28
  end
23
29
  end
24
30
  end
@@ -6,60 +6,65 @@ module Rubocop
6
6
  module Cop
7
7
  module Style
8
8
  describe HashSyntax do
9
- subject(:hash_syntax) { HashSyntax.new }
9
+ subject(:cop) { described_class.new }
10
10
 
11
11
  it 'registers offence for hash rocket syntax when new is possible' do
12
- inspect_source(hash_syntax, ['x = { :a => 0 }'])
13
- expect(hash_syntax.messages).to eq(
12
+ inspect_source(cop, ['x = { :a => 0 }'])
13
+ expect(cop.messages).to eq(
14
14
  ['Ruby 1.8 hash syntax detected'])
15
15
  end
16
16
 
17
17
  it 'registers an offence for mixed syntax when new is possible' do
18
- inspect_source(hash_syntax, ['x = { :a => 0, b: 1 }'])
19
- expect(hash_syntax.messages).to eq(
18
+ inspect_source(cop, ['x = { :a => 0, b: 1 }'])
19
+ expect(cop.messages).to eq(
20
20
  ['Ruby 1.8 hash syntax detected'])
21
21
  end
22
22
 
23
23
  it 'registers an offence for hash rockets in method calls' do
24
- inspect_source(hash_syntax, ['func(3, :a => 0)'])
25
- expect(hash_syntax.messages).to eq(
24
+ inspect_source(cop, ['func(3, :a => 0)'])
25
+ expect(cop.messages).to eq(
26
26
  ['Ruby 1.8 hash syntax detected'])
27
27
  end
28
28
 
29
29
  it 'accepts hash rockets when keys have different types' do
30
- inspect_source(hash_syntax, ['x = { :a => 0, "b" => 1 }'])
31
- expect(hash_syntax.messages).to be_empty
30
+ inspect_source(cop, ['x = { :a => 0, "b" => 1 }'])
31
+ expect(cop.messages).to be_empty
32
32
  end
33
33
 
34
34
  it 'accepts hash rockets when keys have whitespaces in them' do
35
- inspect_source(hash_syntax, ['x = { :"t o" => 0 }'])
36
- expect(hash_syntax.messages).to be_empty
35
+ inspect_source(cop, ['x = { :"t o" => 0 }'])
36
+ expect(cop.messages).to be_empty
37
37
  end
38
38
 
39
39
  it 'accepts hash rockets when keys have special symbols in them' do
40
- inspect_source(hash_syntax, ['x = { :"\tab" => 1 }'])
41
- expect(hash_syntax.messages).to be_empty
40
+ inspect_source(cop, ['x = { :"\tab" => 1 }'])
41
+ expect(cop.messages).to be_empty
42
42
  end
43
43
 
44
44
  it 'accepts hash rockets when keys start with a digit' do
45
- inspect_source(hash_syntax, ['x = { :"1" => 1 }'])
46
- expect(hash_syntax.messages).to be_empty
45
+ inspect_source(cop, ['x = { :"1" => 1 }'])
46
+ expect(cop.messages).to be_empty
47
47
  end
48
48
 
49
49
  it 'registers offence when keys start with an uppercase letter' do
50
- inspect_source(hash_syntax, ['x = { :A => 0 }'])
51
- expect(hash_syntax.messages).to eq(
50
+ inspect_source(cop, ['x = { :A => 0 }'])
51
+ expect(cop.messages).to eq(
52
52
  ['Ruby 1.8 hash syntax detected'])
53
53
  end
54
54
 
55
55
  it 'accepts new syntax in a hash literal' do
56
- inspect_source(hash_syntax, ['x = { a: 0, b: 1 }'])
57
- expect(hash_syntax.messages).to be_empty
56
+ inspect_source(cop, ['x = { a: 0, b: 1 }'])
57
+ expect(cop.messages).to be_empty
58
58
  end
59
59
 
60
60
  it 'accepts new syntax in method calls' do
61
- inspect_source(hash_syntax, ['func(3, a: 0)'])
62
- expect(hash_syntax.messages).to be_empty
61
+ inspect_source(cop, ['func(3, a: 0)'])
62
+ expect(cop.messages).to be_empty
63
+ end
64
+
65
+ it 'auto-corrects old to new style' do
66
+ new_source = autocorrect_source(cop, '{ :a => 1, :b => 2}')
67
+ expect(new_source).to eq('{ a: 1, b: 2}')
63
68
  end
64
69
  end
65
70
  end
@@ -0,0 +1,29 @@
1
+ # encoding: utf-8
2
+
3
+ require 'spec_helper'
4
+
5
+ module Rubocop
6
+ module Cop
7
+ module Style
8
+ describe LambdaCall do
9
+ subject(:cop) { described_class.new }
10
+
11
+ it 'registers an offence for x.()' do
12
+ inspect_source(cop,
13
+ ['x.(a, b)'])
14
+ expect(cop.offences.size).to eq(1)
15
+ end
16
+
17
+ it 'accepts x.call()' do
18
+ inspect_source(cop, ['x.call(a, b)'])
19
+ expect(cop.offences).to be_empty
20
+ end
21
+
22
+ it 'auto-corrects x.() to x.call()' do
23
+ new_source = autocorrect_source(cop, ['a.(x)'])
24
+ expect(new_source).to eq('a.call(x)')
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -25,6 +25,11 @@ module Rubocop
25
25
  ['x != nil'])
26
26
  expect(cop.offences.size).to eq(1)
27
27
  end
28
+
29
+ it 'works with lambda.()' do
30
+ inspect_source(cop, ['a.(x) == nil'])
31
+ expect(cop.offences.size).to eq(1)
32
+ end
28
33
  end
29
34
  end
30
35
  end
@@ -92,6 +92,24 @@ module Rubocop
92
92
  expect(cop.offences).to be_empty
93
93
  end
94
94
 
95
+ it 'accepts a self receiver used to distinguish from blockarg' do
96
+ src = ['def requested_specs(&groups)',
97
+ ' some_method(self.groups)',
98
+ 'end',
99
+ ]
100
+ inspect_source(cop, src)
101
+ expect(cop.offences).to be_empty
102
+ end
103
+
104
+ it 'accepts a self receiver used to distinguish from argument' do
105
+ src = ['def requested_specs(groups)',
106
+ ' some_method(self.groups)',
107
+ 'end',
108
+ ]
109
+ inspect_source(cop, src)
110
+ expect(cop.offences).to be_empty
111
+ end
112
+
95
113
  it 'accepts a self receiver used to distinguish from local variable' do
96
114
  src = ['def requested_specs',
97
115
  ' @requested_specs ||= begin',
@@ -0,0 +1,68 @@
1
+ # encoding: utf-8
2
+
3
+ require 'spec_helper'
4
+
5
+ module Rubocop
6
+ module Cop
7
+ module Style
8
+ describe SpaceAroundBlockBraces, :config do
9
+ subject(:cop) { SpaceAroundBlockBraces.new(config) }
10
+ let(:cop_config) { { 'NoSpaceBeforeBlockParameters' => false } }
11
+
12
+ it 'accepts braces surrounded by spaces' do
13
+ inspect_source(cop, ['each { puts }'])
14
+ expect(cop.messages).to be_empty
15
+ expect(cop.highlights).to be_empty
16
+ end
17
+
18
+ it 'registers an offence for left brace without outer space' do
19
+ inspect_source(cop, ['each{ puts }'])
20
+ expect(cop.messages).to eq(["Surrounding space missing for '{'."])
21
+ expect(cop.highlights).to eq(['{'])
22
+ end
23
+
24
+ it 'registers an offence for left brace without inner space' do
25
+ inspect_source(cop, ['each {puts }'])
26
+ expect(cop.messages).to eq(["Surrounding space missing for '{'."])
27
+ expect(cop.highlights).to eq(['{'])
28
+ end
29
+
30
+ it 'registers an offence for right brace without inner space' do
31
+ inspect_source(cop, ['each { puts}'])
32
+ expect(cop.messages).to eq(["Space missing to the left of '}'."])
33
+ expect(cop.highlights).to eq(['}'])
34
+ end
35
+
36
+ context 'with passed in parameters' do
37
+ it 'accepts left brace with inner space' do
38
+ inspect_source(cop, ['each { |x| puts }'])
39
+ expect(cop.messages).to be_empty
40
+ expect(cop.highlights).to be_empty
41
+ end
42
+
43
+ it 'registers an offence for left brace without inner space' do
44
+ inspect_source(cop, ['each {|x| puts }'])
45
+ expect(cop.messages).to eq(["Surrounding space missing for '{'."])
46
+ expect(cop.highlights).to eq(['{'])
47
+ end
48
+
49
+ context 'space before block parameters not allowed' do
50
+ let(:cop_config) { { 'NoSpaceBeforeBlockParameters' => true } }
51
+
52
+ it 'registers an offence for left brace with inner space' do
53
+ inspect_source(cop, ['each { |x| puts }'])
54
+ expect(cop.messages).to eq(['Space between { and | detected.'])
55
+ expect(cop.highlights).to eq(['{'])
56
+ end
57
+
58
+ it 'accepts left brace without inner space' do
59
+ inspect_source(cop, ['each {|x| puts }'])
60
+ expect(cop.messages).to be_empty
61
+ expect(cop.highlights).to be_empty
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
metadata CHANGED
@@ -1,36 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
5
- prerelease:
4
+ version: 0.13.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Bozhidar Batsov
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-13 00:00:00.000000000 Z
11
+ date: 2013-09-19 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rainbow
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 1.1.4
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 1.1.4
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: parser
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,31 +34,13 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
45
40
  version: 2.0.0.pre6
46
- - !ruby/object:Gem::Dependency
47
- name: backports
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: 3.3.3
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 3.3.3
62
41
  - !ruby/object:Gem::Dependency
63
42
  name: powerpack
64
43
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
44
  requirements:
67
45
  - - ~>
68
46
  - !ruby/object:Gem::Version
@@ -70,7 +48,6 @@ dependencies:
70
48
  type: :runtime
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
51
  requirements:
75
52
  - - ~>
76
53
  - !ruby/object:Gem::Version
@@ -78,7 +55,6 @@ dependencies:
78
55
  - !ruby/object:Gem::Dependency
79
56
  name: rake
80
57
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
58
  requirements:
83
59
  - - ~>
84
60
  - !ruby/object:Gem::Version
@@ -86,7 +62,6 @@ dependencies:
86
62
  type: :development
87
63
  prerelease: false
88
64
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
65
  requirements:
91
66
  - - ~>
92
67
  - !ruby/object:Gem::Version
@@ -94,7 +69,6 @@ dependencies:
94
69
  - !ruby/object:Gem::Dependency
95
70
  name: rspec
96
71
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
72
  requirements:
99
73
  - - ~>
100
74
  - !ruby/object:Gem::Version
@@ -102,7 +76,6 @@ dependencies:
102
76
  type: :development
103
77
  prerelease: false
104
78
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
79
  requirements:
107
80
  - - ~>
108
81
  - !ruby/object:Gem::Version
@@ -110,7 +83,6 @@ dependencies:
110
83
  - !ruby/object:Gem::Dependency
111
84
  name: yard
112
85
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
86
  requirements:
115
87
  - - ~>
116
88
  - !ruby/object:Gem::Version
@@ -118,7 +90,6 @@ dependencies:
118
90
  type: :development
119
91
  prerelease: false
120
92
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
93
  requirements:
123
94
  - - ~>
124
95
  - !ruby/object:Gem::Version
@@ -126,7 +97,6 @@ dependencies:
126
97
  - !ruby/object:Gem::Dependency
127
98
  name: bundler
128
99
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
100
  requirements:
131
101
  - - ~>
132
102
  - !ruby/object:Gem::Version
@@ -134,7 +104,6 @@ dependencies:
134
104
  type: :development
135
105
  prerelease: false
136
106
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
107
  requirements:
139
108
  - - ~>
140
109
  - !ruby/object:Gem::Version
@@ -142,7 +111,6 @@ dependencies:
142
111
  - !ruby/object:Gem::Dependency
143
112
  name: simplecov
144
113
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
114
  requirements:
147
115
  - - ~>
148
116
  - !ruby/object:Gem::Version
@@ -150,13 +118,13 @@ dependencies:
150
118
  type: :development
151
119
  prerelease: false
152
120
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
121
  requirements:
155
122
  - - ~>
156
123
  - !ruby/object:Gem::Version
157
124
  version: '0.7'
158
- description: ! " Automatic Ruby code style checking tool.\n Aims to enforce
159
- the community-driven Ruby Style Guide.\n"
125
+ description: |2
126
+ Automatic Ruby code style checking tool.
127
+ Aims to enforce the community-driven Ruby Style Guide.
160
128
  email: bozhidar@batsov.com
161
129
  executables:
162
130
  - rubocop
@@ -181,6 +149,7 @@ files:
181
149
  - config/disabled.yml
182
150
  - config/enabled.yml
183
151
  - lib/rubocop.rb
152
+ - lib/rubocop/backports/bsearch.rb
184
153
  - lib/rubocop/cli.rb
185
154
  - lib/rubocop/config.rb
186
155
  - lib/rubocop/config_store.rb
@@ -218,6 +187,7 @@ files:
218
187
  - lib/rubocop/cop/style/ascii_comments.rb
219
188
  - lib/rubocop/cop/style/ascii_identifiers.rb
220
189
  - lib/rubocop/cop/style/attr.rb
190
+ - lib/rubocop/cop/style/autocorrect_alignment.rb
221
191
  - lib/rubocop/cop/style/begin_block.rb
222
192
  - lib/rubocop/cop/style/block_comments.rb
223
193
  - lib/rubocop/cop/style/block_nesting.rb
@@ -255,6 +225,7 @@ files:
255
225
  - lib/rubocop/cop/style/if_with_semicolon.rb
256
226
  - lib/rubocop/cop/style/indentation_width.rb
257
227
  - lib/rubocop/cop/style/lambda.rb
228
+ - lib/rubocop/cop/style/lambda_call.rb
258
229
  - lib/rubocop/cop/style/leading_comment_space.rb
259
230
  - lib/rubocop/cop/style/line_length.rb
260
231
  - lib/rubocop/cop/style/method_and_variable_snake_case.rb
@@ -286,6 +257,7 @@ files:
286
257
  - lib/rubocop/cop/style/space_after_method_name.rb
287
258
  - lib/rubocop/cop/style/space_before_modifier_keyword.rb
288
259
  - lib/rubocop/cop/style/special_global_vars.rb
260
+ - lib/rubocop/cop/style/string_help.rb
289
261
  - lib/rubocop/cop/style/string_literals.rb
290
262
  - lib/rubocop/cop/style/surrounding_space.rb
291
263
  - lib/rubocop/cop/style/symbol_array.rb
@@ -402,6 +374,7 @@ files:
402
374
  - spec/rubocop/cop/style/hash_syntax_spec.rb
403
375
  - spec/rubocop/cop/style/if_with_semicolon_spec.rb
404
376
  - spec/rubocop/cop/style/indentation_width_spec.rb
377
+ - spec/rubocop/cop/style/lambda_call_spec.rb
405
378
  - spec/rubocop/cop/style/lambda_spec.rb
406
379
  - spec/rubocop/cop/style/leading_comment_space_spec.rb
407
380
  - spec/rubocop/cop/style/line_length_spec.rb
@@ -434,7 +407,7 @@ files:
434
407
  - spec/rubocop/cop/style/space_after_control_keyword_spec.rb
435
408
  - spec/rubocop/cop/style/space_after_method_name_spec.rb
436
409
  - spec/rubocop/cop/style/space_after_semicolon_spec.rb
437
- - spec/rubocop/cop/style/space_around_braces_spec.rb
410
+ - spec/rubocop/cop/style/space_around_block_braces_spec.rb
438
411
  - spec/rubocop/cop/style/space_around_equals_in_default_parameter_spec.rb
439
412
  - spec/rubocop/cop/style/space_around_operators_spec.rb
440
413
  - spec/rubocop/cop/style/space_before_modifier_keyword_spec.rb
@@ -486,30 +459,26 @@ files:
486
459
  homepage: http://github.com/bbatsov/rubocop
487
460
  licenses:
488
461
  - MIT
462
+ metadata: {}
489
463
  post_install_message:
490
464
  rdoc_options: []
491
465
  require_paths:
492
466
  - lib
493
467
  required_ruby_version: !ruby/object:Gem::Requirement
494
- none: false
495
468
  requirements:
496
- - - ! '>='
469
+ - - '>='
497
470
  - !ruby/object:Gem::Version
498
471
  version: 1.9.2
499
472
  required_rubygems_version: !ruby/object:Gem::Requirement
500
- none: false
501
473
  requirements:
502
- - - ! '>='
474
+ - - '>='
503
475
  - !ruby/object:Gem::Version
504
476
  version: '0'
505
- segments:
506
- - 0
507
- hash: 1613549233973798882
508
477
  requirements: []
509
478
  rubyforge_project:
510
- rubygems_version: 1.8.23
479
+ rubygems_version: 2.0.3
511
480
  signing_key:
512
- specification_version: 3
481
+ specification_version: 4
513
482
  summary: Automatic Ruby code style checking tool.
514
483
  test_files:
515
484
  - spec/.rubocop.yml
@@ -588,6 +557,7 @@ test_files:
588
557
  - spec/rubocop/cop/style/hash_syntax_spec.rb
589
558
  - spec/rubocop/cop/style/if_with_semicolon_spec.rb
590
559
  - spec/rubocop/cop/style/indentation_width_spec.rb
560
+ - spec/rubocop/cop/style/lambda_call_spec.rb
591
561
  - spec/rubocop/cop/style/lambda_spec.rb
592
562
  - spec/rubocop/cop/style/leading_comment_space_spec.rb
593
563
  - spec/rubocop/cop/style/line_length_spec.rb
@@ -620,7 +590,7 @@ test_files:
620
590
  - spec/rubocop/cop/style/space_after_control_keyword_spec.rb
621
591
  - spec/rubocop/cop/style/space_after_method_name_spec.rb
622
592
  - spec/rubocop/cop/style/space_after_semicolon_spec.rb
623
- - spec/rubocop/cop/style/space_around_braces_spec.rb
593
+ - spec/rubocop/cop/style/space_around_block_braces_spec.rb
624
594
  - spec/rubocop/cop/style/space_around_equals_in_default_parameter_spec.rb
625
595
  - spec/rubocop/cop/style/space_around_operators_spec.rb
626
596
  - spec/rubocop/cop/style/space_before_modifier_keyword_spec.rb