gherkin 2.5.1 → 2.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ #language:fr
2
+ Fonctionnalité: i18n
3
+
4
+ Scénario: Le French
5
+ Etant donné qqch
6
+ Etant donnée qqch
7
+ Etant donnés qqch
8
+ Etant données qqch
@@ -26,6 +26,21 @@ module Gherkin
26
26
  ]
27
27
  end
28
28
 
29
+ it "should recognize keywords that are a little ambiguous" do
30
+ lexer = Gherkin::Lexer::I18nLexer.new(@listener, false)
31
+ scan_file(lexer, "i18n_fr2.feature")
32
+ @listener.to_sexp.should == [
33
+ [:comment, "#language:fr", 1],
34
+ [:feature, "Fonctionnalité", "i18n", "", 2],
35
+ [:scenario, "Scénario", "Le French", "", 4],
36
+ [:step, "Etant donné ", "qqch", 5],
37
+ [:step, "Etant donnée ", "qqch", 6],
38
+ [:step, "Etant donnés ", "qqch", 7],
39
+ [:step, "Etant données ", "qqch", 8],
40
+ [:eof]
41
+ ]
42
+ end
43
+
29
44
  it "should parse languages without a space after keywords" do
30
45
  lexer = Gherkin::Lexer::I18nLexer.new(@listener, false)
31
46
  scan_file(lexer, "i18n_zh-CN.feature")
@@ -130,21 +145,21 @@ module Gherkin
130
145
 
131
146
  it "should print keywords for a given language" do
132
147
  ("\n" + Gherkin::I18n.get('fr').keyword_table).should == %{
133
- | feature | "Fonctionnalité" |
134
- | background | "Contexte" |
135
- | scenario | "Scénario" |
136
- | scenario_outline | "Plan du scénario", "Plan du Scénario" |
137
- | examples | "Exemples" |
138
- | given | "* ", "Soit ", "Etant donné " |
139
- | when | "* ", "Quand ", "Lorsque ", "Lorsqu'" |
140
- | then | "* ", "Alors " |
141
- | and | "* ", "Et " |
142
- | but | "* ", "Mais " |
143
- | given (code) | "Soit", "Etantdonné" |
144
- | when (code) | "Quand", "Lorsque", "Lorsqu" |
145
- | then (code) | "Alors" |
146
- | and (code) | "Et" |
147
- | but (code) | "Mais" |
148
+ | feature | "Fonctionnalité" |
149
+ | background | "Contexte" |
150
+ | scenario | "Scénario" |
151
+ | scenario_outline | "Plan du scénario", "Plan du Scénario" |
152
+ | examples | "Exemples" |
153
+ | given | "* ", "Soit ", "Etant donné ", "Etant donnée ", "Etant donnés ", "Etant données ", "Étant donné ", "Étant donnée ", "Étant donnés ", "Étant données " |
154
+ | when | "* ", "Quand ", "Lorsque ", "Lorsqu'" |
155
+ | then | "* ", "Alors " |
156
+ | and | "* ", "Et " |
157
+ | but | "* ", "Mais " |
158
+ | given (code) | "Soit", "Etantdonné", "Etantdonnée", "Etantdonnés", "Etantdonnées", "Étantdonné", "Étantdonnée", "Étantdonnés", "Étantdonnées" |
159
+ | when (code) | "Quand", "Lorsque", "Lorsqu" |
160
+ | then (code) | "Alors" |
161
+ | and (code) | "Et" |
162
+ | but (code) | "Mais" |
148
163
  }
149
164
  end
150
165
  end
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: 2.5.1
4
+ version: 2.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2011-09-23 00:00:00.000000000Z
14
+ date: 2011-10-13 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake-compiler
18
- requirement: &2164921000 !ruby/object:Gem::Requirement
18
+ requirement: &2152428860 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 0.7.9
24
24
  type: :development
25
25
  prerelease: false
26
- version_requirements: *2164921000
26
+ version_requirements: *2152428860
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
- requirement: &2164913880 !ruby/object:Gem::Requirement
29
+ requirement: &2152415520 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 1.4.6
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *2164913880
37
+ version_requirements: *2152415520
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: cucumber
40
- requirement: &2164913140 !ruby/object:Gem::Requirement
40
+ requirement: &2152414980 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: 1.1.0
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *2164913140
48
+ version_requirements: *2152414980
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rake
51
- requirement: &2164912360 !ruby/object:Gem::Requirement
51
+ requirement: &2152414400 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,21 +56,21 @@ dependencies:
56
56
  version: 0.9.2
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *2164912360
59
+ version_requirements: *2152414400
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: bundler
62
- requirement: &2164911520 !ruby/object:Gem::Requirement
62
+ requirement: &2152413800 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
66
66
  - !ruby/object:Gem::Version
67
- version: 1.0.18
67
+ version: 1.0.21
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *2164911520
70
+ version_requirements: *2152413800
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rspec
73
- requirement: &2164907860 !ruby/object:Gem::Requirement
73
+ requirement: &2152413020 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,21 +78,21 @@ dependencies:
78
78
  version: 2.6.0
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *2164907860
81
+ version_requirements: *2152413020
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: therubyracer
84
- requirement: &2164906980 !ruby/object:Gem::Requirement
84
+ requirement: &2152412160 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.9.4
89
+ version: 0.9.8
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *2164906980
92
+ version_requirements: *2152412160
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: yard
95
- requirement: &2164906200 !ruby/object:Gem::Requirement
95
+ requirement: &2152411560 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: 0.7.2
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *2164906200
103
+ version_requirements: *2152411560
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rdiscount
106
- requirement: &2164905400 !ruby/object:Gem::Requirement
106
+ requirement: &2152410700 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ! '>='
@@ -111,10 +111,10 @@ dependencies:
111
111
  version: 1.6.8
112
112
  type: :development
113
113
  prerelease: false
114
- version_requirements: *2164905400
114
+ version_requirements: *2152410700
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: term-ansicolor
117
- requirement: &2164904500 !ruby/object:Gem::Requirement
117
+ requirement: &2152409640 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ! '>='
@@ -122,10 +122,10 @@ dependencies:
122
122
  version: 1.0.6
123
123
  type: :development
124
124
  prerelease: false
125
- version_requirements: *2164904500
125
+ version_requirements: *2152409640
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: builder
128
- requirement: &2164903580 !ruby/object:Gem::Requirement
128
+ requirement: &2152381140 !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ! '>='
@@ -133,7 +133,7 @@ dependencies:
133
133
  version: 2.1.2
134
134
  type: :development
135
135
  prerelease: false
136
- version_requirements: *2164903580
136
+ version_requirements: *2152381140
137
137
  description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
138
138
  email: cukes@googlegroups.com
139
139
  executables: []
@@ -267,6 +267,7 @@ files:
267
267
  - spec/gherkin/fixtures/examples_with_only_header.feature
268
268
  - spec/gherkin/fixtures/hantu_pisang.feature
269
269
  - spec/gherkin/fixtures/i18n_fr.feature
270
+ - spec/gherkin/fixtures/i18n_fr2.feature
270
271
  - spec/gherkin/fixtures/i18n_no.feature
271
272
  - spec/gherkin/fixtures/i18n_zh-CN.feature
272
273
  - spec/gherkin/fixtures/scenario_outline_with_tags.feature
@@ -477,7 +478,7 @@ rubyforge_project:
477
478
  rubygems_version: 1.8.10
478
479
  signing_key:
479
480
  specification_version: 3
480
- summary: gherkin-2.5.1
481
+ summary: gherkin-2.5.2
481
482
  test_files:
482
483
  - features/escaped_pipes.feature
483
484
  - features/feature_parser.feature
@@ -504,6 +505,7 @@ test_files:
504
505
  - spec/gherkin/fixtures/examples_with_only_header.feature
505
506
  - spec/gherkin/fixtures/hantu_pisang.feature
506
507
  - spec/gherkin/fixtures/i18n_fr.feature
508
+ - spec/gherkin/fixtures/i18n_fr2.feature
507
509
  - spec/gherkin/fixtures/i18n_no.feature
508
510
  - spec/gherkin/fixtures/i18n_zh-CN.feature
509
511
  - spec/gherkin/fixtures/scenario_outline_with_tags.feature