cucumber-gherkin 15.0.2 → 18.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gherkin/ast_builder.rb +2 -0
- data/lib/gherkin/gherkin-languages.json +11 -6
- data/lib/gherkin/parser.rb +859 -339
- data/lib/gherkin/pickles/compiler.rb +7 -5
- metadata +17 -17
@@ -37,7 +37,9 @@ module Gherkin
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
def compile_rule(pickles, language,
|
40
|
+
def compile_rule(pickles, language, feature_tags, feature_background_steps, rule, source)
|
41
|
+
tags = [].concat(feature_tags).concat(rule.tags)
|
42
|
+
|
41
43
|
rule_background_steps = feature_background_steps.dup
|
42
44
|
rule.children.each do |child|
|
43
45
|
if child.background
|
@@ -53,10 +55,10 @@ module Gherkin
|
|
53
55
|
end
|
54
56
|
end
|
55
57
|
|
56
|
-
def compile_scenario(
|
58
|
+
def compile_scenario(inherited_tags, background_steps, scenario, language, pickles, source)
|
57
59
|
steps = scenario.steps.empty? ? [] : [].concat(pickle_steps(background_steps))
|
58
60
|
|
59
|
-
tags = [].concat(
|
61
|
+
tags = [].concat(inherited_tags).concat(scenario.tags)
|
60
62
|
|
61
63
|
scenario.steps.each do |step|
|
62
64
|
steps.push(pickle_step(step))
|
@@ -74,13 +76,13 @@ module Gherkin
|
|
74
76
|
pickles.push(pickle)
|
75
77
|
end
|
76
78
|
|
77
|
-
def compile_scenario_outline(
|
79
|
+
def compile_scenario_outline(inherited_tags, background_steps, scenario, language, pickles, source)
|
78
80
|
scenario.examples.reject { |examples| examples.table_header.nil? }.each do |examples|
|
79
81
|
variable_cells = examples.table_header.cells
|
80
82
|
examples.table_body.each do |values_row|
|
81
83
|
value_cells = values_row.cells
|
82
84
|
steps = scenario.steps.empty? ? [] : [].concat(pickle_steps(background_steps))
|
83
|
-
tags = [].concat(
|
85
|
+
tags = [].concat(inherited_tags).concat(scenario.tags).concat(examples.tags)
|
84
86
|
|
85
87
|
scenario.steps.each do |scenario_outline_step|
|
86
88
|
step_props = pickle_step_props(scenario_outline_step, variable_cells, values_row)
|
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: 18.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:
|
13
|
+
date: 2021-03-24 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: '15.0'
|
22
22
|
- - ">="
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version:
|
24
|
+
version: 15.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: '15.0'
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 15.0.0
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rake
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -41,7 +41,7 @@ dependencies:
|
|
41
41
|
version: '13.0'
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: 13.0.
|
44
|
+
version: 13.0.3
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -51,27 +51,27 @@ dependencies:
|
|
51
51
|
version: '13.0'
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 13.0.
|
54
|
+
version: 13.0.3
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
61
|
+
version: '3.10'
|
62
62
|
- - ">="
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: 3.
|
64
|
+
version: 3.10.0
|
65
65
|
type: :development
|
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: '3.
|
71
|
+
version: '3.10'
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 3.
|
74
|
+
version: 3.10.0
|
75
75
|
description: Gherkin parser
|
76
76
|
email: cukes@googlegroups.com
|
77
77
|
executables:
|
@@ -136,13 +136,13 @@ requirements: []
|
|
136
136
|
rubygems_version: 3.1.2
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
|
-
summary: cucumber-gherkin-
|
139
|
+
summary: cucumber-gherkin-18.0.0
|
140
140
|
test_files:
|
141
|
-
- spec/
|
141
|
+
- spec/capture_warnings.rb
|
142
142
|
- spec/gherkin/gherkin_line_spec.rb
|
143
|
+
- spec/gherkin/dialect_spec.rb
|
144
|
+
- spec/gherkin/parser_spec.rb
|
143
145
|
- spec/gherkin/stream/parser_message_stream_spec.rb
|
144
146
|
- spec/gherkin/stream/subprocess_message_stream_spec.rb
|
145
|
-
- spec/gherkin/parser_spec.rb
|
146
|
-
- spec/gherkin/gherkin_spec.rb
|
147
147
|
- spec/gherkin/query_spec.rb
|
148
|
-
- spec/
|
148
|
+
- spec/gherkin/gherkin_spec.rb
|