kosmas58-cucumber 0.2.2.1 → 0.2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +57 -5
- data/Manifest.txt +21 -4
- data/bin/cucumber +1 -1
- data/config/hoe.rb +2 -2
- data/examples/i18n/Rakefile +6 -8
- data/examples/i18n/ar/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/ar/lib/calculator.rb +1 -0
- data/examples/i18n/da/features/step_definitons/kalkulator_steps.rb +1 -1
- data/examples/i18n/de/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/en/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/es/features/step_definitons/calculador_steps.rb +1 -1
- data/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +1 -1
- data/examples/i18n/fi/features/step_definitons/laskin_steps.rb +1 -1
- data/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +1 -1
- data/examples/i18n/id/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/it/features/step_definitons/calcolatrice_steps.rb +1 -1
- data/examples/i18n/ja/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/ko/features/addition.feature +1 -1
- data/examples/i18n/ko/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/lt/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/no/features/support/env.rb +1 -1
- data/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +1 -1
- data/examples/i18n/ro/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/ru/features/support/env.rb +1 -1
- data/examples/i18n/ru/features/support/world.rb +4 -3
- data/examples/i18n/se/features/step_definitons/kalkulator_steps.rb +1 -1
- data/examples/i18n/sk/Rakefile +6 -0
- data/examples/i18n/sk/features/addition.feature +16 -0
- data/examples/i18n/sk/features/division.feature +9 -0
- data/examples/i18n/sk/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/sk/lib/calculator.rb +14 -0
- data/examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/self_test/features/background/background_with_name.feature +7 -0
- data/examples/self_test/features/step_definitions/sample_steps.rb +8 -2
- data/examples/self_test/features/undefined_multiline_args.feature +12 -0
- data/examples/sinatra/features/support/env.rb +2 -6
- data/examples/test_unit/features/step_definitions/test_unit_steps.rb +1 -4
- data/examples/tickets/Rakefile +1 -1
- data/examples/tickets/features/246.feature +4 -0
- data/examples/tickets/features/270/back.feature +14 -0
- data/examples/tickets/features/270/back.steps.rb +14 -0
- data/examples/tickets/features/step_definitons/246_steps.rb +3 -0
- data/features/background.feature +21 -4
- data/features/cucumber_cli.feature +18 -5
- data/features/cucumber_cli_outlines.feature +5 -2
- data/features/snippet.feature +23 -0
- data/features/step_definitions/cucumber_steps.rb +6 -2
- data/features/usage.feature +5 -0
- data/gem_tasks/rspec.rake +3 -2
- data/lib/cucumber/ast/background.rb +3 -3
- data/lib/cucumber/ast/examples.rb +0 -12
- data/lib/cucumber/ast/feature.rb +2 -12
- data/lib/cucumber/ast/feature_element.rb +0 -8
- data/lib/cucumber/ast/features.rb +1 -1
- data/lib/cucumber/ast/outline_table.rb +14 -22
- data/lib/cucumber/ast/py_string.rb +6 -11
- data/lib/cucumber/ast/scenario.rb +1 -8
- data/lib/cucumber/ast/scenario_outline.rb +1 -11
- data/lib/cucumber/ast/step.rb +3 -9
- data/lib/cucumber/ast/step_collection.rb +0 -4
- data/lib/cucumber/ast/step_invocation.rb +5 -6
- data/lib/cucumber/ast/table.rb +26 -22
- data/lib/cucumber/ast/tags.rb +0 -8
- data/lib/cucumber/ast/visitor.rb +12 -25
- data/lib/cucumber/cli/configuration.rb +2 -2
- data/lib/cucumber/cli/main.rb +5 -2
- data/lib/cucumber/core_ext/instance_exec.rb +17 -4
- data/lib/cucumber/formatter/ansicolor.rb +10 -2
- data/lib/cucumber/formatter/console.rb +2 -1
- data/lib/cucumber/formatter/html.rb +21 -7
- data/lib/cucumber/formatter/pretty.rb +27 -20
- data/lib/cucumber/formatter/usage.rb +16 -0
- data/lib/cucumber/languages.yml +68 -7
- data/lib/cucumber/parser/feature.rb +238 -135
- data/lib/cucumber/parser/feature.tt +117 -22
- data/lib/cucumber/parser/i18n.tt +4 -0
- data/lib/cucumber/parser/table.rb +37 -25
- data/lib/cucumber/parser/table.tt +15 -3
- data/lib/cucumber/parser/treetop_ext.rb +48 -9
- data/lib/cucumber/parser.rb +2 -7
- data/lib/cucumber/step_definition.rb +13 -14
- data/lib/cucumber/step_mother.rb +93 -11
- data/lib/cucumber/version.rb +2 -2
- data/rails_generators/cucumber/templates/env.rb +1 -1
- data/rails_generators/cucumber/templates/paths.rb +15 -5
- data/rails_generators/cucumber/templates/webrat_steps.rb +8 -0
- data/spec/cucumber/ast/background_spec.rb +1 -0
- data/spec/cucumber/ast/feature_factory.rb +1 -1
- data/spec/cucumber/ast/feature_spec.rb +2 -2
- data/spec/cucumber/ast/scenario_spec.rb +0 -27
- data/spec/cucumber/ast/table_spec.rb +23 -2
- data/spec/cucumber/core_ext/proc_spec.rb +25 -8
- data/spec/cucumber/parser/feature_parser_spec.rb +43 -41
- data/spec/cucumber/step_definition_spec.rb +8 -0
- data/spec/cucumber/step_mother_spec.rb +48 -0
- data/spec/spec_helper.rb +2 -11
- metadata +17 -6
- data/examples/tickets/cucumber.yml +0 -3
- data/lib/cucumber/parser/basic.rb +0 -0
- data/spec/cucumber/ast/tags_spec.rb +0 -19
data/lib/cucumber/languages.yml
CHANGED
@@ -20,6 +20,7 @@
|
|
20
20
|
then: Then
|
21
21
|
and: And
|
22
22
|
but: But
|
23
|
+
space_after_keyword: true
|
23
24
|
|
24
25
|
# Please help us keeping the languages below uptodate. The parsers for a language
|
25
26
|
# that is missing a keyword will expect the English word until the missing word(s)
|
@@ -41,6 +42,7 @@
|
|
41
42
|
then: اذاً|ثم
|
42
43
|
and: و
|
43
44
|
but: لكن
|
45
|
+
space_after_keyword: true
|
44
46
|
"cy":
|
45
47
|
name: Welsh
|
46
48
|
native: Cymraeg
|
@@ -53,6 +55,7 @@
|
|
53
55
|
then: Yna
|
54
56
|
and: A
|
55
57
|
but: Ond
|
58
|
+
space_after_keyword: true
|
56
59
|
"cz":
|
57
60
|
name: Czech
|
58
61
|
native: Česky
|
@@ -67,6 +70,7 @@
|
|
67
70
|
then: Pak
|
68
71
|
and: A
|
69
72
|
but: Ale
|
73
|
+
space_after_keyword: true
|
70
74
|
"da":
|
71
75
|
name: Danish
|
72
76
|
native: dansk
|
@@ -81,6 +85,7 @@
|
|
81
85
|
then: Så
|
82
86
|
and: Og
|
83
87
|
but: Men
|
88
|
+
space_after_keyword: true
|
84
89
|
"de":
|
85
90
|
name: German
|
86
91
|
native: Deutsch
|
@@ -95,6 +100,7 @@
|
|
95
100
|
then: Dann
|
96
101
|
and: Und
|
97
102
|
but: Aber
|
103
|
+
space_after_keyword: true
|
98
104
|
"en-au":
|
99
105
|
name: Australian
|
100
106
|
native: Australian
|
@@ -109,6 +115,7 @@
|
|
109
115
|
then: Ya gotta
|
110
116
|
and: N
|
111
117
|
but: Cept
|
118
|
+
space_after_keyword: true
|
112
119
|
"en-lol":
|
113
120
|
name: LOLCAT
|
114
121
|
native: LOLCAT
|
@@ -123,6 +130,7 @@
|
|
123
130
|
then: DEN
|
124
131
|
and: AN
|
125
132
|
but: BUT
|
133
|
+
space_after_keyword: true
|
126
134
|
"en-tx":
|
127
135
|
name: Texan
|
128
136
|
native: Texan
|
@@ -137,6 +145,7 @@
|
|
137
145
|
then: Then y'all
|
138
146
|
and: And y'all
|
139
147
|
but: But y'all
|
148
|
+
space_after_keyword: true
|
140
149
|
"es":
|
141
150
|
name: Spanish
|
142
151
|
native: español
|
@@ -151,6 +160,7 @@
|
|
151
160
|
then: Entonces
|
152
161
|
and: Y
|
153
162
|
but: Pero
|
163
|
+
space_after_keyword: true
|
154
164
|
"et":
|
155
165
|
name: Estonian
|
156
166
|
native: eesti keel
|
@@ -165,6 +175,7 @@
|
|
165
175
|
then: Siis
|
166
176
|
and: Ja
|
167
177
|
but: Kuid
|
178
|
+
space_after_keyword: true
|
168
179
|
"fi":
|
169
180
|
name: Finnish
|
170
181
|
native: suomi
|
@@ -179,6 +190,7 @@
|
|
179
190
|
then: Niin
|
180
191
|
and: Ja
|
181
192
|
but: Mutta
|
193
|
+
space_after_keyword: true
|
182
194
|
"fr":
|
183
195
|
name: French
|
184
196
|
native: français
|
@@ -193,11 +205,13 @@
|
|
193
205
|
then: Alors
|
194
206
|
and: Et
|
195
207
|
but: Mais
|
208
|
+
space_after_keyword: true
|
196
209
|
"id":
|
197
210
|
name: Indonesian
|
198
211
|
native: Bahasa Indonesia
|
199
212
|
encoding: UTF-8
|
200
213
|
feature: Fitur
|
214
|
+
background: Dasar
|
201
215
|
scenario: Skenario
|
202
216
|
scenario_outline: Skenario konsep
|
203
217
|
examples: Contoh
|
@@ -206,6 +220,7 @@
|
|
206
220
|
then: Maka
|
207
221
|
and: Dan
|
208
222
|
but: Tapi
|
223
|
+
space_after_keyword: true
|
209
224
|
"it":
|
210
225
|
name: Italian
|
211
226
|
native: italiano
|
@@ -220,6 +235,7 @@
|
|
220
235
|
then: Allora
|
221
236
|
and: E
|
222
237
|
but: Ma
|
238
|
+
space_after_keyword: true
|
223
239
|
"ja":
|
224
240
|
name: Japanese
|
225
241
|
native: 日本語
|
@@ -234,6 +250,7 @@
|
|
234
250
|
then: ならば
|
235
251
|
and: かつ
|
236
252
|
but: しかし
|
253
|
+
space_after_keyword: false
|
237
254
|
"lt":
|
238
255
|
name: Lithuanian
|
239
256
|
native: lietuvių kalba
|
@@ -246,6 +263,7 @@
|
|
246
263
|
then: Tada
|
247
264
|
and: Ir
|
248
265
|
but: Bet
|
266
|
+
space_after_keyword: true
|
249
267
|
"nl":
|
250
268
|
name: Dutch
|
251
269
|
native: Nederlands
|
@@ -260,6 +278,7 @@
|
|
260
278
|
then: Dan
|
261
279
|
and: En
|
262
280
|
but: Maar
|
281
|
+
space_after_keyword: true
|
263
282
|
"no":
|
264
283
|
name: Norwegian
|
265
284
|
native: norsk
|
@@ -274,31 +293,37 @@
|
|
274
293
|
then: Så
|
275
294
|
and: Og
|
276
295
|
but: Men
|
296
|
+
space_after_keyword: true
|
277
297
|
"pl":
|
278
298
|
name: Polish
|
279
299
|
native: polski
|
280
300
|
encoding: UTF-8
|
281
301
|
feature: Właściwość
|
302
|
+
background: Założenia
|
282
303
|
scenario: Scenariusz
|
283
|
-
|
304
|
+
scenario_outline: Szablon scenariusza
|
305
|
+
examples: Przykłady
|
306
|
+
given: Zakładając
|
284
307
|
when: Jeżeli
|
285
308
|
then: Wtedy
|
286
309
|
and: Oraz
|
287
310
|
but: Ale
|
311
|
+
space_after_keyword: true
|
288
312
|
"pt":
|
289
313
|
name: Portuguese
|
290
314
|
native: português
|
291
315
|
encoding: UTF-8
|
292
316
|
background: Contexto
|
293
|
-
feature:
|
294
|
-
scenario: Cenário
|
295
|
-
scenario_outline: Esquema do Cenário
|
317
|
+
feature: Funcionalidade
|
318
|
+
scenario: Cenário|Cenario
|
319
|
+
scenario_outline: Esquema do Cenário|Esquema do Cenario
|
296
320
|
examples: Exemplos
|
297
321
|
given: Dado
|
298
322
|
when: Quando
|
299
|
-
then: Então
|
323
|
+
then: Então|Entao
|
300
324
|
and: E
|
301
325
|
but: Mas
|
326
|
+
space_after_keyword: true
|
302
327
|
"ro":
|
303
328
|
name: Romanian
|
304
329
|
native: română
|
@@ -310,6 +335,7 @@
|
|
310
335
|
then: Atunci
|
311
336
|
and: Si
|
312
337
|
but: Dar
|
338
|
+
space_after_keyword: true
|
313
339
|
"ro2":
|
314
340
|
name: Romanian (diacritical)
|
315
341
|
native: română (diacritical)
|
@@ -321,6 +347,7 @@
|
|
321
347
|
then: Atunci
|
322
348
|
and: Și
|
323
349
|
but: Dar
|
350
|
+
space_after_keyword: true
|
324
351
|
"ru":
|
325
352
|
name: Russian
|
326
353
|
native: русский
|
@@ -335,6 +362,7 @@
|
|
335
362
|
then: То
|
336
363
|
and: И|К тому же
|
337
364
|
but: Но|А
|
365
|
+
space_after_keyword: true
|
338
366
|
"se":
|
339
367
|
name: Swedish
|
340
368
|
native: Svenska
|
@@ -349,6 +377,22 @@
|
|
349
377
|
then: Så
|
350
378
|
and: Och
|
351
379
|
but: Men
|
380
|
+
space_after_keyword: true
|
381
|
+
"sk":
|
382
|
+
name: Slovak
|
383
|
+
native: Slovensky
|
384
|
+
encoding: UTF-8
|
385
|
+
feature: Požiadavka
|
386
|
+
background: Pozadie
|
387
|
+
scenario: Scenár
|
388
|
+
scenario_outline: Náčrt Scenáru
|
389
|
+
examples: Príklady
|
390
|
+
given: Pokiaľ
|
391
|
+
when: Keď
|
392
|
+
then: Tak
|
393
|
+
and: A
|
394
|
+
but: Ale
|
395
|
+
space_after_keyword: true
|
352
396
|
"zh-CN":
|
353
397
|
name: Chinese simplified
|
354
398
|
native: 简体中文
|
@@ -363,6 +407,7 @@
|
|
363
407
|
then: 那么
|
364
408
|
and: 而且
|
365
409
|
but: 但是
|
410
|
+
space_after_keyword: false
|
366
411
|
"zh-TW":
|
367
412
|
name: Chinese traditional
|
368
413
|
native: 繁體中文
|
@@ -377,6 +422,7 @@
|
|
377
422
|
then: 那麼
|
378
423
|
and: 而且|並且
|
379
424
|
but: 但是
|
425
|
+
space_after_keyword: false
|
380
426
|
"ko":
|
381
427
|
name: Korean
|
382
428
|
native: 한국어
|
@@ -386,9 +432,24 @@
|
|
386
432
|
scenario: 시나리오
|
387
433
|
scenario_outline: 시나리오 개요
|
388
434
|
examples: 예
|
389
|
-
more_examples: 다른 예
|
390
435
|
given: 조건
|
391
436
|
when: 만일
|
392
437
|
then: 그러면
|
393
438
|
and: 그리고
|
394
|
-
but: 하지만
|
439
|
+
but: 하지만
|
440
|
+
space_after_keyword: false
|
441
|
+
"bg":
|
442
|
+
name: Bulgarian
|
443
|
+
native: български
|
444
|
+
encoding: UTF-8
|
445
|
+
feature: Функционалност
|
446
|
+
background: Предистория
|
447
|
+
scenario: Сценарий
|
448
|
+
scenario_outline: Рамка на сценарий
|
449
|
+
examples: Примери
|
450
|
+
given: Дадено
|
451
|
+
when: Когато
|
452
|
+
then: То
|
453
|
+
and: И
|
454
|
+
but: Но
|
455
|
+
space_after_keyword: true
|