gherkin 2.5.1-universal-dotnet → 2.5.2-universal-dotnet

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gherkin (2.5.1)
4
+ gherkin (2.5.2)
5
5
  json (>= 1.4.6)
6
6
 
7
7
  GEM
@@ -29,8 +29,8 @@ GEM
29
29
  rspec-expectations (2.6.0)
30
30
  diff-lcs (~> 1.1.2)
31
31
  rspec-mocks (2.6.0)
32
- term-ansicolor (1.0.6)
33
- therubyracer (0.9.4)
32
+ term-ansicolor (1.0.7)
33
+ therubyracer (0.9.8)
34
34
  libv8 (~> 3.3.10)
35
35
  yard (0.7.2)
36
36
 
@@ -39,7 +39,7 @@ PLATFORMS
39
39
 
40
40
  DEPENDENCIES
41
41
  builder (>= 2.1.2)
42
- bundler (>= 1.0.18)
42
+ bundler (>= 1.0.21)
43
43
  cucumber (>= 1.1.0)
44
44
  gherkin!
45
45
  rake (>= 0.9.2)
@@ -47,5 +47,5 @@ DEPENDENCIES
47
47
  rdiscount (>= 1.6.8)
48
48
  rspec (>= 2.6.0)
49
49
  term-ansicolor (>= 1.0.6)
50
- therubyracer (>= 0.9.4)
50
+ therubyracer (>= 0.9.8)
51
51
  yard (>= 0.7.2)
data/History.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [2.5.2](https://github.com/cucumber/gherkin/compare/v2.5.1...v2.5.2)
2
+
3
+ ### New Features
4
+
5
+ * Added synonyms for Portuguese. (Rodrigo Dumont)
6
+ * Added synonyms for Italian. (Alessandro Mencarini)
7
+ * Added synonyms for Spanish. (Nahuel Garbezza)
8
+ * Added synonyms for French. (Julein Biezemans)
9
+
1
10
  ## [2.5.1](https://github.com/cucumber/gherkin/compare/v2.5.0...v2.5.1)
2
11
 
3
12
  ### New Features
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://secure.travis-ci.org/cucumber/gherkin.png)](http://travis-ci.org/cucumber/gherkin)
2
+
1
3
  A fast lexer and parser for the Gherkin language based on Ragel. Gherkin is two things:
2
4
 
3
5
  * The language that has evolved out of the Cucumber project.
@@ -52,7 +54,7 @@ The jar file is in the central Maven repo.
52
54
  <dependency>
53
55
  <groupId>info.cukes</groupId>
54
56
  <artifactId>gherkin</artifactId>
55
- <version>2.5.1</version>
57
+ <version>2.5.2</version>
56
58
  </dependency>
57
59
 
58
60
  You can get it manually from [Maven Central](http://search.maven.org/#browse%7C-2073395818)
@@ -207,9 +209,9 @@ Make sure you have openssl installed first.
207
209
  * java/pom.xml
208
210
  * ikvm/Gherkin/Gherkin.csproj (2 places)
209
211
  * js/package.json
210
- * Run bundle update, so Gemfile.lock gets updated with the changes.
212
+ * Run `bundle update`, so Gemfile.lock gets updated with the changes.
211
213
  * Commit changes, otherwise you will get an error at the end when a tag is made.
212
- * bundle exec rake gems:prepare && ./build_native_gems.sh && bundle exec rake release:ALL
214
+ * Run `bundle exec rake gems:prepare && ./build_native_gems.sh && bundle exec rake release:ALL`
213
215
  * The specs intermittently fail with a segfault from therubyracer. Running specs can be disabled with SKIP_JS_SPECS=true
214
216
  * Announce on Cucumber list, IRC and Twitter.
215
217
 
data/gherkin.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "gherkin"
5
- s.version = "2.5.1"
5
+ s.version = "2.5.2"
6
6
  s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
7
7
  s.description = "A fast Gherkin lexer/parser based on the Ragel State Machine Compiler."
8
8
  s.summary = "#{s.name}-#{s.version}"
@@ -43,16 +43,15 @@ Gem::Specification.new do |s|
43
43
  end
44
44
  s.files -= Dir['**/.gitignore']
45
45
 
46
- # Hack because json is released as two different versions for MRI and JRuby :-/
47
- s.add_dependency('json', '>= 1.4.6')
46
+ s.add_runtime_dependency('json', '>= 1.4.6')
48
47
 
49
48
  s.add_development_dependency('cucumber', '>= 1.1.0')
50
49
  s.add_development_dependency('rake', '>= 0.9.2')
51
- s.add_development_dependency('bundler', '>= 1.0.18')
50
+ s.add_development_dependency('bundler', '>= 1.0.21')
52
51
  s.add_development_dependency('rspec', '>= 2.6.0')
53
52
 
54
53
  unless ENV['RUBY_CC_VERSION'] || defined?(JRUBY_VERSION)
55
- s.add_development_dependency('therubyracer', '>= 0.9.4') if ENV['GHERKIN_JS']
54
+ s.add_development_dependency('therubyracer', '>= 0.9.8') if ENV['GHERKIN_JS']
56
55
  # For Documentation:
57
56
  s.add_development_dependency('yard', '>= 0.7.2')
58
57
  s.add_development_dependency('rdiscount', '>= 1.6.8')
data/lib/gherkin.dll CHANGED
Binary file
data/lib/gherkin/i18n.yml CHANGED
@@ -204,7 +204,7 @@
204
204
  scenario: Escenario
205
205
  scenario_outline: Esquema del escenario
206
206
  examples: Ejemplos
207
- given: "*|Dado"
207
+ given: "*|Dado|Dada|Dados|Dadas"
208
208
  when: "*|Cuando"
209
209
  then: "*|Entonces"
210
210
  and: "*|Y"
@@ -243,7 +243,7 @@
243
243
  scenario: Scénario
244
244
  scenario_outline: Plan du scénario|Plan du Scénario
245
245
  examples: Exemples
246
- given: "*|Soit|Etant donné"
246
+ given: "*|Soit|Etant donné|Etant donnée|Etant donnés|Etant données|Étant donné|Étant donnée|Étant donnés|Étant données"
247
247
  when: "*|Quand|Lorsque|Lorsqu'<"
248
248
  then: "*|Alors"
249
249
  and: "*|Et"
@@ -306,7 +306,7 @@
306
306
  feature: Eiginleiki
307
307
  background: Bakgrunnur
308
308
  scenario: Atburðarás
309
- scenario_outline: Lýsing Atburðarásar|Lýsing Dæma
309
+ scenario_outline: Lýsing Atburðarásar|Lýsing Dæma
310
310
  examples: Dæmi|Atburðarásir
311
311
  given: "*|Ef"
312
312
  when: "*|Þegar"
@@ -321,7 +321,7 @@
321
321
  scenario: Scenario
322
322
  scenario_outline: Schema dello scenario
323
323
  examples: Esempi
324
- given: "*|Dato"
324
+ given: "*|Dato|Data|Dati|Date"
325
325
  when: "*|Quando"
326
326
  then: "*|Allora"
327
327
  and: "*|E"
@@ -438,7 +438,7 @@
438
438
  scenario: Cenário|Cenario
439
439
  scenario_outline: Esquema do Cenário|Esquema do Cenario
440
440
  examples: Exemplos
441
- given: "*|Dado"
441
+ given: "*|Dado|Dada|Dados|Dadas"
442
442
  when: "*|Quando"
443
443
  then: "*|Então|Entao"
444
444
  and: "*|E"
@@ -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: universal-dotnet
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: json
18
- requirement: &2168729720 !ruby/object:Gem::Requirement
18
+ requirement: &2156395860 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 1.4.6
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2168729720
26
+ version_requirements: *2156395860
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cucumber
29
- requirement: &2168720780 !ruby/object:Gem::Requirement
29
+ requirement: &2156395020 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 1.1.0
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *2168720780
37
+ version_requirements: *2156395020
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rake
40
- requirement: &2168720320 !ruby/object:Gem::Requirement
40
+ requirement: &2156394220 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,21 +45,21 @@ dependencies:
45
45
  version: 0.9.2
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *2168720320
48
+ version_requirements: *2156394220
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bundler
51
- requirement: &2168719860 !ruby/object:Gem::Requirement
51
+ requirement: &2156393260 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
55
55
  - !ruby/object:Gem::Version
56
- version: 1.0.18
56
+ version: 1.0.21
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *2168719860
59
+ version_requirements: *2156393260
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rspec
62
- requirement: &2168719400 !ruby/object:Gem::Requirement
62
+ requirement: &2156392500 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,21 +67,21 @@ dependencies:
67
67
  version: 2.6.0
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *2168719400
70
+ version_requirements: *2156392500
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: therubyracer
73
- requirement: &2168718840 !ruby/object:Gem::Requirement
73
+ requirement: &2156391800 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
77
77
  - !ruby/object:Gem::Version
78
- version: 0.9.4
78
+ version: 0.9.8
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *2168718840
81
+ version_requirements: *2156391800
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: yard
84
- requirement: &2168718280 !ruby/object:Gem::Requirement
84
+ requirement: &2156390420 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: 0.7.2
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *2168718280
92
+ version_requirements: *2156390420
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: rdiscount
95
- requirement: &2168717560 !ruby/object:Gem::Requirement
95
+ requirement: &2156389780 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: 1.6.8
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *2168717560
103
+ version_requirements: *2156389780
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: term-ansicolor
106
- requirement: &2168716720 !ruby/object:Gem::Requirement
106
+ requirement: &2156388860 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ! '>='
@@ -111,10 +111,10 @@ dependencies:
111
111
  version: 1.0.6
112
112
  type: :development
113
113
  prerelease: false
114
- version_requirements: *2168716720
114
+ version_requirements: *2156388860
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: builder
117
- requirement: &2168715880 !ruby/object:Gem::Requirement
117
+ requirement: &2156387460 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ! '>='
@@ -122,7 +122,7 @@ dependencies:
122
122
  version: 2.1.2
123
123
  type: :development
124
124
  prerelease: false
125
- version_requirements: *2168715880
125
+ version_requirements: *2156387460
126
126
  description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
127
127
  email: cukes@googlegroups.com
128
128
  executables: []
@@ -211,6 +211,7 @@ files:
211
211
  - spec/gherkin/fixtures/examples_with_only_header.feature
212
212
  - spec/gherkin/fixtures/hantu_pisang.feature
213
213
  - spec/gherkin/fixtures/i18n_fr.feature
214
+ - spec/gherkin/fixtures/i18n_fr2.feature
214
215
  - spec/gherkin/fixtures/i18n_no.feature
215
216
  - spec/gherkin/fixtures/i18n_zh-CN.feature
216
217
  - spec/gherkin/fixtures/scenario_outline_with_tags.feature
@@ -291,7 +292,7 @@ rubyforge_project:
291
292
  rubygems_version: 1.8.10
292
293
  signing_key:
293
294
  specification_version: 3
294
- summary: gherkin-2.5.1
295
+ summary: gherkin-2.5.2
295
296
  test_files:
296
297
  - features/escaped_pipes.feature
297
298
  - features/feature_parser.feature
@@ -318,6 +319,7 @@ test_files:
318
319
  - spec/gherkin/fixtures/examples_with_only_header.feature
319
320
  - spec/gherkin/fixtures/hantu_pisang.feature
320
321
  - spec/gherkin/fixtures/i18n_fr.feature
322
+ - spec/gherkin/fixtures/i18n_fr2.feature
321
323
  - spec/gherkin/fixtures/i18n_no.feature
322
324
  - spec/gherkin/fixtures/i18n_zh-CN.feature
323
325
  - spec/gherkin/fixtures/scenario_outline_with_tags.feature