gherkin 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/gherkin/gherkin-languages.json +50 -4
- data/lib/gherkin/pickles/compiler.rb +3 -0
- metadata +10 -177
- data/.rsync +0 -6
- data/.travis.yml +0 -20
- data/CONTRIBUTING.md +0 -23
- data/Gemfile +0 -2
- data/Makefile +0 -62
- data/Rakefile +0 -24
- data/berp/CommandLine.dll +0 -0
- data/berp/RazorEngine.dll +0 -0
- data/berp/RazorEngine.pdb +0 -0
- data/berp/System.Web.Razor.dll +0 -0
- data/berp/berp.exe +0 -0
- data/berp/berp.pdb +0 -0
- data/bin/gherkin-generate-tokens +0 -13
- data/gherkin-ruby.razor +0 -218
- data/gherkin.berp +0 -37
- data/gherkin.gemspec +0 -27
- data/testdata/bad/inconsistent_cell_count.feature +0 -14
- data/testdata/bad/inconsistent_cell_count.feature.errors.ndjson +0 -2
- data/testdata/bad/invalid_language.feature +0 -6
- data/testdata/bad/invalid_language.feature.errors.ndjson +0 -1
- data/testdata/bad/multiple_parser_errors.feature +0 -9
- data/testdata/bad/multiple_parser_errors.feature.errors.ndjson +0 -2
- data/testdata/bad/not_gherkin.feature +0 -2
- data/testdata/bad/not_gherkin.feature.errors.ndjson +0 -1
- data/testdata/bad/single_parser_error.feature +0 -7
- data/testdata/bad/single_parser_error.feature.errors.ndjson +0 -1
- data/testdata/bad/unexpected_eof.feature +0 -6
- data/testdata/bad/unexpected_eof.feature.errors.ndjson +0 -1
- data/testdata/good/background.feature +0 -8
- data/testdata/good/background.feature.ast.ndjson +0 -1
- data/testdata/good/background.feature.pickles.ndjson +0 -1
- data/testdata/good/background.feature.source.ndjson +0 -1
- data/testdata/good/background.feature.tokens +0 -9
- data/testdata/good/datatables.feature +0 -18
- data/testdata/good/datatables.feature.ast.ndjson +0 -1
- data/testdata/good/datatables.feature.pickles.ndjson +0 -1
- data/testdata/good/datatables.feature.source.ndjson +0 -1
- data/testdata/good/datatables.feature.tokens +0 -19
- data/testdata/good/descriptions.feature +0 -52
- data/testdata/good/descriptions.feature.ast.ndjson +0 -1
- data/testdata/good/descriptions.feature.pickles.ndjson +0 -8
- data/testdata/good/descriptions.feature.source.ndjson +0 -1
- data/testdata/good/descriptions.feature.tokens +0 -53
- data/testdata/good/docstrings.feature +0 -43
- data/testdata/good/docstrings.feature.ast.ndjson +0 -1
- data/testdata/good/docstrings.feature.pickles.ndjson +0 -1
- data/testdata/good/docstrings.feature.source.ndjson +0 -1
- data/testdata/good/docstrings.feature.tokens +0 -44
- data/testdata/good/empty.feature +0 -0
- data/testdata/good/empty.feature.ast.ndjson +0 -1
- data/testdata/good/empty.feature.pickles.ndjson +0 -0
- data/testdata/good/empty.feature.source.ndjson +0 -1
- data/testdata/good/empty.feature.tokens +0 -1
- data/testdata/good/escaped_pipes.feature +0 -11
- data/testdata/good/escaped_pipes.feature.ast.ndjson +0 -1
- data/testdata/good/escaped_pipes.feature.pickles.ndjson +0 -1
- data/testdata/good/escaped_pipes.feature.source.ndjson +0 -1
- data/testdata/good/escaped_pipes.feature.tokens +0 -14
- data/testdata/good/example_token_multiple.feature +0 -8
- data/testdata/good/example_token_multiple.feature.ast.ndjson +0 -1
- data/testdata/good/example_token_multiple.feature.pickles.ndjson +0 -1
- data/testdata/good/example_token_multiple.feature.source.ndjson +0 -1
- data/testdata/good/example_token_multiple.feature.tokens +0 -9
- data/testdata/good/example_tokens_everywhere.feature +0 -14
- data/testdata/good/example_tokens_everywhere.feature.ast.ndjson +0 -1
- data/testdata/good/example_tokens_everywhere.feature.pickles.ndjson +0 -2
- data/testdata/good/example_tokens_everywhere.feature.source.ndjson +0 -1
- data/testdata/good/example_tokens_everywhere.feature.tokens +0 -15
- data/testdata/good/i18n_emoji.feature +0 -5
- data/testdata/good/i18n_emoji.feature.ast.ndjson +0 -1
- data/testdata/good/i18n_emoji.feature.pickles.ndjson +0 -1
- data/testdata/good/i18n_emoji.feature.source.ndjson +0 -1
- data/testdata/good/i18n_emoji.feature.tokens +0 -6
- data/testdata/good/i18n_fr.feature +0 -63
- data/testdata/good/i18n_fr.feature.ast.ndjson +0 -1
- data/testdata/good/i18n_fr.feature.pickles.ndjson +0 -11
- data/testdata/good/i18n_fr.feature.source.ndjson +0 -1
- data/testdata/good/i18n_fr.feature.tokens +0 -64
- data/testdata/good/i18n_no.feature +0 -7
- data/testdata/good/i18n_no.feature.ast.ndjson +0 -1
- data/testdata/good/i18n_no.feature.pickles.ndjson +0 -1
- data/testdata/good/i18n_no.feature.source.ndjson +0 -1
- data/testdata/good/i18n_no.feature.tokens +0 -8
- data/testdata/good/incomplete_background_1.feature +0 -6
- data/testdata/good/incomplete_background_1.feature.ast.ndjson +0 -1
- data/testdata/good/incomplete_background_1.feature.pickles.ndjson +0 -1
- data/testdata/good/incomplete_background_1.feature.source.ndjson +0 -1
- data/testdata/good/incomplete_background_1.feature.tokens +0 -7
- data/testdata/good/incomplete_background_2.feature +0 -7
- data/testdata/good/incomplete_background_2.feature.ast.ndjson +0 -1
- data/testdata/good/incomplete_background_2.feature.pickles.ndjson +0 -1
- data/testdata/good/incomplete_background_2.feature.source.ndjson +0 -1
- data/testdata/good/incomplete_background_2.feature.tokens +0 -8
- data/testdata/good/incomplete_feature_1.feature +0 -2
- data/testdata/good/incomplete_feature_1.feature.ast.ndjson +0 -1
- data/testdata/good/incomplete_feature_1.feature.pickles.ndjson +0 -0
- data/testdata/good/incomplete_feature_1.feature.source.ndjson +0 -1
- data/testdata/good/incomplete_feature_1.feature.tokens +0 -3
- data/testdata/good/incomplete_feature_2.feature +0 -1
- data/testdata/good/incomplete_feature_2.feature.ast.ndjson +0 -1
- data/testdata/good/incomplete_feature_2.feature.pickles.ndjson +0 -0
- data/testdata/good/incomplete_feature_2.feature.source.ndjson +0 -1
- data/testdata/good/incomplete_feature_2.feature.tokens +0 -2
- data/testdata/good/incomplete_feature_3.feature +0 -1
- data/testdata/good/incomplete_feature_3.feature.ast.ndjson +0 -1
- data/testdata/good/incomplete_feature_3.feature.pickles.ndjson +0 -0
- data/testdata/good/incomplete_feature_3.feature.source.ndjson +0 -1
- data/testdata/good/incomplete_feature_3.feature.tokens +0 -2
- data/testdata/good/incomplete_scenario.feature +0 -6
- data/testdata/good/incomplete_scenario.feature.ast.ndjson +0 -1
- data/testdata/good/incomplete_scenario.feature.pickles.ndjson +0 -1
- data/testdata/good/incomplete_scenario.feature.source.ndjson +0 -1
- data/testdata/good/incomplete_scenario.feature.tokens +0 -7
- data/testdata/good/incomplete_scenario_outline.feature +0 -24
- data/testdata/good/incomplete_scenario_outline.feature.ast.ndjson +0 -1
- data/testdata/good/incomplete_scenario_outline.feature.pickles.ndjson +0 -1
- data/testdata/good/incomplete_scenario_outline.feature.source.ndjson +0 -1
- data/testdata/good/incomplete_scenario_outline.feature.tokens +0 -25
- data/testdata/good/language.feature +0 -6
- data/testdata/good/language.feature.ast.ndjson +0 -1
- data/testdata/good/language.feature.pickles.ndjson +0 -1
- data/testdata/good/language.feature.source.ndjson +0 -1
- data/testdata/good/language.feature.tokens +0 -7
- data/testdata/good/minimal.feature +0 -4
- data/testdata/good/minimal.feature.ast.ndjson +0 -1
- data/testdata/good/minimal.feature.pickles.ndjson +0 -1
- data/testdata/good/minimal.feature.source.ndjson +0 -1
- data/testdata/good/minimal.feature.tokens +0 -5
- data/testdata/good/readme_example.feature +0 -18
- data/testdata/good/readme_example.feature.ast.ndjson +0 -1
- data/testdata/good/readme_example.feature.pickles.ndjson +0 -2
- data/testdata/good/readme_example.feature.source.ndjson +0 -1
- data/testdata/good/readme_example.feature.tokens +0 -19
- data/testdata/good/scenario_outline.feature +0 -8
- data/testdata/good/scenario_outline.feature.ast.ndjson +0 -1
- data/testdata/good/scenario_outline.feature.pickles.ndjson +0 -1
- data/testdata/good/scenario_outline.feature.source.ndjson +0 -1
- data/testdata/good/scenario_outline.feature.tokens +0 -9
- data/testdata/good/scenario_outline_no_newline.feature +0 -8
- data/testdata/good/scenario_outline_no_newline.feature.ast.ndjson +0 -1
- data/testdata/good/scenario_outline_no_newline.feature.pickles.ndjson +0 -1
- data/testdata/good/scenario_outline_no_newline.feature.source.ndjson +0 -1
- data/testdata/good/scenario_outline_no_newline.feature.tokens +0 -9
- data/testdata/good/scenario_outlines_with_tags.feature +0 -18
- data/testdata/good/scenario_outlines_with_tags.feature.ast.ndjson +0 -1
- data/testdata/good/scenario_outlines_with_tags.feature.pickles.ndjson +0 -2
- data/testdata/good/scenario_outlines_with_tags.feature.source.ndjson +0 -1
- data/testdata/good/scenario_outlines_with_tags.feature.tokens +0 -19
- data/testdata/good/several_examples.feature +0 -17
- data/testdata/good/several_examples.feature.ast.ndjson +0 -1
- data/testdata/good/several_examples.feature.pickles.ndjson +0 -3
- data/testdata/good/several_examples.feature.source.ndjson +0 -1
- data/testdata/good/several_examples.feature.tokens +0 -18
- data/testdata/good/spaces_in_language.feature +0 -2
- data/testdata/good/spaces_in_language.feature.ast.ndjson +0 -1
- data/testdata/good/spaces_in_language.feature.pickles.ndjson +0 -0
- data/testdata/good/spaces_in_language.feature.source.ndjson +0 -1
- data/testdata/good/spaces_in_language.feature.tokens +0 -3
- data/testdata/good/tagged_feature_with_scenario_outline.feature +0 -10
- data/testdata/good/tagged_feature_with_scenario_outline.feature.ast.ndjson +0 -1
- data/testdata/good/tagged_feature_with_scenario_outline.feature.pickles.ndjson +0 -2
- data/testdata/good/tagged_feature_with_scenario_outline.feature.source.ndjson +0 -1
- data/testdata/good/tagged_feature_with_scenario_outline.feature.tokens +0 -11
- data/testdata/good/tags.feature +0 -25
- data/testdata/good/tags.feature.ast.ndjson +0 -1
- data/testdata/good/tags.feature.pickles.ndjson +0 -3
- data/testdata/good/tags.feature.source.ndjson +0 -1
- data/testdata/good/tags.feature.tokens +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c66b95af339175dae07eee21dbfe46234e1a642f2c22ec2d9c6031503efc1974
|
4
|
+
data.tar.gz: 546eb9edae7fedc96885b2672b6fed1bd0e8daf9b79aec2b2d19fc4a24bc81b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19aafa00c304000ef00b29a08c9438bc5a95693427dfd1182c941061a49fb34736a1f63df08012a73e9de9ed8bd71b03faa429fb55e935ce07c80f1ceed51f05
|
7
|
+
data.tar.gz: 25f3ba9e15dcd5802dafa84adfbbecc1c0ba0412e28957da408e256c5858bd8121f75f9be8b2a767cba0a22bd80e172044ac1b619c466828601ed97c5a48ec44
|
@@ -81,6 +81,51 @@
|
|
81
81
|
"Երբ "
|
82
82
|
]
|
83
83
|
},
|
84
|
+
"an": {
|
85
|
+
"and": [
|
86
|
+
"* ",
|
87
|
+
"Y ",
|
88
|
+
"E "
|
89
|
+
],
|
90
|
+
"background": [
|
91
|
+
"Antecedents"
|
92
|
+
],
|
93
|
+
"but": [
|
94
|
+
"* ",
|
95
|
+
"Pero "
|
96
|
+
],
|
97
|
+
"examples": [
|
98
|
+
"Eixemplos"
|
99
|
+
],
|
100
|
+
"feature": [
|
101
|
+
"Caracteristica"
|
102
|
+
],
|
103
|
+
"given": [
|
104
|
+
"* ",
|
105
|
+
"Dau ",
|
106
|
+
"Dada ",
|
107
|
+
"Daus ",
|
108
|
+
"Dadas "
|
109
|
+
],
|
110
|
+
"name": "Aragonese",
|
111
|
+
"native": "Aragonés",
|
112
|
+
"scenario": [
|
113
|
+
"Caso"
|
114
|
+
],
|
115
|
+
"scenarioOutline": [
|
116
|
+
"Esquema del caso"
|
117
|
+
],
|
118
|
+
"then": [
|
119
|
+
"* ",
|
120
|
+
"Alavez ",
|
121
|
+
"Allora ",
|
122
|
+
"Antonces "
|
123
|
+
],
|
124
|
+
"when": [
|
125
|
+
"* ",
|
126
|
+
"Cuan "
|
127
|
+
]
|
128
|
+
},
|
84
129
|
"ar": {
|
85
130
|
"and": [
|
86
131
|
"* ",
|
@@ -2385,7 +2430,8 @@
|
|
2385
2430
|
"but": [
|
2386
2431
|
"* ",
|
2387
2432
|
"Но ",
|
2388
|
-
"А "
|
2433
|
+
"А ",
|
2434
|
+
"Иначе "
|
2389
2435
|
],
|
2390
2436
|
"examples": [
|
2391
2437
|
"Примеры"
|
@@ -2400,8 +2446,7 @@
|
|
2400
2446
|
"* ",
|
2401
2447
|
"Допустим ",
|
2402
2448
|
"Дано ",
|
2403
|
-
"Пусть "
|
2404
|
-
"Если "
|
2449
|
+
"Пусть "
|
2405
2450
|
],
|
2406
2451
|
"name": "Russian",
|
2407
2452
|
"native": "русский",
|
@@ -2419,7 +2464,8 @@
|
|
2419
2464
|
],
|
2420
2465
|
"when": [
|
2421
2466
|
"* ",
|
2422
|
-
"Когда "
|
2467
|
+
"Когда ",
|
2468
|
+
"Если "
|
2423
2469
|
]
|
2424
2470
|
},
|
2425
2471
|
"sk": {
|
@@ -102,6 +102,9 @@ module Gherkin
|
|
102
102
|
location: pickle_location(argument[:location]),
|
103
103
|
content: interpolate(argument[:content], variable_cells, value_cells)
|
104
104
|
}
|
105
|
+
if argument.key?(:contentType)
|
106
|
+
doc_string[:contentType] = interpolate(argument[:contentType], variable_cells, value_cells)
|
107
|
+
end
|
105
108
|
result.push(doc_string)
|
106
109
|
else
|
107
110
|
raise 'Internal error'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gherkin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.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: 2018-05-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -46,14 +46,14 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '3.
|
49
|
+
version: '3.7'
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '3.
|
56
|
+
version: '3.7'
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: coveralls
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,29 +72,14 @@ description: Gherkin parser
|
|
72
72
|
email: cukes@googlegroups.com
|
73
73
|
executables:
|
74
74
|
- gherkin-ruby
|
75
|
+
- gherkin
|
75
76
|
extensions: []
|
76
77
|
extra_rdoc_files: []
|
77
78
|
files:
|
78
|
-
- ".rsync"
|
79
|
-
- ".travis.yml"
|
80
|
-
- CONTRIBUTING.md
|
81
|
-
- Gemfile
|
82
79
|
- LICENSE
|
83
|
-
- Makefile
|
84
80
|
- README.md
|
85
|
-
- Rakefile
|
86
|
-
- berp/CommandLine.dll
|
87
|
-
- berp/RazorEngine.dll
|
88
|
-
- berp/RazorEngine.pdb
|
89
|
-
- berp/System.Web.Razor.dll
|
90
|
-
- berp/berp.exe
|
91
|
-
- berp/berp.pdb
|
92
81
|
- bin/gherkin
|
93
|
-
- bin/gherkin-generate-tokens
|
94
82
|
- bin/gherkin-ruby
|
95
|
-
- gherkin-ruby.razor
|
96
|
-
- gherkin.berp
|
97
|
-
- gherkin.gemspec
|
98
83
|
- lib/gherkin/ast_builder.rb
|
99
84
|
- lib/gherkin/ast_node.rb
|
100
85
|
- lib/gherkin/dialect.rb
|
@@ -114,158 +99,6 @@ files:
|
|
114
99
|
- spec/gherkin/parser_spec.rb
|
115
100
|
- spec/gherkin/stream/gherkin_events_spec.rb
|
116
101
|
- spec/gherkin/stream/test_fr.feature
|
117
|
-
- testdata/bad/inconsistent_cell_count.feature
|
118
|
-
- testdata/bad/inconsistent_cell_count.feature.errors.ndjson
|
119
|
-
- testdata/bad/invalid_language.feature
|
120
|
-
- testdata/bad/invalid_language.feature.errors.ndjson
|
121
|
-
- testdata/bad/multiple_parser_errors.feature
|
122
|
-
- testdata/bad/multiple_parser_errors.feature.errors.ndjson
|
123
|
-
- testdata/bad/not_gherkin.feature
|
124
|
-
- testdata/bad/not_gherkin.feature.errors.ndjson
|
125
|
-
- testdata/bad/single_parser_error.feature
|
126
|
-
- testdata/bad/single_parser_error.feature.errors.ndjson
|
127
|
-
- testdata/bad/unexpected_eof.feature
|
128
|
-
- testdata/bad/unexpected_eof.feature.errors.ndjson
|
129
|
-
- testdata/good/background.feature
|
130
|
-
- testdata/good/background.feature.ast.ndjson
|
131
|
-
- testdata/good/background.feature.pickles.ndjson
|
132
|
-
- testdata/good/background.feature.source.ndjson
|
133
|
-
- testdata/good/background.feature.tokens
|
134
|
-
- testdata/good/datatables.feature
|
135
|
-
- testdata/good/datatables.feature.ast.ndjson
|
136
|
-
- testdata/good/datatables.feature.pickles.ndjson
|
137
|
-
- testdata/good/datatables.feature.source.ndjson
|
138
|
-
- testdata/good/datatables.feature.tokens
|
139
|
-
- testdata/good/descriptions.feature
|
140
|
-
- testdata/good/descriptions.feature.ast.ndjson
|
141
|
-
- testdata/good/descriptions.feature.pickles.ndjson
|
142
|
-
- testdata/good/descriptions.feature.source.ndjson
|
143
|
-
- testdata/good/descriptions.feature.tokens
|
144
|
-
- testdata/good/docstrings.feature
|
145
|
-
- testdata/good/docstrings.feature.ast.ndjson
|
146
|
-
- testdata/good/docstrings.feature.pickles.ndjson
|
147
|
-
- testdata/good/docstrings.feature.source.ndjson
|
148
|
-
- testdata/good/docstrings.feature.tokens
|
149
|
-
- testdata/good/empty.feature
|
150
|
-
- testdata/good/empty.feature.ast.ndjson
|
151
|
-
- testdata/good/empty.feature.pickles.ndjson
|
152
|
-
- testdata/good/empty.feature.source.ndjson
|
153
|
-
- testdata/good/empty.feature.tokens
|
154
|
-
- testdata/good/escaped_pipes.feature
|
155
|
-
- testdata/good/escaped_pipes.feature.ast.ndjson
|
156
|
-
- testdata/good/escaped_pipes.feature.pickles.ndjson
|
157
|
-
- testdata/good/escaped_pipes.feature.source.ndjson
|
158
|
-
- testdata/good/escaped_pipes.feature.tokens
|
159
|
-
- testdata/good/example_token_multiple.feature
|
160
|
-
- testdata/good/example_token_multiple.feature.ast.ndjson
|
161
|
-
- testdata/good/example_token_multiple.feature.pickles.ndjson
|
162
|
-
- testdata/good/example_token_multiple.feature.source.ndjson
|
163
|
-
- testdata/good/example_token_multiple.feature.tokens
|
164
|
-
- testdata/good/example_tokens_everywhere.feature
|
165
|
-
- testdata/good/example_tokens_everywhere.feature.ast.ndjson
|
166
|
-
- testdata/good/example_tokens_everywhere.feature.pickles.ndjson
|
167
|
-
- testdata/good/example_tokens_everywhere.feature.source.ndjson
|
168
|
-
- testdata/good/example_tokens_everywhere.feature.tokens
|
169
|
-
- testdata/good/i18n_emoji.feature
|
170
|
-
- testdata/good/i18n_emoji.feature.ast.ndjson
|
171
|
-
- testdata/good/i18n_emoji.feature.pickles.ndjson
|
172
|
-
- testdata/good/i18n_emoji.feature.source.ndjson
|
173
|
-
- testdata/good/i18n_emoji.feature.tokens
|
174
|
-
- testdata/good/i18n_fr.feature
|
175
|
-
- testdata/good/i18n_fr.feature.ast.ndjson
|
176
|
-
- testdata/good/i18n_fr.feature.pickles.ndjson
|
177
|
-
- testdata/good/i18n_fr.feature.source.ndjson
|
178
|
-
- testdata/good/i18n_fr.feature.tokens
|
179
|
-
- testdata/good/i18n_no.feature
|
180
|
-
- testdata/good/i18n_no.feature.ast.ndjson
|
181
|
-
- testdata/good/i18n_no.feature.pickles.ndjson
|
182
|
-
- testdata/good/i18n_no.feature.source.ndjson
|
183
|
-
- testdata/good/i18n_no.feature.tokens
|
184
|
-
- testdata/good/incomplete_background_1.feature
|
185
|
-
- testdata/good/incomplete_background_1.feature.ast.ndjson
|
186
|
-
- testdata/good/incomplete_background_1.feature.pickles.ndjson
|
187
|
-
- testdata/good/incomplete_background_1.feature.source.ndjson
|
188
|
-
- testdata/good/incomplete_background_1.feature.tokens
|
189
|
-
- testdata/good/incomplete_background_2.feature
|
190
|
-
- testdata/good/incomplete_background_2.feature.ast.ndjson
|
191
|
-
- testdata/good/incomplete_background_2.feature.pickles.ndjson
|
192
|
-
- testdata/good/incomplete_background_2.feature.source.ndjson
|
193
|
-
- testdata/good/incomplete_background_2.feature.tokens
|
194
|
-
- testdata/good/incomplete_feature_1.feature
|
195
|
-
- testdata/good/incomplete_feature_1.feature.ast.ndjson
|
196
|
-
- testdata/good/incomplete_feature_1.feature.pickles.ndjson
|
197
|
-
- testdata/good/incomplete_feature_1.feature.source.ndjson
|
198
|
-
- testdata/good/incomplete_feature_1.feature.tokens
|
199
|
-
- testdata/good/incomplete_feature_2.feature
|
200
|
-
- testdata/good/incomplete_feature_2.feature.ast.ndjson
|
201
|
-
- testdata/good/incomplete_feature_2.feature.pickles.ndjson
|
202
|
-
- testdata/good/incomplete_feature_2.feature.source.ndjson
|
203
|
-
- testdata/good/incomplete_feature_2.feature.tokens
|
204
|
-
- testdata/good/incomplete_feature_3.feature
|
205
|
-
- testdata/good/incomplete_feature_3.feature.ast.ndjson
|
206
|
-
- testdata/good/incomplete_feature_3.feature.pickles.ndjson
|
207
|
-
- testdata/good/incomplete_feature_3.feature.source.ndjson
|
208
|
-
- testdata/good/incomplete_feature_3.feature.tokens
|
209
|
-
- testdata/good/incomplete_scenario.feature
|
210
|
-
- testdata/good/incomplete_scenario.feature.ast.ndjson
|
211
|
-
- testdata/good/incomplete_scenario.feature.pickles.ndjson
|
212
|
-
- testdata/good/incomplete_scenario.feature.source.ndjson
|
213
|
-
- testdata/good/incomplete_scenario.feature.tokens
|
214
|
-
- testdata/good/incomplete_scenario_outline.feature
|
215
|
-
- testdata/good/incomplete_scenario_outline.feature.ast.ndjson
|
216
|
-
- testdata/good/incomplete_scenario_outline.feature.pickles.ndjson
|
217
|
-
- testdata/good/incomplete_scenario_outline.feature.source.ndjson
|
218
|
-
- testdata/good/incomplete_scenario_outline.feature.tokens
|
219
|
-
- testdata/good/language.feature
|
220
|
-
- testdata/good/language.feature.ast.ndjson
|
221
|
-
- testdata/good/language.feature.pickles.ndjson
|
222
|
-
- testdata/good/language.feature.source.ndjson
|
223
|
-
- testdata/good/language.feature.tokens
|
224
|
-
- testdata/good/minimal.feature
|
225
|
-
- testdata/good/minimal.feature.ast.ndjson
|
226
|
-
- testdata/good/minimal.feature.pickles.ndjson
|
227
|
-
- testdata/good/minimal.feature.source.ndjson
|
228
|
-
- testdata/good/minimal.feature.tokens
|
229
|
-
- testdata/good/readme_example.feature
|
230
|
-
- testdata/good/readme_example.feature.ast.ndjson
|
231
|
-
- testdata/good/readme_example.feature.pickles.ndjson
|
232
|
-
- testdata/good/readme_example.feature.source.ndjson
|
233
|
-
- testdata/good/readme_example.feature.tokens
|
234
|
-
- testdata/good/scenario_outline.feature
|
235
|
-
- testdata/good/scenario_outline.feature.ast.ndjson
|
236
|
-
- testdata/good/scenario_outline.feature.pickles.ndjson
|
237
|
-
- testdata/good/scenario_outline.feature.source.ndjson
|
238
|
-
- testdata/good/scenario_outline.feature.tokens
|
239
|
-
- testdata/good/scenario_outline_no_newline.feature
|
240
|
-
- testdata/good/scenario_outline_no_newline.feature.ast.ndjson
|
241
|
-
- testdata/good/scenario_outline_no_newline.feature.pickles.ndjson
|
242
|
-
- testdata/good/scenario_outline_no_newline.feature.source.ndjson
|
243
|
-
- testdata/good/scenario_outline_no_newline.feature.tokens
|
244
|
-
- testdata/good/scenario_outlines_with_tags.feature
|
245
|
-
- testdata/good/scenario_outlines_with_tags.feature.ast.ndjson
|
246
|
-
- testdata/good/scenario_outlines_with_tags.feature.pickles.ndjson
|
247
|
-
- testdata/good/scenario_outlines_with_tags.feature.source.ndjson
|
248
|
-
- testdata/good/scenario_outlines_with_tags.feature.tokens
|
249
|
-
- testdata/good/several_examples.feature
|
250
|
-
- testdata/good/several_examples.feature.ast.ndjson
|
251
|
-
- testdata/good/several_examples.feature.pickles.ndjson
|
252
|
-
- testdata/good/several_examples.feature.source.ndjson
|
253
|
-
- testdata/good/several_examples.feature.tokens
|
254
|
-
- testdata/good/spaces_in_language.feature
|
255
|
-
- testdata/good/spaces_in_language.feature.ast.ndjson
|
256
|
-
- testdata/good/spaces_in_language.feature.pickles.ndjson
|
257
|
-
- testdata/good/spaces_in_language.feature.source.ndjson
|
258
|
-
- testdata/good/spaces_in_language.feature.tokens
|
259
|
-
- testdata/good/tagged_feature_with_scenario_outline.feature
|
260
|
-
- testdata/good/tagged_feature_with_scenario_outline.feature.ast.ndjson
|
261
|
-
- testdata/good/tagged_feature_with_scenario_outline.feature.pickles.ndjson
|
262
|
-
- testdata/good/tagged_feature_with_scenario_outline.feature.source.ndjson
|
263
|
-
- testdata/good/tagged_feature_with_scenario_outline.feature.tokens
|
264
|
-
- testdata/good/tags.feature
|
265
|
-
- testdata/good/tags.feature.ast.ndjson
|
266
|
-
- testdata/good/tags.feature.pickles.ndjson
|
267
|
-
- testdata/good/tags.feature.source.ndjson
|
268
|
-
- testdata/good/tags.feature.tokens
|
269
102
|
homepage: https://github.com/cucumber/gherkin-ruby
|
270
103
|
licenses:
|
271
104
|
- MIT
|
@@ -287,13 +120,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
287
120
|
version: '0'
|
288
121
|
requirements: []
|
289
122
|
rubyforge_project:
|
290
|
-
rubygems_version: 2.6
|
123
|
+
rubygems_version: 2.7.6
|
291
124
|
signing_key:
|
292
125
|
specification_version: 4
|
293
|
-
summary: gherkin-5.
|
126
|
+
summary: gherkin-5.1.0
|
294
127
|
test_files:
|
128
|
+
- spec/gherkin/stream/test_fr.feature
|
129
|
+
- spec/gherkin/stream/gherkin_events_spec.rb
|
130
|
+
- spec/gherkin/parser_spec.rb
|
295
131
|
- spec/capture_warnings.rb
|
296
132
|
- spec/coverage.rb
|
297
|
-
- spec/gherkin/parser_spec.rb
|
298
|
-
- spec/gherkin/stream/gherkin_events_spec.rb
|
299
|
-
- spec/gherkin/stream/test_fr.feature
|
data/.rsync
DELETED
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# Please update /.travis/ruby/.travis.yml in the cucumber/cucumber monorepo
|
2
|
-
# and sync:
|
3
|
-
#
|
4
|
-
# source scripts/functions.sh && rsync_files
|
5
|
-
#
|
6
|
-
language: ruby
|
7
|
-
|
8
|
-
rvm:
|
9
|
-
- 2.4.2
|
10
|
-
- 2.3.5
|
11
|
-
- 2.2.8
|
12
|
-
- jruby-9.1.13.0
|
13
|
-
|
14
|
-
notifications:
|
15
|
-
webhooks:
|
16
|
-
urls:
|
17
|
-
- https://webhooks.gitter.im/e/5373e574ed4e88026838
|
18
|
-
on_success: change
|
19
|
-
on_failure: always
|
20
|
-
on_start: never
|
data/CONTRIBUTING.md
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
Please read [CONTRIBUTING](https://github.com/cucumber/gherkin/blob/master/CONTRIBUTING.md) first.
|
2
|
-
You should clone the [cucumber/gherkin](https://github.com/cucumber/gherkin) repo if you want
|
3
|
-
to contribute.
|
4
|
-
|
5
|
-
## Run tests
|
6
|
-
|
7
|
-
### Using make
|
8
|
-
|
9
|
-
Just run `make` from this directory.
|
10
|
-
|
11
|
-
Even if you prefer `make` - run `rake` occasionally, as it reports better warnings.
|
12
|
-
|
13
|
-
### Using rake
|
14
|
-
|
15
|
-
Just run `rake` from this directory.
|
16
|
-
|
17
|
-
Keep in mind that this will only run unit tests. The acceptance tests are only
|
18
|
-
run when you build with `make`.
|
19
|
-
|
20
|
-
## Make a release
|
21
|
-
|
22
|
-
# Change version in `gherkin.gemspec` and commit
|
23
|
-
bundle exec rake build release
|
data/Gemfile
DELETED
data/Makefile
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
SHELL := /usr/bin/env bash
|
2
|
-
GOOD_FEATURE_FILES = $(shell find testdata/good -name "*.feature")
|
3
|
-
BAD_FEATURE_FILES = $(shell find testdata/bad -name "*.feature")
|
4
|
-
|
5
|
-
TOKENS = $(patsubst testdata/%.feature,acceptance/testdata/%.feature.tokens,$(GOOD_FEATURE_FILES))
|
6
|
-
ASTS = $(patsubst testdata/%.feature,acceptance/testdata/%.feature.ast.ndjson,$(GOOD_FEATURE_FILES))
|
7
|
-
PICKLES = $(patsubst testdata/%.feature,acceptance/testdata/%.feature.pickles.ndjson,$(GOOD_FEATURE_FILES))
|
8
|
-
SOURCES = $(patsubst testdata/%.feature,acceptance/testdata/%.feature.source.ndjson,$(GOOD_FEATURE_FILES))
|
9
|
-
ERRORS = $(patsubst testdata/%.feature,acceptance/testdata/%.feature.errors.ndjson,$(BAD_FEATURE_FILES))
|
10
|
-
|
11
|
-
RUBY_FILES = $(shell find . -name "*.rb")
|
12
|
-
|
13
|
-
.DELETE_ON_ERROR:
|
14
|
-
|
15
|
-
default: .compared
|
16
|
-
bundle exec rake install
|
17
|
-
.PHONY: default
|
18
|
-
|
19
|
-
.compared: .built $(TOKENS) $(ASTS) $(PICKLES) $(ERRORS) $(SOURCES)
|
20
|
-
touch $@
|
21
|
-
|
22
|
-
.built: lib/gherkin/parser.rb lib/gherkin/gherkin-languages.json $(RUBY_FILES) bin/gherkin Gemfile.lock
|
23
|
-
bundle exec rspec --color
|
24
|
-
touch $@
|
25
|
-
|
26
|
-
acceptance/testdata/%.feature.tokens: testdata/%.feature testdata/%.feature.tokens .built
|
27
|
-
mkdir -p `dirname $@`
|
28
|
-
bin/gherkin-generate-tokens $< > $@
|
29
|
-
diff --unified $<.tokens $@
|
30
|
-
|
31
|
-
acceptance/testdata/%.feature.ast.ndjson: testdata/%.feature testdata/%.feature.ast.ndjson .built
|
32
|
-
mkdir -p `dirname $@`
|
33
|
-
bin/gherkin --no-source --no-pickles $< | jq --sort-keys --compact-output "." > $@
|
34
|
-
diff --unified <(jq "." $<.ast.ndjson) <(jq "." $@)
|
35
|
-
|
36
|
-
acceptance/testdata/%.feature.pickles.ndjson: testdata/%.feature testdata/%.feature.pickles.ndjson .built
|
37
|
-
mkdir -p `dirname $@`
|
38
|
-
bin/gherkin --no-source --no-ast $< | jq --sort-keys --compact-output "." > $@
|
39
|
-
diff --unified <(jq "." $<.pickles.ndjson) <(jq "." $@)
|
40
|
-
|
41
|
-
acceptance/testdata/%.feature.source.ndjson: testdata/%.feature testdata/%.feature.source.ndjson .built
|
42
|
-
mkdir -p `dirname $@`
|
43
|
-
bin/gherkin --no-ast --no-pickles $< | jq --sort-keys --compact-output "." > $@
|
44
|
-
diff --unified <(jq "." $<.source.ndjson) <(jq "." $@)
|
45
|
-
|
46
|
-
acceptance/testdata/%.feature.errors.ndjson: testdata/%.feature testdata/%.feature.errors.ndjson .built
|
47
|
-
mkdir -p `dirname $@`
|
48
|
-
bin/gherkin $< | jq --sort-keys --compact-output "." > $@
|
49
|
-
diff --unified <(jq "." $<.errors.ndjson) <(jq "." $@)
|
50
|
-
|
51
|
-
clean:
|
52
|
-
rm -rf .compared .built acceptance lib/gherkin/parser.rb coverage
|
53
|
-
.PHONY: clean
|
54
|
-
|
55
|
-
lib/gherkin/parser.rb: gherkin.berp gherkin-ruby.razor berp/berp.exe
|
56
|
-
mono berp/berp.exe -g gherkin.berp -t gherkin-ruby.razor -o $@
|
57
|
-
# Remove BOM
|
58
|
-
tail -c +4 $@ > $@.nobom
|
59
|
-
mv $@.nobom $@
|
60
|
-
|
61
|
-
Gemfile.lock: Gemfile
|
62
|
-
bundle install
|