cucumber 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -2
  3. data/CONTRIBUTING.md +1 -0
  4. data/README.md +6 -7
  5. data/lib/autotest/cucumber.rb +1 -0
  6. data/lib/autotest/cucumber_mixin.rb +1 -0
  7. data/lib/autotest/cucumber_rails.rb +1 -0
  8. data/lib/autotest/cucumber_rails_rspec.rb +1 -0
  9. data/lib/autotest/cucumber_rails_rspec2.rb +1 -0
  10. data/lib/autotest/cucumber_rspec.rb +1 -0
  11. data/lib/autotest/cucumber_rspec2.rb +1 -0
  12. data/lib/autotest/discover.rb +1 -0
  13. data/lib/cucumber.rb +1 -0
  14. data/lib/cucumber/cli/configuration.rb +1 -0
  15. data/lib/cucumber/cli/main.rb +2 -2
  16. data/lib/cucumber/cli/options.rb +42 -40
  17. data/lib/cucumber/cli/profile_loader.rb +5 -7
  18. data/lib/cucumber/cli/rerun_file.rb +1 -0
  19. data/lib/cucumber/configuration.rb +1 -0
  20. data/lib/cucumber/constantize.rb +6 -5
  21. data/lib/cucumber/core_ext/string.rb +1 -0
  22. data/lib/cucumber/deprecate.rb +1 -1
  23. data/lib/cucumber/encoding.rb +2 -1
  24. data/lib/cucumber/errors.rb +1 -0
  25. data/lib/cucumber/events.rb +1 -1
  26. data/lib/cucumber/events/gherkin_source_read.rb +1 -4
  27. data/lib/cucumber/events/step_activated.rb +4 -5
  28. data/lib/cucumber/events/step_definition_registered.rb +4 -8
  29. data/lib/cucumber/events/test_case_finished.rb +0 -4
  30. data/lib/cucumber/events/test_case_started.rb +0 -4
  31. data/lib/cucumber/events/test_run_finished.rb +2 -3
  32. data/lib/cucumber/events/test_run_started.rb +2 -4
  33. data/lib/cucumber/events/test_step_finished.rb +0 -4
  34. data/lib/cucumber/events/test_step_started.rb +1 -5
  35. data/lib/cucumber/file_specs.rb +2 -1
  36. data/lib/cucumber/filters.rb +1 -0
  37. data/lib/cucumber/filters/activate_steps.rb +1 -1
  38. data/lib/cucumber/filters/apply_after_hooks.rb +1 -0
  39. data/lib/cucumber/filters/apply_after_step_hooks.rb +1 -0
  40. data/lib/cucumber/filters/apply_around_hooks.rb +1 -0
  41. data/lib/cucumber/filters/apply_before_hooks.rb +1 -0
  42. data/lib/cucumber/filters/broadcast_test_run_started_event.rb +2 -1
  43. data/lib/cucumber/filters/gated_receiver.rb +1 -2
  44. data/lib/cucumber/filters/prepare_world.rb +2 -5
  45. data/lib/cucumber/filters/quit.rb +2 -3
  46. data/lib/cucumber/filters/randomizer.rb +6 -7
  47. data/lib/cucumber/filters/retry.rb +2 -2
  48. data/lib/cucumber/filters/tag_limits.rb +2 -2
  49. data/lib/cucumber/filters/tag_limits/test_case_index.rb +1 -2
  50. data/lib/cucumber/filters/tag_limits/verifier.rb +1 -2
  51. data/lib/cucumber/formatter/ansicolor.rb +13 -12
  52. data/lib/cucumber/formatter/backtrace_filter.rb +1 -2
  53. data/lib/cucumber/formatter/console.rb +10 -11
  54. data/lib/cucumber/formatter/console_counts.rb +4 -4
  55. data/lib/cucumber/formatter/console_issues.rb +3 -3
  56. data/lib/cucumber/formatter/duration.rb +1 -0
  57. data/lib/cucumber/formatter/duration_extractor.rb +1 -1
  58. data/lib/cucumber/formatter/fail_fast.rb +9 -6
  59. data/lib/cucumber/formatter/fanout.rb +1 -3
  60. data/lib/cucumber/formatter/hook_query_visitor.rb +1 -0
  61. data/lib/cucumber/formatter/html.rb +27 -31
  62. data/lib/cucumber/formatter/html_builder.rb +2 -1
  63. data/lib/cucumber/formatter/ignore_missing_messages.rb +1 -2
  64. data/lib/cucumber/formatter/interceptor.rb +18 -5
  65. data/lib/cucumber/formatter/io.rb +1 -0
  66. data/lib/cucumber/formatter/json.rb +2 -1
  67. data/lib/cucumber/formatter/json_pretty.rb +1 -0
  68. data/lib/cucumber/formatter/junit.rb +16 -15
  69. data/lib/cucumber/formatter/pretty.rb +3 -2
  70. data/lib/cucumber/formatter/progress.rb +3 -2
  71. data/lib/cucumber/formatter/rerun.rb +1 -0
  72. data/lib/cucumber/formatter/stepdefs.rb +1 -0
  73. data/lib/cucumber/formatter/steps.rb +2 -2
  74. data/lib/cucumber/formatter/summary.rb +1 -1
  75. data/lib/cucumber/formatter/unicode.rb +2 -2
  76. data/lib/cucumber/formatter/usage.rb +21 -18
  77. data/lib/cucumber/gherkin/data_table_parser.rb +1 -0
  78. data/lib/cucumber/gherkin/formatter/ansi_escapes.rb +86 -85
  79. data/lib/cucumber/gherkin/formatter/escaping.rb +13 -12
  80. data/lib/cucumber/gherkin/i18n.rb +1 -0
  81. data/lib/cucumber/gherkin/steps_parser.rb +1 -0
  82. data/lib/cucumber/glue/dsl.rb +1 -0
  83. data/lib/cucumber/glue/hook.rb +1 -0
  84. data/lib/cucumber/glue/invoke_in_world.rb +3 -3
  85. data/lib/cucumber/glue/proto_world.rb +8 -9
  86. data/lib/cucumber/glue/registry_and_more.rb +13 -12
  87. data/lib/cucumber/glue/snippet.rb +1 -5
  88. data/lib/cucumber/glue/step_definition.rb +9 -9
  89. data/lib/cucumber/glue/world_factory.rb +0 -2
  90. data/lib/cucumber/hooks.rb +1 -3
  91. data/lib/cucumber/load_path.rb +1 -0
  92. data/lib/cucumber/multiline_argument.rb +2 -2
  93. data/lib/cucumber/multiline_argument/data_table.rb +10 -10
  94. data/lib/cucumber/multiline_argument/data_table/diff_matrices.rb +4 -7
  95. data/lib/cucumber/multiline_argument/doc_string.rb +1 -0
  96. data/lib/cucumber/platform.rb +2 -1
  97. data/lib/cucumber/project_initializer.rb +1 -1
  98. data/lib/cucumber/rake/task.rb +7 -4
  99. data/lib/cucumber/rspec/disable_option_parser.rb +1 -0
  100. data/lib/cucumber/rspec/doubles.rb +1 -0
  101. data/lib/cucumber/running_test_case.rb +2 -1
  102. data/lib/cucumber/runtime.rb +5 -5
  103. data/lib/cucumber/runtime/after_hooks.rb +1 -0
  104. data/lib/cucumber/runtime/before_hooks.rb +1 -0
  105. data/lib/cucumber/runtime/for_programming_languages.rb +8 -7
  106. data/lib/cucumber/runtime/step_hooks.rb +2 -0
  107. data/lib/cucumber/runtime/support_code.rb +3 -7
  108. data/lib/cucumber/runtime/user_interface.rb +2 -3
  109. data/lib/cucumber/step_argument.rb +1 -0
  110. data/lib/cucumber/step_definition_light.rb +2 -1
  111. data/lib/cucumber/step_definitions.rb +1 -0
  112. data/lib/cucumber/step_match.rb +5 -7
  113. data/lib/cucumber/step_match_search.rb +1 -2
  114. data/lib/cucumber/term/ansicolor.rb +30 -30
  115. data/lib/cucumber/unit.rb +1 -0
  116. data/lib/cucumber/version +1 -1
  117. data/lib/simplecov_setup.rb +1 -0
  118. metadata +61 -117
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Cucumber
3
4
  class Unit
4
5
  def initialize(step_collection)
@@ -1 +1 @@
1
- 3.1.0
1
+ 3.1.1
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  if ENV['SIMPLECOV']
3
4
  begin
4
5
  # Suppress warnings in order not to pollute stdout which tests expectations rely on
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy
@@ -10,8 +10,22 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-11-28 00:00:00.000000000 Z
13
+ date: 2018-06-03 00:00:00.000000000 Z
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: builder
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: 2.1.2
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: 2.1.2
15
29
  - !ruby/object:Gem::Dependency
16
30
  name: cucumber-core
17
31
  requirement: !ruby/object:Gem::Requirement
@@ -27,19 +41,33 @@ dependencies:
27
41
  - !ruby/object:Gem::Version
28
42
  version: 3.1.0
29
43
  - !ruby/object:Gem::Dependency
30
- name: builder
44
+ name: cucumber-expressions
31
45
  requirement: !ruby/object:Gem::Requirement
32
46
  requirements:
33
- - - ">="
47
+ - - "~>"
34
48
  - !ruby/object:Gem::Version
35
- version: 2.1.2
49
+ version: 6.0.0
36
50
  type: :runtime
37
51
  prerelease: false
38
52
  version_requirements: !ruby/object:Gem::Requirement
39
53
  requirements:
40
- - - ">="
54
+ - - "~>"
41
55
  - !ruby/object:Gem::Version
42
- version: 2.1.2
56
+ version: 6.0.0
57
+ - !ruby/object:Gem::Dependency
58
+ name: cucumber-wire
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: 0.0.1
64
+ type: :runtime
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: 0.0.1
43
71
  - !ruby/object:Gem::Dependency
44
72
  name: diff-lcs
45
73
  requirement: !ruby/object:Gem::Requirement
@@ -60,14 +88,14 @@ dependencies:
60
88
  requirements:
61
89
  - - "~>"
62
90
  - !ruby/object:Gem::Version
63
- version: '5.0'
91
+ version: 5.1.0
64
92
  type: :runtime
65
93
  prerelease: false
66
94
  version_requirements: !ruby/object:Gem::Requirement
67
95
  requirements:
68
96
  - - "~>"
69
97
  - !ruby/object:Gem::Version
70
- version: '5.0'
98
+ version: 5.1.0
71
99
  - !ruby/object:Gem::Dependency
72
100
  name: multi_json
73
101
  requirement: !ruby/object:Gem::Requirement
@@ -102,48 +130,6 @@ dependencies:
102
130
  - - ">="
103
131
  - !ruby/object:Gem::Version
104
132
  version: 0.1.2
105
- - !ruby/object:Gem::Dependency
106
- name: cucumber-wire
107
- requirement: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - "~>"
110
- - !ruby/object:Gem::Version
111
- version: 0.0.1
112
- type: :runtime
113
- prerelease: false
114
- version_requirements: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - "~>"
117
- - !ruby/object:Gem::Version
118
- version: 0.0.1
119
- - !ruby/object:Gem::Dependency
120
- name: cucumber-expressions
121
- requirement: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - "~>"
124
- - !ruby/object:Gem::Version
125
- version: 5.0.4
126
- type: :runtime
127
- prerelease: false
128
- version_requirements: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - "~>"
131
- - !ruby/object:Gem::Version
132
- version: 5.0.4
133
- - !ruby/object:Gem::Dependency
134
- name: bundler
135
- requirement: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: 1.16.0
140
- type: :development
141
- prerelease: false
142
- version_requirements: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - "~>"
145
- - !ruby/object:Gem::Version
146
- version: 1.16.0
147
133
  - !ruby/object:Gem::Dependency
148
134
  name: aruba
149
135
  requirement: !ruby/object:Gem::Requirement
@@ -187,89 +173,89 @@ dependencies:
187
173
  - !ruby/object:Gem::Version
188
174
  version: 1.8.1
189
175
  - !ruby/object:Gem::Dependency
190
- name: rake
176
+ name: pry
191
177
  requirement: !ruby/object:Gem::Requirement
192
178
  requirements:
193
179
  - - ">="
194
180
  - !ruby/object:Gem::Version
195
- version: 0.9.2
181
+ version: '0'
196
182
  type: :development
197
183
  prerelease: false
198
184
  version_requirements: !ruby/object:Gem::Requirement
199
185
  requirements:
200
186
  - - ">="
201
187
  - !ruby/object:Gem::Version
202
- version: 0.9.2
188
+ version: '0'
203
189
  - !ruby/object:Gem::Dependency
204
- name: rspec
190
+ name: rake
205
191
  requirement: !ruby/object:Gem::Requirement
206
192
  requirements:
207
193
  - - ">="
208
194
  - !ruby/object:Gem::Version
209
- version: '3.6'
195
+ version: 0.9.2
210
196
  type: :development
211
197
  prerelease: false
212
198
  version_requirements: !ruby/object:Gem::Requirement
213
199
  requirements:
214
200
  - - ">="
215
201
  - !ruby/object:Gem::Version
216
- version: '3.6'
202
+ version: 0.9.2
217
203
  - !ruby/object:Gem::Dependency
218
- name: simplecov
204
+ name: rspec
219
205
  requirement: !ruby/object:Gem::Requirement
220
206
  requirements:
221
207
  - - ">="
222
208
  - !ruby/object:Gem::Version
223
- version: 0.6.2
209
+ version: '3.6'
224
210
  type: :development
225
211
  prerelease: false
226
212
  version_requirements: !ruby/object:Gem::Requirement
227
213
  requirements:
228
214
  - - ">="
229
215
  - !ruby/object:Gem::Version
230
- version: 0.6.2
216
+ version: '3.6'
231
217
  - !ruby/object:Gem::Dependency
232
- name: syntax
218
+ name: rubocop
233
219
  requirement: !ruby/object:Gem::Requirement
234
220
  requirements:
235
- - - ">="
221
+ - - "~>"
236
222
  - !ruby/object:Gem::Version
237
- version: 1.0.0
223
+ version: 0.52.1
238
224
  type: :development
239
225
  prerelease: false
240
226
  version_requirements: !ruby/object:Gem::Requirement
241
227
  requirements:
242
- - - ">="
228
+ - - "~>"
243
229
  - !ruby/object:Gem::Version
244
- version: 1.0.0
230
+ version: 0.52.1
245
231
  - !ruby/object:Gem::Dependency
246
- name: pry
232
+ name: simplecov
247
233
  requirement: !ruby/object:Gem::Requirement
248
234
  requirements:
249
235
  - - ">="
250
236
  - !ruby/object:Gem::Version
251
- version: '0'
237
+ version: 0.6.2
252
238
  type: :development
253
239
  prerelease: false
254
240
  version_requirements: !ruby/object:Gem::Requirement
255
241
  requirements:
256
242
  - - ">="
257
243
  - !ruby/object:Gem::Version
258
- version: '0'
244
+ version: 0.6.2
259
245
  - !ruby/object:Gem::Dependency
260
- name: rubocop
246
+ name: syntax
261
247
  requirement: !ruby/object:Gem::Requirement
262
248
  requirements:
263
- - - "~>"
249
+ - - ">="
264
250
  - !ruby/object:Gem::Version
265
- version: 0.49.0
251
+ version: 1.0.0
266
252
  type: :development
267
253
  prerelease: false
268
254
  version_requirements: !ruby/object:Gem::Requirement
269
255
  requirements:
270
- - - "~>"
256
+ - - ">="
271
257
  - !ruby/object:Gem::Version
272
- version: 0.49.0
258
+ version: 1.0.0
273
259
  - !ruby/object:Gem::Dependency
274
260
  name: octokit
275
261
  requirement: !ruby/object:Gem::Requirement
@@ -284,48 +270,6 @@ dependencies:
284
270
  - - ">="
285
271
  - !ruby/object:Gem::Version
286
272
  version: '0'
287
- - !ruby/object:Gem::Dependency
288
- name: bcat
289
- requirement: !ruby/object:Gem::Requirement
290
- requirements:
291
- - - "~>"
292
- - !ruby/object:Gem::Version
293
- version: 0.6.2
294
- type: :development
295
- prerelease: false
296
- version_requirements: !ruby/object:Gem::Requirement
297
- requirements:
298
- - - "~>"
299
- - !ruby/object:Gem::Version
300
- version: 0.6.2
301
- - !ruby/object:Gem::Dependency
302
- name: kramdown
303
- requirement: !ruby/object:Gem::Requirement
304
- requirements:
305
- - - "~>"
306
- - !ruby/object:Gem::Version
307
- version: '0.14'
308
- type: :development
309
- prerelease: false
310
- version_requirements: !ruby/object:Gem::Requirement
311
- requirements:
312
- - - "~>"
313
- - !ruby/object:Gem::Version
314
- version: '0.14'
315
- - !ruby/object:Gem::Dependency
316
- name: yard
317
- requirement: !ruby/object:Gem::Requirement
318
- requirements:
319
- - - "~>"
320
- - !ruby/object:Gem::Version
321
- version: 0.8.0
322
- type: :development
323
- prerelease: false
324
- version_requirements: !ruby/object:Gem::Requirement
325
- requirements:
326
- - - "~>"
327
- - !ruby/object:Gem::Version
328
- version: 0.8.0
329
273
  - !ruby/object:Gem::Dependency
330
274
  name: capybara
331
275
  requirement: !ruby/object:Gem::Requirement
@@ -522,8 +466,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
522
466
  version: '0'
523
467
  requirements: []
524
468
  rubyforge_project:
525
- rubygems_version: 2.6.8
469
+ rubygems_version: 2.6.13
526
470
  signing_key:
527
471
  specification_version: 4
528
- summary: cucumber-3.1.0
472
+ summary: cucumber-3.1.1
529
473
  test_files: []