cucumber-core 5.0.1 → 8.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -170,7 +170,7 @@ module Cucumber
170
170
  context "with around hooks" do
171
171
  class WithAroundHooks < Core::Filter.new(:logger)
172
172
  def test_case(test_case)
173
- base_step = Core::Test::Step.new('text', nil, nil, nil)
173
+ base_step = Core::Test::Step.new('some-random-uid', 'text', nil, nil, nil)
174
174
  test_steps = [
175
175
  base_step.with_action { logger << :step },
176
176
  ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 8.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy
@@ -12,68 +12,68 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2019-08-16 00:00:00.000000000 Z
15
+ date: 2020-08-19 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
- name: gherkin
18
+ name: cucumber-gherkin
19
19
  requirement: !ruby/object:Gem::Requirement
20
20
  requirements:
21
21
  - - "~>"
22
22
  - !ruby/object:Gem::Version
23
- version: '7.0'
23
+ version: '15.0'
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 7.0.3
26
+ version: 15.0.2
27
27
  type: :runtime
28
28
  prerelease: false
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '7.0'
33
+ version: '15.0'
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 7.0.3
36
+ version: 15.0.2
37
37
  - !ruby/object:Gem::Dependency
38
- name: cucumber-tag_expressions
38
+ name: cucumber-messages
39
39
  requirement: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
- version: '2.0'
43
+ version: '13.0'
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 2.0.2
46
+ version: 13.0.1
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '2.0'
53
+ version: '13.0'
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
- version: 2.0.2
56
+ version: 13.0.1
57
57
  - !ruby/object:Gem::Dependency
58
- name: backports
58
+ name: cucumber-tag-expressions
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: 3.15.0
64
61
  - - "~>"
65
62
  - !ruby/object:Gem::Version
66
- version: '3.15'
63
+ version: '2.0'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 2.0.4
67
67
  type: :runtime
68
68
  prerelease: false
69
69
  version_requirements: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: 3.15.0
74
71
  - - "~>"
75
72
  - !ruby/object:Gem::Version
76
- version: '3.15'
73
+ version: '2.0'
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: 2.0.4
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: coveralls
79
79
  requirement: !ruby/object:Gem::Requirement
@@ -100,58 +100,78 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '12.3'
103
+ version: '13.0'
104
104
  - - ">="
105
105
  - !ruby/object:Gem::Version
106
- version: 12.3.3
106
+ version: 13.0.1
107
107
  type: :development
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
110
110
  requirements:
111
111
  - - "~>"
112
112
  - !ruby/object:Gem::Version
113
- version: '12.3'
113
+ version: '13.0'
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: 12.3.3
116
+ version: 13.0.1
117
117
  - !ruby/object:Gem::Dependency
118
- name: rspec
118
+ name: rubocop
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- version: 3.8.0
124
121
  - - "~>"
125
122
  - !ruby/object:Gem::Version
126
- version: '3.8'
123
+ version: '0.89'
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: 0.89.1
127
127
  type: :development
128
128
  prerelease: false
129
129
  version_requirements: !ruby/object:Gem::Requirement
130
130
  requirements:
131
+ - - "~>"
132
+ - !ruby/object:Gem::Version
133
+ version: '0.89'
131
134
  - - ">="
132
135
  - !ruby/object:Gem::Version
133
- version: 3.8.0
136
+ version: 0.89.1
137
+ - !ruby/object:Gem::Dependency
138
+ name: rspec
139
+ requirement: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - "~>"
142
+ - !ruby/object:Gem::Version
143
+ version: '3.9'
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: 3.9.0
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
134
151
  - - "~>"
135
152
  - !ruby/object:Gem::Version
136
- version: '3.8'
153
+ version: '3.9'
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: 3.9.0
137
157
  - !ruby/object:Gem::Dependency
138
158
  name: unindent
139
159
  requirement: !ruby/object:Gem::Requirement
140
160
  requirements:
141
- - - ">="
161
+ - - "~>"
142
162
  - !ruby/object:Gem::Version
143
163
  version: '1.0'
144
- - - "~>"
164
+ - - ">="
145
165
  - !ruby/object:Gem::Version
146
166
  version: '1.0'
147
167
  type: :development
148
168
  prerelease: false
149
169
  version_requirements: !ruby/object:Gem::Requirement
150
170
  requirements:
151
- - - ">="
171
+ - - "~>"
152
172
  - !ruby/object:Gem::Version
153
173
  version: '1.0'
154
- - - "~>"
174
+ - - ">="
155
175
  - !ruby/object:Gem::Version
156
176
  version: '1.0'
157
177
  description: Core library for the Cucumber BDD app
@@ -194,7 +214,6 @@ files:
194
214
  - lib/cucumber/core/test/tag.rb
195
215
  - lib/cucumber/core/test/timer.rb
196
216
  - lib/cucumber/core/version.rb
197
- - spec/capture_warnings.rb
198
217
  - spec/coverage.rb
199
218
  - spec/cucumber/core/compiler_spec.rb
200
219
  - spec/cucumber/core/event_bus_spec.rb
@@ -242,10 +261,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
242
261
  - !ruby/object:Gem::Version
243
262
  version: '0'
244
263
  requirements: []
245
- rubygems_version: 3.0.3
264
+ rubygems_version: 3.1.2
246
265
  signing_key:
247
266
  specification_version: 4
248
- summary: cucumber-core-5.0.1
267
+ summary: cucumber-core-8.0.1
249
268
  test_files:
250
269
  - spec/cucumber/core/test/runner_spec.rb
251
270
  - spec/cucumber/core/test/doc_string_spec.rb
@@ -267,6 +286,5 @@ test_files:
267
286
  - spec/cucumber/core/event_bus_spec.rb
268
287
  - spec/cucumber/core/filter_spec.rb
269
288
  - spec/cucumber/core_spec.rb
270
- - spec/capture_warnings.rb
271
289
  - spec/coverage.rb
272
290
  - spec/report_api_spy.rb
@@ -1,74 +0,0 @@
1
- # frozen_string_literal: true
2
- # With thanks to @myronmarston
3
- # https://github.com/vcr/vcr/blob/master/spec/capture_warnings.rb
4
-
5
- module CaptureWarnings
6
- def report_warnings(&block)
7
- current_dir = Dir.pwd
8
- warnings, errors = capture_error(&block).partition { |line| line.include?('warning') }
9
- project_warnings, other_warnings = warnings.uniq.partition { |line| line.include?(current_dir) }
10
-
11
- if errors.any?
12
- puts errors.join("\n")
13
- end
14
-
15
- if other_warnings.any?
16
- puts "#{ other_warnings.count } non-cucumber-core warnings detected, set VIEW_OTHER_WARNINGS=true to see them."
17
- print_warnings('other', other_warnings) if ENV['VIEW_OTHER_WARNINGS']
18
- end
19
-
20
- # Until they fix https://bugs.ruby-lang.org/issues/10661
21
- if RUBY_VERSION == "2.2.0"
22
- project_warnings = project_warnings.reject { |w| w =~ /warning: possible reference to past scope/ }
23
- end
24
-
25
- if project_warnings.any?
26
- puts "#{ project_warnings.count } cucumber-core warnings detected"
27
- print_warnings('cucumber-core', project_warnings)
28
- fail "Please remove all cucumber-core warnings."
29
- end
30
-
31
- ensure_system_exit_if_required
32
- end
33
-
34
- def capture_error(&block)
35
- old_stderr = STDERR.clone
36
- pipe_r, pipe_w = IO.pipe
37
- pipe_r.sync = true
38
- error = String.new
39
- reader = Thread.new do
40
- begin
41
- loop do
42
- error << pipe_r.readpartial(1024)
43
- end
44
- rescue EOFError
45
- end
46
- end
47
- STDERR.reopen(pipe_w)
48
- block.call
49
- ensure
50
- capture_system_exit
51
- STDERR.reopen(old_stderr)
52
- pipe_w.close
53
- reader.join
54
- return error.split("\n")
55
- end
56
-
57
- def print_warnings(type, warnings)
58
- puts
59
- puts "-" * 30 + " #{type} warnings: " + "-" * 30
60
- puts
61
- puts warnings.join("\n")
62
- puts
63
- puts "-" * 75
64
- puts
65
- end
66
-
67
- def ensure_system_exit_if_required
68
- raise @system_exit if @system_exit
69
- end
70
-
71
- def capture_system_exit
72
- @system_exit = $!
73
- end
74
- end