cucumber-rails 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 676c1aa83718665107425d3233c187bdc6b7da7c
4
- data.tar.gz: 4b4752f20863334e10e93272d4c9e902e7e118b9
3
+ metadata.gz: b276ab8f9a0ebd797f290786e0afced74033c0f4
4
+ data.tar.gz: 80af0b6ba3e16d29cfcd93e9f8f82c0e1e01217b
5
5
  SHA512:
6
- metadata.gz: 9cc4bbfcd62c4894011855bd986cdad7a615e292b42821de1a1aee63ea238f671e3179783c90aaa481d8536a591b7ef09eafbf8cc05b8a2fff6bc9cb14d9681d
7
- data.tar.gz: 6f60f5a3a2f199006a03e7cc6695e26af25a223e820ca10d38403b9deda0523a14135284487ddc7740e475ea2b4b25d2114f9237d7126d67a0bd1c7e5c9bac80
6
+ metadata.gz: 493e90cf574a3785e83982e0dffcc6cc998c3e9f1ceac1ace13446bb033222a26b439376780238d3897eb34d4cfebf77fd06b5232b691d3538eeb8e7577a4338
7
+ data.tar.gz: 3caca7b73bbdfeb694ac0812ff0d2a7503cfe98b09589dd056ad101addeaa0f2971cb6c4086fb4f31ea6685c92ffd2d157a1825489e487b547d569225c497148
data/.gitignore CHANGED
@@ -9,4 +9,5 @@ coverage
9
9
  .cucumber.rerun
10
10
  gemfiles/*.lock
11
11
  Gemfile.lock
12
- Gemfile.appraisal.lock
12
+ spec/examples.txt
13
+ .idea
@@ -0,0 +1 @@
1
+ inherit_from: .rubocop_todo.yml
@@ -0,0 +1,443 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2019-04-17 11:50:08 +0200 using RuboCop version 0.65.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 9
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: TreatCommentsAsGroupSeparators, Include.
12
+ # Include: **/*.gemfile, **/Gemfile, **/gems.rb
13
+ Bundler/OrderedGems:
14
+ Exclude:
15
+ - 'gemfiles/rails_4_2.gemfile'
16
+ - 'gemfiles/rails_5_0.gemfile'
17
+ - 'gemfiles/rails_5_1.gemfile'
18
+ - 'gemfiles/rails_5_2.gemfile'
19
+ - 'gemfiles/rails_6_0.gemfile'
20
+
21
+ # Offense count: 1
22
+ # Configuration parameters: Include.
23
+ # Include: **/*.gemspec
24
+ Gemspec/DuplicatedAssignment:
25
+ Exclude:
26
+ - 'cucumber-rails.gemspec'
27
+
28
+ # Offense count: 3
29
+ # Cop supports --auto-correct.
30
+ # Configuration parameters: TreatCommentsAsGroupSeparators, Include.
31
+ # Include: **/*.gemspec
32
+ Gemspec/OrderedDependencies:
33
+ Exclude:
34
+ - 'cucumber-rails.gemspec'
35
+
36
+ # Offense count: 1
37
+ # Cop supports --auto-correct.
38
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
39
+ # SupportedStyles: outdent, indent
40
+ Layout/AccessModifierIndentation:
41
+ Exclude:
42
+ - 'lib/cucumber/rails/database.rb'
43
+
44
+ # Offense count: 1
45
+ # Cop supports --auto-correct.
46
+ # Configuration parameters: EnforcedStyleAlignWith.
47
+ # SupportedStylesAlignWith: either, start_of_block, start_of_line
48
+ Layout/BlockAlignment:
49
+ Exclude:
50
+ - 'features/support/env.rb'
51
+
52
+ # Offense count: 1
53
+ # Cop supports --auto-correct.
54
+ Layout/ClosingHeredocIndentation:
55
+ Exclude:
56
+ - 'features/support/legacy_web_steps_support.rb'
57
+
58
+ # Offense count: 4
59
+ # Cop supports --auto-correct.
60
+ Layout/EmptyLineAfterGuardClause:
61
+ Exclude:
62
+ - 'Rakefile'
63
+ - 'dev_tasks/yard.rake'
64
+ - 'lib/cucumber/rails/database.rb'
65
+ - 'lib/generators/cucumber/install/install_generator.rb'
66
+
67
+ # Offense count: 3
68
+ # Cop supports --auto-correct.
69
+ Layout/EmptyLineAfterMagicComment:
70
+ Exclude:
71
+ - 'Rakefile'
72
+ - 'cucumber-rails.gemspec'
73
+ - 'spec/cucumber/rails/database_spec.rb'
74
+
75
+ # Offense count: 3
76
+ # Cop supports --auto-correct.
77
+ # Configuration parameters: EnforcedStyle.
78
+ # SupportedStyles: empty_lines, no_empty_lines
79
+ Layout/EmptyLinesAroundBlockBody:
80
+ Exclude:
81
+ - 'spec/cucumber/rails/database_spec.rb'
82
+ - 'spec/generators/cucumber/install/install_generator_spec.rb'
83
+
84
+ # Offense count: 1
85
+ # Cop supports --auto-correct.
86
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
87
+ Exclude:
88
+ - 'lib/cucumber/rails/hooks/database_cleaner.rb'
89
+
90
+ # Offense count: 2
91
+ # Cop supports --auto-correct.
92
+ # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
93
+ Layout/ExtraSpacing:
94
+ Exclude:
95
+ - 'lib/cucumber/rails/database.rb'
96
+ - 'spec/generators/cucumber/install/install_generator_spec.rb'
97
+
98
+ # Offense count: 2
99
+ # Cop supports --auto-correct.
100
+ # Configuration parameters: EnforcedStyle.
101
+ # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
102
+ Layout/IndentHeredoc:
103
+ Exclude:
104
+ - 'features/support/legacy_web_steps_support.rb'
105
+
106
+ # Offense count: 1
107
+ # Cop supports --auto-correct.
108
+ # Configuration parameters: Width, IgnoredPatterns.
109
+ Layout/IndentationWidth:
110
+ Exclude:
111
+ - 'features/support/env.rb'
112
+
113
+ # Offense count: 2
114
+ # Cop supports --auto-correct.
115
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
116
+ # SupportedStyles: aligned, indented
117
+ Layout/MultilineOperationIndentation:
118
+ Exclude:
119
+ - 'features/support/env.rb'
120
+
121
+ # Offense count: 2
122
+ # Cop supports --auto-correct.
123
+ Layout/SpaceAroundKeyword:
124
+ Exclude:
125
+ - 'features/step_definitions/cucumber_rails_steps.rb'
126
+ - 'features/support/env.rb'
127
+
128
+ # Offense count: 2
129
+ # Cop supports --auto-correct.
130
+ # Configuration parameters: AllowForAlignment.
131
+ Layout/SpaceAroundOperators:
132
+ Exclude:
133
+ - 'dev_tasks/yard.rake'
134
+ - 'lib/cucumber/rails/database.rb'
135
+
136
+ # Offense count: 3
137
+ # Cop supports --auto-correct.
138
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
139
+ # SupportedStyles: space, no_space
140
+ # SupportedStylesForEmptyBraces: space, no_space
141
+ Layout/SpaceBeforeBlockBraces:
142
+ Exclude:
143
+ - 'lib/cucumber/rails.rb'
144
+ - 'lib/cucumber/rails/database.rb'
145
+
146
+ # Offense count: 1
147
+ # Cop supports --auto-correct.
148
+ Layout/SpaceBeforeComma:
149
+ Exclude:
150
+ - 'features/step_definitions/cucumber_rails_steps.rb'
151
+
152
+ # Offense count: 2
153
+ # Cop supports --auto-correct.
154
+ Layout/SpaceInsidePercentLiteralDelimiters:
155
+ Exclude:
156
+ - 'lib/cucumber/rails/database.rb'
157
+
158
+ # Offense count: 1
159
+ # Cop supports --auto-correct.
160
+ # Configuration parameters: EnforcedStyle.
161
+ # SupportedStyles: space, no_space
162
+ Layout/SpaceInsideStringInterpolation:
163
+ Exclude:
164
+ - 'lib/cucumber/rails/database.rb'
165
+
166
+ # Offense count: 2
167
+ # Cop supports --auto-correct.
168
+ # Configuration parameters: AllowInHeredoc.
169
+ Layout/TrailingWhitespace:
170
+ Exclude:
171
+ - 'features/step_definitions/cucumber_rails_steps.rb'
172
+ - 'features/support/env.rb'
173
+
174
+ # Offense count: 10
175
+ Lint/AmbiguousRegexpLiteral:
176
+ Exclude:
177
+ - 'features/step_definitions/cucumber_rails_steps.rb'
178
+
179
+ # Offense count: 2
180
+ Lint/HandleExceptions:
181
+ Exclude:
182
+ - 'lib/cucumber/rails/hooks/database_cleaner.rb'
183
+ - 'lib/cucumber/rails/world.rb'
184
+
185
+ # Offense count: 1
186
+ # Cop supports --auto-correct.
187
+ Lint/ScriptPermission:
188
+ Exclude:
189
+ - 'lib/generators/cucumber/install/templates/script/cucumber'
190
+
191
+ # Offense count: 1
192
+ # Cop supports --auto-correct.
193
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
194
+ Lint/UnusedBlockArgument:
195
+ Exclude:
196
+ - 'Rakefile'
197
+
198
+ # Offense count: 3
199
+ Lint/UselessAssignment:
200
+ Exclude:
201
+ - 'lib/cucumber/rails/hooks/database_cleaner.rb'
202
+ - 'lib/cucumber/rails/rspec.rb'
203
+ - 'lib/cucumber/rails/world.rb'
204
+
205
+ # Offense count: 4
206
+ Metrics/AbcSize:
207
+ Max: 23
208
+
209
+ # Offense count: 4
210
+ # Configuration parameters: CountComments, ExcludedMethods.
211
+ # ExcludedMethods: refine
212
+ Metrics/BlockLength:
213
+ Max: 36
214
+
215
+ # Offense count: 4
216
+ # Configuration parameters: CountComments, ExcludedMethods.
217
+ Metrics/MethodLength:
218
+ Max: 188
219
+
220
+ # Offense count: 1
221
+ # Configuration parameters: CountComments.
222
+ Metrics/ModuleLength:
223
+ Max: 209
224
+
225
+ # Offense count: 1
226
+ Metrics/PerceivedComplexity:
227
+ Max: 8
228
+
229
+ # Offense count: 2
230
+ # Configuration parameters: Blacklist.
231
+ # Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
232
+ Naming/HeredocDelimiterNaming:
233
+ Exclude:
234
+ - 'features/support/legacy_web_steps_support.rb'
235
+
236
+ # Offense count: 1
237
+ # Configuration parameters: EnforcedStyle.
238
+ # SupportedStyles: snake_case, normalcase, non_integer
239
+ Naming/VariableNumber:
240
+ Exclude:
241
+ - 'lib/cucumber/rails/rspec.rb'
242
+
243
+ # Offense count: 2
244
+ # Cop supports --auto-correct.
245
+ Performance/Casecmp:
246
+ Exclude:
247
+ - 'lib/cucumber/rails/capybara/javascript_emulation.rb'
248
+
249
+ # Offense count: 1
250
+ # Cop supports --auto-correct.
251
+ # Configuration parameters: AutoCorrect.
252
+ Performance/StartWith:
253
+ Exclude:
254
+ - 'features/step_definitions/cucumber_rails_steps.rb'
255
+
256
+ # Offense count: 1
257
+ # Cop supports --auto-correct.
258
+ # Configuration parameters: EnforcedStyle.
259
+ # SupportedStyles: always, conditionals
260
+ Style/AndOr:
261
+ Exclude:
262
+ - 'lib/cucumber/rails/capybara/javascript_emulation.rb'
263
+
264
+ # Offense count: 4
265
+ # Cop supports --auto-correct.
266
+ # Configuration parameters: AutoCorrect, EnforcedStyle.
267
+ # SupportedStyles: nested, compact
268
+ Style/ClassAndModuleChildren:
269
+ Exclude:
270
+ - 'lib/cucumber/rails/action_controller.rb'
271
+ - 'lib/cucumber/rails/application.rb'
272
+ - 'lib/cucumber/rails/capybara/javascript_emulation.rb'
273
+ - 'lib/cucumber/rails/hooks/active_record.rb'
274
+
275
+ # Offense count: 1
276
+ Style/CommentedKeyword:
277
+ Exclude:
278
+ - 'lib/cucumber/rails/world.rb'
279
+
280
+ # Offense count: 14
281
+ Style/Documentation:
282
+ Exclude:
283
+ - 'spec/**/*'
284
+ - 'test/**/*'
285
+ - 'features/step_definitions/cucumber_rails_steps.rb'
286
+ - 'features/support/bundler_pre_support.rb'
287
+ - 'features/support/env.rb'
288
+ - 'features/support/legacy_web_steps_support.rb'
289
+ - 'lib/cucumber/rails/action_controller.rb'
290
+ - 'lib/cucumber/rails/capybara/javascript_emulation.rb'
291
+ - 'lib/cucumber/rails/database.rb'
292
+ - 'lib/cucumber/rails/hooks/active_record.rb'
293
+ - 'lib/generators/cucumber/install/install_generator.rb'
294
+
295
+ # Offense count: 1
296
+ Style/DoubleNegation:
297
+ Exclude:
298
+ - 'lib/cucumber/rails/action_controller.rb'
299
+
300
+ # Offense count: 3
301
+ # Cop supports --auto-correct.
302
+ Style/Encoding:
303
+ Exclude:
304
+ - 'Rakefile'
305
+ - 'cucumber-rails.gemspec'
306
+ - 'spec/cucumber/rails/database_spec.rb'
307
+
308
+ # Offense count: 3
309
+ # Cop supports --auto-correct.
310
+ Style/ExpandPathArguments:
311
+ Exclude:
312
+ - 'cucumber-rails.gemspec'
313
+ - 'lib/generators/cucumber/install/install_generator.rb'
314
+ - 'spec/generators/cucumber/install/install_generator_spec.rb'
315
+
316
+ # Offense count: 1
317
+ # Configuration parameters: .
318
+ # SupportedStyles: annotated, template, unannotated
319
+ Style/FormatStringToken:
320
+ EnforcedStyle: template
321
+
322
+ # Offense count: 3
323
+ # Configuration parameters: MinBodyLength.
324
+ Style/GuardClause:
325
+ Exclude:
326
+ - 'features/step_definitions/cucumber_rails_steps.rb'
327
+ - 'lib/cucumber/rails/database.rb'
328
+ - 'lib/generators/cucumber/install/install_generator.rb'
329
+
330
+ # Offense count: 4
331
+ # Cop supports --auto-correct.
332
+ Style/IfUnlessModifier:
333
+ Exclude:
334
+ - 'Rakefile'
335
+ - 'dev_tasks/yard.rake'
336
+ - 'features/step_definitions/cucumber_rails_steps.rb'
337
+ - 'lib/cucumber/rails/database.rb'
338
+
339
+ # Offense count: 1
340
+ Style/MixinUsage:
341
+ Exclude:
342
+ - 'lib/cucumber/rails/rspec.rb'
343
+
344
+ # Offense count: 1
345
+ # Cop supports --auto-correct.
346
+ # Configuration parameters: EnforcedStyle.
347
+ # SupportedStyles: literals, strict
348
+ Style/MutableConstant:
349
+ Exclude:
350
+ - 'lib/cucumber/rails/database.rb'
351
+
352
+ # Offense count: 1
353
+ # Cop supports --auto-correct.
354
+ # Configuration parameters: Whitelist.
355
+ # Whitelist: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
356
+ Style/NestedParenthesizedCalls:
357
+ Exclude:
358
+ - 'lib/cucumber/rails/capybara/select_dates_and_times.rb'
359
+
360
+ # Offense count: 1
361
+ # Cop supports --auto-correct.
362
+ # Configuration parameters: EnforcedOctalStyle.
363
+ # SupportedOctalStyles: zero_with_o, zero_only
364
+ Style/NumericLiteralPrefix:
365
+ Exclude:
366
+ - 'lib/generators/cucumber/install/install_generator.rb'
367
+
368
+ # Offense count: 1
369
+ # Cop supports --auto-correct.
370
+ # Configuration parameters: PreferredDelimiters.
371
+ Style/PercentLiteralDelimiters:
372
+ Exclude:
373
+ - 'lib/cucumber/rails/database.rb'
374
+
375
+ # Offense count: 3
376
+ # Cop supports --auto-correct.
377
+ Style/RedundantSelf:
378
+ Exclude:
379
+ - 'lib/cucumber/rails/capybara/javascript_emulation.rb'
380
+ - 'lib/cucumber/rails/hooks/active_record.rb'
381
+ - 'spec/spec_helper.rb'
382
+
383
+ # Offense count: 2
384
+ # Cop supports --auto-correct.
385
+ # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
386
+ # SupportedStyles: slashes, percent_r, mixed
387
+ Style/RegexpLiteral:
388
+ Exclude:
389
+ - 'lib/cucumber/rails.rb'
390
+
391
+ # Offense count: 1
392
+ # Cop supports --auto-correct.
393
+ # Configuration parameters: AllowIfMethodIsEmpty.
394
+ Style/SingleLineMethods:
395
+ Exclude:
396
+ - 'lib/cucumber/rails/world.rb'
397
+
398
+ # Offense count: 2
399
+ # Cop supports --auto-correct.
400
+ # Configuration parameters: EnforcedStyle.
401
+ # SupportedStyles: use_perl_names, use_english_names
402
+ Style/SpecialGlobalVars:
403
+ Exclude:
404
+ - 'Rakefile'
405
+ - 'features/support/env.rb'
406
+
407
+ # Offense count: 90
408
+ # Cop supports --auto-correct.
409
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
410
+ # SupportedStyles: single_quotes, double_quotes
411
+ Style/StringLiterals:
412
+ Exclude:
413
+ - 'Appraisals'
414
+ - 'Gemfile'
415
+ - 'Rakefile'
416
+ - 'cucumber-rails.gemspec'
417
+ - 'dev_tasks/yard.rake'
418
+ - 'features/step_definitions/cucumber_rails_steps.rb'
419
+ - 'gemfiles/rails_4_2.gemfile'
420
+ - 'gemfiles/rails_5_0.gemfile'
421
+ - 'gemfiles/rails_5_1.gemfile'
422
+ - 'gemfiles/rails_5_2.gemfile'
423
+ - 'gemfiles/rails_6_0.gemfile'
424
+ - 'spec/spec_helper.rb'
425
+
426
+ # Offense count: 11
427
+ # Cop supports --auto-correct.
428
+ # Configuration parameters: MinSize.
429
+ # SupportedStyles: percent, brackets
430
+ Style/SymbolArray:
431
+ EnforcedStyle: brackets
432
+
433
+ # Offense count: 2
434
+ # Cop supports --auto-correct.
435
+ Style/UnneededInterpolation:
436
+ Exclude:
437
+ - 'features/step_definitions/cucumber_rails_steps.rb'
438
+
439
+ # Offense count: 51
440
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
441
+ # URISchemes: http, https
442
+ Metrics/LineLength:
443
+ Max: 254