cucumber-gherkin 12.0.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gherkin/ast_builder.rb +3 -0
- data/lib/gherkin/stream/parser_message_stream.rb +6 -6
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 790df8f2756156e70bbdcfd83400e84e130d2b888813d11961653ea35c82bc10
|
4
|
+
data.tar.gz: e1f88bcd257573102c2ea47aac13ea91b9a4127424a6295b3bd9e385b8d3f8ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 491ef64c415875f35a2c5749a13c051dfcc16dffe480b53368c77d15a6d1d4036d1f73e5feadf67506090da43a61e683b177c840e40b283f9f6f25e3a4be18ed
|
7
|
+
data.tar.gz: d0047ab40023484d8530fe77d7273331972248fcd3fad9819ca93f1ed64d32e0e119d692e2febee9fa7751e13f88dafe942f788a51098e9c5f0b83956431935a
|
data/lib/gherkin/ast_builder.rb
CHANGED
@@ -146,6 +146,7 @@ module Gherkin
|
|
146
146
|
steps = get_steps(node)
|
147
147
|
|
148
148
|
Cucumber::Messages::GherkinDocument::Feature::Background.new(
|
149
|
+
id: @id_generator.new_id,
|
149
150
|
location: get_location(background_line, 0),
|
150
151
|
keyword: background_line.matched_keyword,
|
151
152
|
name: background_line.matched_text,
|
@@ -180,6 +181,7 @@ module Gherkin
|
|
180
181
|
table_body = rows.nil? ? nil : rows[1..-1]
|
181
182
|
|
182
183
|
Cucumber::Messages::GherkinDocument::Feature::Scenario::Examples.new(
|
184
|
+
id: @id_generator.new_id,
|
183
185
|
tags: tags,
|
184
186
|
location: get_location(examples_line, 0),
|
185
187
|
keyword: examples_line.matched_keyword,
|
@@ -237,6 +239,7 @@ module Gherkin
|
|
237
239
|
description = get_description(header)
|
238
240
|
|
239
241
|
Cucumber::Messages::GherkinDocument::Feature::FeatureChild::Rule.new(
|
242
|
+
id: @id_generator.new_id,
|
240
243
|
location: get_location(rule_line, 0),
|
241
244
|
keyword: rule_line.matched_keyword,
|
242
245
|
name: rule_line.matched_text,
|
@@ -39,9 +39,9 @@ module Gherkin
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
rescue CompositeParserException => err
|
42
|
-
|
42
|
+
yield_parse_errors(y, err.errors, source.uri)
|
43
43
|
rescue ParserException => err
|
44
|
-
|
44
|
+
yield_parse_errors(y, [err], source.uri)
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
@@ -49,9 +49,9 @@ module Gherkin
|
|
49
49
|
|
50
50
|
private
|
51
51
|
|
52
|
-
def
|
52
|
+
def yield_parse_errors(y, errors, uri)
|
53
53
|
errors.each do |err|
|
54
|
-
|
54
|
+
parse_error = Cucumber::Messages::ParseError.new(
|
55
55
|
source: Cucumber::Messages::SourceReference.new(
|
56
56
|
uri: uri,
|
57
57
|
location: Cucumber::Messages::Location.new(
|
@@ -59,9 +59,9 @@ module Gherkin
|
|
59
59
|
column: err.location[:column]
|
60
60
|
)
|
61
61
|
),
|
62
|
-
|
62
|
+
message: err.message
|
63
63
|
)
|
64
|
-
y.yield(Cucumber::Messages::Envelope.new(
|
64
|
+
y.yield(Cucumber::Messages::Envelope.new(parse_error: parse_error))
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-gherkin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 13.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gáspár Nagy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-04-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: cucumber-messages
|
@@ -18,20 +18,20 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
21
|
+
version: '12.0'
|
22
22
|
- - ">="
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version:
|
24
|
+
version: 12.0.0
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
28
28
|
requirements:
|
29
29
|
- - "~>"
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
version: '
|
31
|
+
version: '12.0'
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 12.0.0
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rake
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,7 +135,7 @@ rubyforge_project:
|
|
135
135
|
rubygems_version: 2.7.6.2
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
|
-
summary: cucumber-gherkin-
|
138
|
+
summary: cucumber-gherkin-13.0.0
|
139
139
|
test_files:
|
140
140
|
- spec/gherkin/dialect_spec.rb
|
141
141
|
- spec/gherkin/stream/parser_message_stream_spec.rb
|