gherkin 2.12.0-x86-mingw32 → 2.12.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/.ruby-version +1 -1
- data/.travis.yml +1 -3
- data/History.md +18 -0
- data/LICENSE +1 -1
- data/README.md +22 -28
- data/features/.cucumber/stepdefs.json +66 -66
- data/gherkin.gemspec +12 -11
- data/lib/1.9/gherkin_lexer_ar.so +0 -0
- data/lib/1.9/gherkin_lexer_bg.so +0 -0
- data/lib/1.9/gherkin_lexer_bm.so +0 -0
- data/lib/1.9/gherkin_lexer_ca.so +0 -0
- data/lib/1.9/gherkin_lexer_cs.so +0 -0
- data/lib/1.9/gherkin_lexer_cy_gb.so +0 -0
- data/lib/1.9/gherkin_lexer_da.so +0 -0
- data/lib/1.9/gherkin_lexer_de.so +0 -0
- data/lib/1.9/gherkin_lexer_el.so +0 -0
- data/lib/1.9/gherkin_lexer_en.so +0 -0
- data/lib/1.9/gherkin_lexer_en_au.so +0 -0
- data/lib/1.9/gherkin_lexer_en_lol.so +0 -0
- data/lib/1.9/gherkin_lexer_en_old.so +0 -0
- data/lib/1.9/gherkin_lexer_en_pirate.so +0 -0
- data/lib/1.9/gherkin_lexer_en_scouse.so +0 -0
- data/lib/1.9/gherkin_lexer_en_tx.so +0 -0
- data/lib/1.9/gherkin_lexer_eo.so +0 -0
- data/lib/1.9/gherkin_lexer_es.so +0 -0
- data/lib/1.9/gherkin_lexer_et.so +0 -0
- data/lib/1.9/gherkin_lexer_fa.so +0 -0
- data/lib/1.9/gherkin_lexer_fi.so +0 -0
- data/lib/1.9/gherkin_lexer_fr.so +0 -0
- data/lib/1.9/gherkin_lexer_gl.so +0 -0
- data/lib/1.9/gherkin_lexer_he.so +0 -0
- data/lib/1.9/gherkin_lexer_hi.so +0 -0
- data/lib/1.9/gherkin_lexer_hr.so +0 -0
- data/lib/1.9/gherkin_lexer_hu.so +0 -0
- data/lib/1.9/gherkin_lexer_id.so +0 -0
- data/lib/1.9/gherkin_lexer_is.so +0 -0
- data/lib/1.9/gherkin_lexer_it.so +0 -0
- data/lib/1.9/gherkin_lexer_ja.so +0 -0
- data/lib/1.9/gherkin_lexer_ko.so +0 -0
- data/lib/1.9/gherkin_lexer_lt.so +0 -0
- data/lib/1.9/gherkin_lexer_lu.so +0 -0
- data/lib/1.9/gherkin_lexer_lv.so +0 -0
- data/lib/1.9/gherkin_lexer_nl.so +0 -0
- data/lib/1.9/gherkin_lexer_no.so +0 -0
- data/lib/1.9/gherkin_lexer_pa.so +0 -0
- data/lib/1.9/gherkin_lexer_pl.so +0 -0
- data/lib/1.9/gherkin_lexer_pt.so +0 -0
- data/lib/1.9/gherkin_lexer_ro.so +0 -0
- data/lib/1.9/gherkin_lexer_ru.so +0 -0
- data/lib/1.9/gherkin_lexer_sk.so +0 -0
- data/lib/1.9/gherkin_lexer_sr_cyrl.so +0 -0
- data/lib/1.9/gherkin_lexer_sr_latn.so +0 -0
- data/lib/1.9/gherkin_lexer_sv.so +0 -0
- data/lib/1.9/gherkin_lexer_th.so +0 -0
- data/lib/1.9/gherkin_lexer_tl.so +0 -0
- data/lib/1.9/gherkin_lexer_tr.so +0 -0
- data/lib/1.9/gherkin_lexer_tt.so +0 -0
- data/lib/1.9/gherkin_lexer_uk.so +0 -0
- data/lib/1.9/gherkin_lexer_uz.so +0 -0
- data/lib/1.9/gherkin_lexer_vi.so +0 -0
- data/lib/1.9/gherkin_lexer_zh_cn.so +0 -0
- data/lib/1.9/gherkin_lexer_zh_tw.so +0 -0
- data/lib/2.0/gherkin_lexer_ar.so +0 -0
- data/lib/2.0/gherkin_lexer_bg.so +0 -0
- data/lib/2.0/gherkin_lexer_bm.so +0 -0
- data/lib/2.0/gherkin_lexer_ca.so +0 -0
- data/lib/2.0/gherkin_lexer_cs.so +0 -0
- data/lib/2.0/gherkin_lexer_cy_gb.so +0 -0
- data/lib/2.0/gherkin_lexer_da.so +0 -0
- data/lib/2.0/gherkin_lexer_de.so +0 -0
- data/lib/2.0/gherkin_lexer_el.so +0 -0
- data/lib/2.0/gherkin_lexer_en.so +0 -0
- data/lib/2.0/gherkin_lexer_en_au.so +0 -0
- data/lib/2.0/gherkin_lexer_en_lol.so +0 -0
- data/lib/2.0/gherkin_lexer_en_old.so +0 -0
- data/lib/2.0/gherkin_lexer_en_pirate.so +0 -0
- data/lib/2.0/gherkin_lexer_en_scouse.so +0 -0
- data/lib/2.0/gherkin_lexer_en_tx.so +0 -0
- data/lib/2.0/gherkin_lexer_eo.so +0 -0
- data/lib/2.0/gherkin_lexer_es.so +0 -0
- data/lib/2.0/gherkin_lexer_et.so +0 -0
- data/lib/2.0/gherkin_lexer_fa.so +0 -0
- data/lib/2.0/gherkin_lexer_fi.so +0 -0
- data/lib/2.0/gherkin_lexer_fr.so +0 -0
- data/lib/2.0/gherkin_lexer_gl.so +0 -0
- data/lib/2.0/gherkin_lexer_he.so +0 -0
- data/lib/2.0/gherkin_lexer_hi.so +0 -0
- data/lib/2.0/gherkin_lexer_hr.so +0 -0
- data/lib/2.0/gherkin_lexer_hu.so +0 -0
- data/lib/2.0/gherkin_lexer_id.so +0 -0
- data/lib/2.0/gherkin_lexer_is.so +0 -0
- data/lib/2.0/gherkin_lexer_it.so +0 -0
- data/lib/2.0/gherkin_lexer_ja.so +0 -0
- data/lib/2.0/gherkin_lexer_ko.so +0 -0
- data/lib/2.0/gherkin_lexer_lt.so +0 -0
- data/lib/2.0/gherkin_lexer_lu.so +0 -0
- data/lib/2.0/gherkin_lexer_lv.so +0 -0
- data/lib/2.0/gherkin_lexer_nl.so +0 -0
- data/lib/2.0/gherkin_lexer_no.so +0 -0
- data/lib/2.0/gherkin_lexer_pa.so +0 -0
- data/lib/2.0/gherkin_lexer_pl.so +0 -0
- data/lib/2.0/gherkin_lexer_pt.so +0 -0
- data/lib/2.0/gherkin_lexer_ro.so +0 -0
- data/lib/2.0/gherkin_lexer_ru.so +0 -0
- data/lib/2.0/gherkin_lexer_sk.so +0 -0
- data/lib/2.0/gherkin_lexer_sr_cyrl.so +0 -0
- data/lib/2.0/gherkin_lexer_sr_latn.so +0 -0
- data/lib/2.0/gherkin_lexer_sv.so +0 -0
- data/lib/2.0/gherkin_lexer_th.so +0 -0
- data/lib/2.0/gherkin_lexer_tl.so +0 -0
- data/lib/2.0/gherkin_lexer_tr.so +0 -0
- data/lib/2.0/gherkin_lexer_tt.so +0 -0
- data/lib/2.0/gherkin_lexer_uk.so +0 -0
- data/lib/2.0/gherkin_lexer_uz.so +0 -0
- data/lib/2.0/gherkin_lexer_vi.so +0 -0
- data/lib/2.0/gherkin_lexer_zh_cn.so +0 -0
- data/lib/2.0/gherkin_lexer_zh_tw.so +0 -0
- data/lib/gherkin/formatter/filter_formatter.rb +1 -1
- data/lib/gherkin/i18n.json +38 -10
- data/lib/gherkin/i18n.rb +1 -1
- data/lib/gherkin/platform.rb +2 -2
- data/spec/gherkin/formatter/json_formatter_spec.rb +4 -0
- data/spec/gherkin/formatter/pretty_formatter_spec.rb +25 -18
- data/spec/gherkin/i18n_spec.rb +2 -0
- data/tasks/gems.rake +19 -4
- data/tasks/ikvm.rake +10 -7
- data/tasks/ragel_task.rb +3 -2
- data/tasks/rspec.rake +2 -6
- metadata +204 -135
- data/lib/1.8/gherkin_lexer_ar.so +0 -0
- data/lib/1.8/gherkin_lexer_bg.so +0 -0
- data/lib/1.8/gherkin_lexer_bm.so +0 -0
- data/lib/1.8/gherkin_lexer_ca.so +0 -0
- data/lib/1.8/gherkin_lexer_cs.so +0 -0
- data/lib/1.8/gherkin_lexer_cy_gb.so +0 -0
- data/lib/1.8/gherkin_lexer_da.so +0 -0
- data/lib/1.8/gherkin_lexer_de.so +0 -0
- data/lib/1.8/gherkin_lexer_el.so +0 -0
- data/lib/1.8/gherkin_lexer_en.so +0 -0
- data/lib/1.8/gherkin_lexer_en_au.so +0 -0
- data/lib/1.8/gherkin_lexer_en_lol.so +0 -0
- data/lib/1.8/gherkin_lexer_en_old.so +0 -0
- data/lib/1.8/gherkin_lexer_en_pirate.so +0 -0
- data/lib/1.8/gherkin_lexer_en_scouse.so +0 -0
- data/lib/1.8/gherkin_lexer_en_tx.so +0 -0
- data/lib/1.8/gherkin_lexer_eo.so +0 -0
- data/lib/1.8/gherkin_lexer_es.so +0 -0
- data/lib/1.8/gherkin_lexer_et.so +0 -0
- data/lib/1.8/gherkin_lexer_fa.so +0 -0
- data/lib/1.8/gherkin_lexer_fi.so +0 -0
- data/lib/1.8/gherkin_lexer_fr.so +0 -0
- data/lib/1.8/gherkin_lexer_gl.so +0 -0
- data/lib/1.8/gherkin_lexer_he.so +0 -0
- data/lib/1.8/gherkin_lexer_hi.so +0 -0
- data/lib/1.8/gherkin_lexer_hr.so +0 -0
- data/lib/1.8/gherkin_lexer_hu.so +0 -0
- data/lib/1.8/gherkin_lexer_id.so +0 -0
- data/lib/1.8/gherkin_lexer_is.so +0 -0
- data/lib/1.8/gherkin_lexer_it.so +0 -0
- data/lib/1.8/gherkin_lexer_ja.so +0 -0
- data/lib/1.8/gherkin_lexer_ko.so +0 -0
- data/lib/1.8/gherkin_lexer_lt.so +0 -0
- data/lib/1.8/gherkin_lexer_lu.so +0 -0
- data/lib/1.8/gherkin_lexer_lv.so +0 -0
- data/lib/1.8/gherkin_lexer_nl.so +0 -0
- data/lib/1.8/gherkin_lexer_no.so +0 -0
- data/lib/1.8/gherkin_lexer_pl.so +0 -0
- data/lib/1.8/gherkin_lexer_pt.so +0 -0
- data/lib/1.8/gherkin_lexer_ro.so +0 -0
- data/lib/1.8/gherkin_lexer_ru.so +0 -0
- data/lib/1.8/gherkin_lexer_sk.so +0 -0
- data/lib/1.8/gherkin_lexer_sr_cyrl.so +0 -0
- data/lib/1.8/gherkin_lexer_sr_latn.so +0 -0
- data/lib/1.8/gherkin_lexer_sv.so +0 -0
- data/lib/1.8/gherkin_lexer_tl.so +0 -0
- data/lib/1.8/gherkin_lexer_tr.so +0 -0
- data/lib/1.8/gherkin_lexer_tt.so +0 -0
- data/lib/1.8/gherkin_lexer_uk.so +0 -0
- data/lib/1.8/gherkin_lexer_uz.so +0 -0
- data/lib/1.8/gherkin_lexer_vi.so +0 -0
- data/lib/1.8/gherkin_lexer_zh_cn.so +0 -0
- data/lib/1.8/gherkin_lexer_zh_tw.so +0 -0
data/gherkin.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
# Repeat these step for cucumber (swap `cucumber` with `gherkin`).
|
16
16
|
#
|
17
17
|
# When both are building OK, do a `bundle exec rake install` in both cucumber and gherkin projects, revert the changes in the first 2 steps
|
18
|
-
# and release both projects. Do this for both ruby 1.
|
18
|
+
# and release both projects. Do this for both ruby 1.9.3, ruby 2.0.0 and jruby.
|
19
19
|
#
|
20
20
|
s.version = Gherkin::VERSION
|
21
21
|
s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
|
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.summary = "#{s.name}-#{s.version}"
|
24
24
|
s.email = "cukes@googlegroups.com"
|
25
25
|
s.homepage = "http://github.com/cucumber/gherkin"
|
26
|
+
s.license = 'MIT'
|
26
27
|
|
27
28
|
s.files = `git ls-files`.split("\n")
|
28
29
|
s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
|
@@ -51,29 +52,29 @@ Gem::Specification.new do |s|
|
|
51
52
|
when /dotnet/
|
52
53
|
s.files += Dir['lib/*.dll']
|
53
54
|
else # MRI or Rubinius
|
54
|
-
s.files += Dir['lib/gherkin/
|
55
|
+
s.files += Dir['lib/gherkin/lexer/*.rb']
|
55
56
|
s.files += Dir['ext/**/*.c']
|
56
57
|
s.extensions = Dir['ext/**/extconf.rb']
|
57
|
-
s.add_development_dependency('rake-compiler', '
|
58
|
+
s.add_development_dependency('rake-compiler', '= 0.8.2')
|
58
59
|
end
|
59
60
|
s.files -= Dir['**/.gitignore']
|
60
61
|
|
61
62
|
s.add_runtime_dependency('multi_json', '~> 1.3')
|
62
63
|
|
63
|
-
s.add_development_dependency('cucumber', '>= 1.
|
64
|
-
s.add_development_dependency('rake', '>= 10.0
|
65
|
-
s.add_development_dependency('bundler', '>= 1.
|
66
|
-
s.add_development_dependency('rspec', '~> 2.
|
64
|
+
s.add_development_dependency('cucumber', '>= 1.3.4')
|
65
|
+
s.add_development_dependency('rake', '>= 10.1.0')
|
66
|
+
s.add_development_dependency('bundler', '>= 1.3.5') # Make sure it's in sync with /.travis.yml
|
67
|
+
s.add_development_dependency('rspec', '~> 2.14.1')
|
67
68
|
s.add_development_dependency('rubyzip', '>= 0.9.9')
|
68
69
|
|
69
70
|
unless ENV['RUBY_CC_VERSION'] || Gherkin::JRUBY
|
70
71
|
s.add_development_dependency('therubyracer', '>= 0.11.4') if ENV['GHERKIN_JS']
|
71
72
|
# For Documentation:
|
72
|
-
s.add_development_dependency('yard', '>= 0.8.
|
73
|
-
s.add_development_dependency('rdiscount', '>= 1.6
|
73
|
+
s.add_development_dependency('yard', '>= 0.8.6.2')
|
74
|
+
s.add_development_dependency('rdiscount', '>= 2.1.6')
|
74
75
|
end
|
75
76
|
|
76
77
|
# Only needed by Cucumber. Remove when Cucumber no longer needs those.
|
77
|
-
s.add_development_dependency('term-ansicolor', '>= 1.
|
78
|
-
s.add_development_dependency('builder', '>= 3.
|
78
|
+
s.add_development_dependency('term-ansicolor', '>= 1.2.2')
|
79
|
+
s.add_development_dependency('builder', '>= 3.2.2')
|
79
80
|
end
|
data/lib/1.9/gherkin_lexer_ar.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_bg.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_bm.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_ca.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_cs.so
CHANGED
Binary file
|
Binary file
|
data/lib/1.9/gherkin_lexer_da.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_de.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_el.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_en.so
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/1.9/gherkin_lexer_eo.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_es.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_et.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_fa.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_fi.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_fr.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_gl.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_he.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_hi.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_hr.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_hu.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_id.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_is.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_it.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_ja.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_ko.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_lt.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_lu.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_lv.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_nl.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_no.so
CHANGED
Binary file
|
Binary file
|
data/lib/1.9/gherkin_lexer_pl.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_pt.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_ro.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_ru.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_sk.so
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/lib/1.9/gherkin_lexer_sv.so
CHANGED
Binary file
|
Binary file
|
data/lib/1.9/gherkin_lexer_tl.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_tr.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_tt.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_uk.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_uz.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_vi.so
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/gherkin/i18n.json
CHANGED
@@ -32,14 +32,14 @@
|
|
32
32
|
"native": "Bahasa Melayu",
|
33
33
|
"feature": "Fungsi",
|
34
34
|
"background": "Latar Belakang",
|
35
|
-
"scenario": "Senario",
|
36
|
-
"scenario_outline": "Menggariskan Senario
|
37
|
-
"examples": "Contoh
|
38
|
-
"given": "*|Bagi",
|
35
|
+
"scenario": "Senario|Situai|Keadaan",
|
36
|
+
"scenario_outline": "Template Senario|Template Situai|Template Keadaan|Menggariskan Senario",
|
37
|
+
"examples": "Contoh",
|
38
|
+
"given": "*|Diberi|Bagi",
|
39
39
|
"when": "*|Apabila",
|
40
|
-
"then": "*|Kemudian",
|
40
|
+
"then": "*|Maka|Kemudian",
|
41
41
|
"and": "*|Dan",
|
42
|
-
"but": "*|Tetapi"
|
42
|
+
"but": "*|Tetapi|Tapi"
|
43
43
|
},
|
44
44
|
"bg": {
|
45
45
|
"name": "Bulgarian",
|
@@ -119,7 +119,7 @@
|
|
119
119
|
"scenario": "Szenario",
|
120
120
|
"scenario_outline": "Szenariogrundriss",
|
121
121
|
"examples": "Beispiele",
|
122
|
-
"given": "*|Angenommen|Gegeben sei",
|
122
|
+
"given": "*|Angenommen|Gegeben sei|Gegeben seien",
|
123
123
|
"when": "*|Wenn",
|
124
124
|
"then": "*|Dann",
|
125
125
|
"and": "*|Und",
|
@@ -344,10 +344,10 @@
|
|
344
344
|
"scenario_outline": "परिदृश्य रूपरेखा",
|
345
345
|
"examples": "उदाहरण",
|
346
346
|
"given": "*|अगर|यदि|चूंकि",
|
347
|
-
"when": "
|
348
|
-
"then": "
|
347
|
+
"when": "*|जब|कदा",
|
348
|
+
"then": "*|तब|तदा",
|
349
349
|
"and": "*|और|तथा",
|
350
|
-
"but": "
|
350
|
+
"but": "*|पर|परन्तु|किन्तु"
|
351
351
|
},
|
352
352
|
"hr": {
|
353
353
|
"name": "Croatian",
|
@@ -517,6 +517,20 @@
|
|
517
517
|
"and": "*|Og",
|
518
518
|
"but": "*|Men"
|
519
519
|
},
|
520
|
+
"pa": {
|
521
|
+
"name": "Panjabi",
|
522
|
+
"native": "ਪੰਜਾਬੀ",
|
523
|
+
"feature": "ਖਾਸੀਅਤ|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ",
|
524
|
+
"background": "ਪਿਛੋਕੜ",
|
525
|
+
"scenario": "ਪਟਕਥਾ",
|
526
|
+
"scenario_outline": "ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ",
|
527
|
+
"examples": "ਉਦਾਹਰਨਾਂ",
|
528
|
+
"given": "*|ਜੇਕਰ|ਜਿਵੇਂ ਕਿ",
|
529
|
+
"when": "*|ਜਦੋਂ",
|
530
|
+
"then": "*|ਤਦ",
|
531
|
+
"and": "*|ਅਤੇ",
|
532
|
+
"but": "*|ਪਰ"
|
533
|
+
},
|
520
534
|
"pl": {
|
521
535
|
"name": "Polish",
|
522
536
|
"native": "polski",
|
@@ -643,6 +657,20 @@
|
|
643
657
|
"and": "*|మరియు",
|
644
658
|
"but": "*|కాని"
|
645
659
|
},
|
660
|
+
"th": {
|
661
|
+
"name": "Thai",
|
662
|
+
"native": "ไทย",
|
663
|
+
"feature": "โครงหลัก|ความต้องการทางธุรกิจ|ความสามารถ",
|
664
|
+
"background": "แนวคิด",
|
665
|
+
"scenario": "เหตุการณ์",
|
666
|
+
"scenario_outline": "สรุปเหตุการณ์|โครงสร้างของเหตุการณ์",
|
667
|
+
"examples": "ชุดของตัวอย่าง|ชุดของเหตุการณ์",
|
668
|
+
"given": "*|กำหนดให้",
|
669
|
+
"when": "*|เมื่อ",
|
670
|
+
"then": "*|ดังนั้น",
|
671
|
+
"and": "*|และ",
|
672
|
+
"but": "*|แต่"
|
673
|
+
},
|
646
674
|
"tr": {
|
647
675
|
"name": "Turkish",
|
648
676
|
"native": "Türkçe",
|
data/lib/gherkin/i18n.rb
CHANGED
data/lib/gherkin/platform.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
module Gherkin
|
4
4
|
unless defined?(Gherkin::VERSION)
|
5
5
|
# See the comment in gherkin.gemspec if you bump the MINOR version (MAJOR.MINOR.PATCH).
|
6
|
-
VERSION = '2.12.
|
6
|
+
VERSION = '2.12.1'
|
7
7
|
JRUBY = defined?(JRUBY_VERSION)
|
8
8
|
|
9
|
-
if !JRUBY && !(RUBY_VERSION =~ /^(1\.
|
9
|
+
if !JRUBY && !(RUBY_VERSION =~ /^(1\.9\.3|2\.0)/)
|
10
10
|
warn("WARNING: Unsupported Ruby version - #{RUBY_VERSION}")
|
11
11
|
end
|
12
12
|
end
|
@@ -21,6 +21,7 @@ module Gherkin
|
|
21
21
|
data = data.to_java_bytes
|
22
22
|
end
|
23
23
|
f.embedding("mime-type", data)
|
24
|
+
f.write("step output")
|
24
25
|
|
25
26
|
f.result(Model::Result.new(:passed, 1, nil))
|
26
27
|
|
@@ -64,6 +65,9 @@ module Gherkin
|
|
64
65
|
"data": "YWJj"
|
65
66
|
}
|
66
67
|
],
|
68
|
+
"output": [
|
69
|
+
"step output"
|
70
|
+
],
|
67
71
|
"result": {
|
68
72
|
"status": "passed",
|
69
73
|
"duration": 1
|
@@ -12,10 +12,10 @@ module Gherkin
|
|
12
12
|
describe PrettyFormatter do
|
13
13
|
include AnsiEscapes
|
14
14
|
|
15
|
-
def
|
15
|
+
def assert_io_include(s)
|
16
16
|
actual = @io.string
|
17
17
|
actual.gsub!(/\e\[m/, "\e[0m") # JANSI resets without the 0.
|
18
|
-
actual.should
|
18
|
+
actual.should include(s)
|
19
19
|
end
|
20
20
|
|
21
21
|
def assert_pretty(input, expected_output=input)
|
@@ -48,14 +48,16 @@ module Gherkin
|
|
48
48
|
@f.match(Model::Match.new([], "features/step_definitions/bar.rb:96"))
|
49
49
|
@f.result(Model::Result.new('passed', 33, nil))
|
50
50
|
|
51
|
-
|
51
|
+
@f.eof()
|
52
|
+
|
53
|
+
assert_io_include(%{Feature: Hello
|
52
54
|
World
|
53
55
|
|
54
56
|
Scenario: The scenario #{comments}# features/foo.feature:4#{reset}
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
57
|
+
})
|
58
|
+
assert_io_include(%{ #{passed}Given #{reset}#{passed}some stuff#{reset} #{comments}# features/step_definitions/bar.rb:56#{reset}
|
59
|
+
})
|
60
|
+
assert_io_include(%{ #{passed}When #{reset}#{passed}foo#{reset} #{comments}# features/step_definitions/bar.rb:96#{reset}
|
59
61
|
})
|
60
62
|
end
|
61
63
|
|
@@ -71,12 +73,14 @@ module Gherkin
|
|
71
73
|
@f.match(match)
|
72
74
|
@f.result(result)
|
73
75
|
|
74
|
-
|
76
|
+
@f.eof()
|
77
|
+
|
78
|
+
assert_io_include(%{Feature: Hello
|
75
79
|
World
|
76
80
|
|
77
81
|
Scenario: The scenario #{comments}# features/foo.feature:4#{reset}
|
78
|
-
|
79
|
-
|
82
|
+
})
|
83
|
+
assert_io_include(%{ #{passed}Given #{reset}#{passed}some stuff that is longer#{reset} #{comments}# features/step_definitions/bar.rb:56#{reset}
|
80
84
|
})
|
81
85
|
end
|
82
86
|
|
@@ -86,12 +90,13 @@ module Gherkin
|
|
86
90
|
@f.step(Model::Step.new([], "Given ", "I have 999 cukes in my belly", 3, nil, nil))
|
87
91
|
@f.match(Model::Match.new([Gherkin::Formatter::Argument.new(7, '999')], nil))
|
88
92
|
@f.result(Model::Result.new('passed', 6, nil))
|
93
|
+
@f.eof()
|
89
94
|
|
90
|
-
|
95
|
+
assert_io_include(
|
91
96
|
"\n" +
|
92
|
-
" Scenario: Lots of cukes \e[90m# foo.feature:3\e[0m\n"
|
93
|
-
|
94
|
-
"
|
97
|
+
" Scenario: Lots of cukes \e[90m# foo.feature:3\e[0m\n")
|
98
|
+
assert_io_include(
|
99
|
+
" #{passed}Given #{reset}#{passed}I have #{reset}#{passed_arg}999#{reset}#{passed} cukes in my belly#{reset}\n"
|
95
100
|
)
|
96
101
|
end
|
97
102
|
|
@@ -105,12 +110,14 @@ module Gherkin
|
|
105
110
|
Gherkin::Formatter::Argument.new(7, '999')
|
106
111
|
], nil))
|
107
112
|
@f.result(Model::Result.new('passed', 6, nil))
|
113
|
+
@f.eof()
|
108
114
|
|
109
|
-
|
115
|
+
assert_io_include(
|
110
116
|
"\n" +
|
111
|
-
" Scenario: Lots of cukes \e[90m# foo.feature:3\e[0m\n"
|
112
|
-
|
113
|
-
|
117
|
+
" Scenario: Lots of cukes \e[90m# foo.feature:3\e[0m\n"
|
118
|
+
)
|
119
|
+
assert_io_include(
|
120
|
+
" #{passed}Given #{reset}#{passed}I have #{reset}#{passed_arg}999#{reset}#{passed} cukes in my belly#{reset}\n"
|
114
121
|
)
|
115
122
|
end
|
116
123
|
|