cucumber 4.0.1 → 4.1.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
  SHA256:
3
- metadata.gz: 1c37c07474eae1f9984186ac8f920b7440a5865fb8581d56fe9299d794d6b6c2
4
- data.tar.gz: 234b2ccdba26251b7017dab7f73eceb310057ab9e68c64686aee94d8e33fc818
3
+ metadata.gz: a1f051aade812ee4bb28ab3670734b189ade8bc0cd0150a686e21874594ae62f
4
+ data.tar.gz: 80c272791953dc442492c0571acffc628cb7b1f37a28a00adeef413bc7f76e1b
5
5
  SHA512:
6
- metadata.gz: 7aefc0d27a3f54413f8c2f0e4810c32f96374925af78710caca6488617b699c190682eaf7da78fe77fc2060dae77d6ab15871d12025b3520dbed7ce8eb7232a6
7
- data.tar.gz: 35a3d9a9ed8b5cb1e958a1c14e5bf4050743357382e2a9682645f90e0866c6285f23849217c15bdd71915f122307aabe15dc5dee2c6028abf195289583da522e
6
+ metadata.gz: 5026e105060af702f3b0adf50f3925ce04fdee7de79c2482093831cab838e2a605d69c056733d7820b6592c7229ee93e1ce64b80ae373ac7acd29f11d113d3a8
7
+ data.tar.gz: c66fe1effa60270eb430bc2c381252e5c3da5dec524e49c58a7e508febaeb0b1398791f75eba5542395672b2431dafcfb820da2870410a52474ebc157bfbe333
@@ -10,6 +10,26 @@ Please visit [cucumber/CONTRIBUTING.md](https://github.com/cucumber/cucumber/blo
10
10
 
11
11
  ----
12
12
 
13
+ ## [4.1.0](https://github.com/cucumber/cucumber-ruby/compare/v4.0.1...v4.1.0)
14
+
15
+ ### Changed
16
+
17
+ * Use [`cucumber-create-meta`](https://rubygems.org/gems/cucumber-create-meta) to produce the `Meta` message before the run.
18
+
19
+ * Updated gems:
20
+ * `cucumber-wire` ~> 3.1.0
21
+ * `cucumber-core` ~> 7.1.0
22
+ * `cucumber-gherkin` ~> 14.0.1
23
+ * Fix issue with empty feature files [#1427](https://github.com/cucumber/cucumber-ruby/issues/1427)
24
+ * `cucumber-messages` ~> 12.2.0
25
+ * `cucumber-html-formatter` ~> 7.0.0
26
+ * Fix issue with Hook attachments [#1420](https://github.com/cucumber/cucumber-ruby/issues/1420)
27
+
28
+ ### Fixed
29
+
30
+ * `AfterStep` hook do not cause issue when running `message` formatter. [#1433](https://github.com/cucumber/cucumber-ruby/issues/1433) - [#1434](https://github.com/cucumber/cucumber-ruby/pull/1434)
31
+
32
+
13
33
  ## [4.0.1](https://github.com/cucumber/cucumber-ruby/compare/v4.0.0...v4.0.1)
14
34
 
15
35
  ### Fixed
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'fileutils'
4
4
  require 'cucumber/configuration'
5
+ require 'cucumber/create_meta'
5
6
  require 'cucumber/load_path'
6
7
  require 'cucumber/formatter/duration'
7
8
  require 'cucumber/file_specs'
@@ -65,7 +66,7 @@ module Cucumber
65
66
  require 'cucumber/wire/plugin'
66
67
  def run!
67
68
  @configuration.notify :envelope, Cucumber::Messages::Envelope.new(
68
- meta: make_meta
69
+ meta: Cucumber::CreateMeta.create_meta('cucumber-ruby', Cucumber::VERSION)
69
70
  )
70
71
 
71
72
  load_step_definitions
@@ -105,27 +106,6 @@ module Cucumber
105
106
  Core::Test::DocString.new(string_without_triple_quotes, content_type)
106
107
  end
107
108
 
108
- def make_meta
109
- Cucumber::Messages::Meta.new(
110
- protocol_version: Cucumber::Messages::VERSION,
111
- implementation: Cucumber::Messages::Meta::Product.new(
112
- name: 'cucumber-ruby',
113
- version: Cucumber::VERSION
114
- ),
115
- runtime: Cucumber::Messages::Meta::Product.new(
116
- name: RUBY_ENGINE,
117
- version: RUBY_VERSION
118
- ),
119
- os: Cucumber::Messages::Meta::Product.new(
120
- name: RbConfig::CONFIG['target_os'],
121
- version: Sys::Uname.uname.version
122
- ),
123
- cpu: Cucumber::Messages::Meta::Product.new(
124
- name: RbConfig::CONFIG['target_cpu']
125
- )
126
- )
127
- end
128
-
129
109
  private
130
110
 
131
111
  def fire_after_configuration_hook #:nodoc:
@@ -3,9 +3,10 @@
3
3
  module Cucumber
4
4
  class Runtime
5
5
  class StepHooks
6
- def initialize(id_generator, hooks)
6
+ def initialize(id_generator, hooks, event_bus)
7
7
  @hooks = hooks
8
8
  @id_generator = id_generator
9
+ @event_bus = event_bus
9
10
  end
10
11
 
11
12
  def apply(test_steps)
@@ -19,7 +20,9 @@ module Cucumber
19
20
  def after_step_hooks(test_step)
20
21
  @hooks.map do |hook|
21
22
  action = ->(*args) { hook.invoke('AfterStep', [args, test_step]) }
22
- Hooks.after_step_hook(@id_generator.new_id, test_step, hook.location, &action)
23
+ hook_step = Hooks.after_step_hook(@id_generator.new_id, test_step, hook.location, &action)
24
+ @event_bus.hook_test_step_created(hook_step, hook)
25
+ hook_step
23
26
  end
24
27
  end
25
28
  end
@@ -104,7 +104,7 @@ module Cucumber
104
104
  def find_after_step_hooks(test_case)
105
105
  scenario = RunningTestCase.new(test_case)
106
106
  hooks = registry.hooks_for(:after_step, scenario)
107
- StepHooks.new(@configuration.id_generator, hooks)
107
+ StepHooks.new(@configuration.id_generator, hooks, @configuration.event_bus)
108
108
  end
109
109
 
110
110
  def apply_before_hooks(test_case)
@@ -1 +1 @@
1
- 4.0.1
1
+ 4.1.0
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: 4.0.1
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-06-23 00:00:00.000000000 Z
13
+ date: 2020-07-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: builder
@@ -38,120 +38,140 @@ dependencies:
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 7.0.0
41
+ version: 7.1.0
42
42
  - - "~>"
43
43
  - !ruby/object:Gem::Version
44
- version: '7.0'
44
+ version: '7.1'
45
45
  type: :runtime
46
46
  prerelease: false
47
47
  version_requirements: !ruby/object:Gem::Requirement
48
48
  requirements:
49
49
  - - ">="
50
50
  - !ruby/object:Gem::Version
51
- version: 7.0.0
51
+ version: 7.1.0
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '7.0'
54
+ version: '7.1'
55
55
  - !ruby/object:Gem::Dependency
56
- name: cucumber-cucumber-expressions
56
+ name: cucumber-create-meta
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 10.1.0
61
+ version: 1.0.0
62
62
  - - "~>"
63
63
  - !ruby/object:Gem::Version
64
- version: '10.1'
64
+ version: 1.0.0
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: 10.1.0
71
+ version: 1.0.0
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '10.1'
74
+ version: 1.0.0
75
75
  - !ruby/object:Gem::Dependency
76
- name: cucumber-gherkin
76
+ name: cucumber-cucumber-expressions
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: 13.0.0
81
+ version: 10.1.0
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: '13.0'
84
+ version: '10.1'
85
85
  type: :runtime
86
86
  prerelease: false
87
87
  version_requirements: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - ">="
90
90
  - !ruby/object:Gem::Version
91
- version: 13.0.0
91
+ version: 10.1.0
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: '13.0'
94
+ version: '10.1'
95
95
  - !ruby/object:Gem::Dependency
96
- name: cucumber-html-formatter
96
+ name: cucumber-gherkin
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: '6.0'
101
+ version: '14.0'
102
102
  - - ">="
103
103
  - !ruby/object:Gem::Version
104
- version: 6.0.1
104
+ version: 14.0.1
105
105
  type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: '6.0'
111
+ version: '14.0'
112
112
  - - ">="
113
113
  - !ruby/object:Gem::Version
114
- version: 6.0.1
114
+ version: 14.0.1
115
115
  - !ruby/object:Gem::Dependency
116
- name: cucumber-messages
116
+ name: cucumber-html-formatter
117
117
  requirement: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - "~>"
120
- - !ruby/object:Gem::Version
121
- version: '12.1'
122
119
  - - ">="
123
120
  - !ruby/object:Gem::Version
124
- version: 12.1.1
121
+ version: 7.0.0
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '7.0'
125
125
  type: :runtime
126
126
  prerelease: false
127
127
  version_requirements: !ruby/object:Gem::Requirement
128
128
  requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: 7.0.0
129
132
  - - "~>"
130
133
  - !ruby/object:Gem::Version
131
- version: '12.1'
134
+ version: '7.0'
135
+ - !ruby/object:Gem::Dependency
136
+ name: cucumber-messages
137
+ requirement: !ruby/object:Gem::Requirement
138
+ requirements:
132
139
  - - ">="
133
140
  - !ruby/object:Gem::Version
134
- version: 12.1.1
141
+ version: 12.2.0
142
+ - - "~>"
143
+ - !ruby/object:Gem::Version
144
+ version: '12.2'
145
+ type: :runtime
146
+ prerelease: false
147
+ version_requirements: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: 12.2.0
152
+ - - "~>"
153
+ - !ruby/object:Gem::Version
154
+ version: '12.2'
135
155
  - !ruby/object:Gem::Dependency
136
156
  name: cucumber-wire
137
157
  requirement: !ruby/object:Gem::Requirement
138
158
  requirements:
139
159
  - - ">="
140
160
  - !ruby/object:Gem::Version
141
- version: 3.0.0
161
+ version: 3.1.0
142
162
  - - "~>"
143
163
  - !ruby/object:Gem::Version
144
- version: '3.0'
164
+ version: '3.1'
145
165
  type: :runtime
146
166
  prerelease: false
147
167
  version_requirements: !ruby/object:Gem::Requirement
148
168
  requirements:
149
169
  - - ">="
150
170
  - !ruby/object:Gem::Version
151
- version: 3.0.0
171
+ version: 3.1.0
152
172
  - - "~>"
153
173
  - !ruby/object:Gem::Version
154
- version: '3.0'
174
+ version: '3.1'
155
175
  - !ruby/object:Gem::Dependency
156
176
  name: diff-lcs
157
177
  requirement: !ruby/object:Gem::Requirement
@@ -619,5 +639,5 @@ requirements: []
619
639
  rubygems_version: 3.0.6
620
640
  signing_key:
621
641
  specification_version: 4
622
- summary: cucumber-4.0.1
642
+ summary: cucumber-4.1.0
623
643
  test_files: []