gherkin 2.3.4 → 2.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/History.txt +5 -0
  2. data/VERSION +1 -1
  3. data/gherkin.gemspec +9 -9
  4. data/js/lib/gherkin/lexer/i18n/ar.js +1094 -0
  5. data/js/lib/gherkin/lexer/i18n/bg.js +1308 -0
  6. data/js/lib/gherkin/lexer/i18n/ca.js +1236 -0
  7. data/js/lib/gherkin/lexer/i18n/cs.js +1090 -0
  8. data/js/lib/gherkin/lexer/i18n/cy_gb.js +958 -0
  9. data/js/lib/gherkin/lexer/i18n/da.js +974 -0
  10. data/js/lib/gherkin/lexer/i18n/de.js +1082 -0
  11. data/js/lib/gherkin/lexer/i18n/en.js +965 -0
  12. data/js/lib/gherkin/lexer/i18n/en_au.js +902 -0
  13. data/js/lib/gherkin/lexer/i18n/en_lol.js +859 -0
  14. data/js/lib/gherkin/lexer/i18n/en_pirate.js +1136 -0
  15. data/js/lib/gherkin/lexer/i18n/en_scouse.js +1289 -0
  16. data/js/lib/gherkin/lexer/i18n/en_tx.js +942 -0
  17. data/js/lib/gherkin/lexer/i18n/eo.js +916 -0
  18. data/js/lib/gherkin/lexer/i18n/es.js +1049 -0
  19. data/js/lib/gherkin/lexer/i18n/et.js +915 -0
  20. data/js/lib/gherkin/lexer/i18n/fi.js +894 -0
  21. data/js/lib/gherkin/lexer/i18n/fr.js +1116 -0
  22. data/js/lib/gherkin/lexer/i18n/he.js +1044 -0
  23. data/js/lib/gherkin/lexer/i18n/hr.js +994 -0
  24. data/js/lib/gherkin/lexer/i18n/hu.js +1043 -0
  25. data/js/lib/gherkin/lexer/i18n/id.js +884 -0
  26. data/js/lib/gherkin/lexer/i18n/it.js +1007 -0
  27. data/js/lib/gherkin/lexer/i18n/ja.js +1344 -0
  28. data/js/lib/gherkin/lexer/i18n/ko.js +1028 -0
  29. data/js/lib/gherkin/lexer/i18n/lt.js +972 -0
  30. data/js/lib/gherkin/lexer/i18n/lu.js +1057 -0
  31. data/js/lib/gherkin/lexer/i18n/lv.js +1092 -0
  32. data/js/lib/gherkin/lexer/i18n/nl.js +1036 -0
  33. data/js/lib/gherkin/lexer/i18n/no.js +986 -0
  34. data/js/lib/gherkin/lexer/i18n/pl.js +1140 -0
  35. data/js/lib/gherkin/lexer/i18n/pt.js +1000 -0
  36. data/js/lib/gherkin/lexer/i18n/ro.js +1089 -0
  37. data/js/lib/gherkin/lexer/i18n/ru.js +1560 -0
  38. data/js/lib/gherkin/lexer/i18n/sk.js +972 -0
  39. data/js/lib/gherkin/lexer/i18n/sr_cyrl.js +1728 -0
  40. data/js/lib/gherkin/lexer/i18n/sr_latn.js +1220 -0
  41. data/js/lib/gherkin/lexer/i18n/sv.js +997 -0
  42. data/js/lib/gherkin/lexer/i18n/tr.js +1014 -0
  43. data/js/lib/gherkin/lexer/i18n/uk.js +1572 -0
  44. data/js/lib/gherkin/lexer/i18n/uz.js +1302 -0
  45. data/js/lib/gherkin/lexer/i18n/vi.js +1124 -0
  46. data/js/lib/gherkin/lexer/i18n/zh_cn.js +902 -0
  47. data/js/lib/gherkin/lexer/i18n/zh_tw.js +940 -0
  48. data/ragel/lexer.rb.rl.erb +9 -17
  49. metadata +65 -21
@@ -27,34 +27,23 @@ module Gherkin
27
27
  }
28
28
 
29
29
  action store_feature_content {
30
-
31
- store_keyword_content(:feature, data, p, eof) { |con| unindent(@start_col + 2, con).rstrip }
32
- p = @next_keyword_start - 1 if @next_keyword_start
33
- @next_keyword_start = nil
30
+ p = store_keyword_content(:feature, data, p, eof)
34
31
  }
35
32
 
36
33
  action store_background_content {
37
- store_keyword_content(:background, data, p, eof) { |con| unindent(@start_col + 2, con).rstrip }
38
- p = @next_keyword_start - 1 if @next_keyword_start
39
- @next_keyword_start = nil
34
+ p = store_keyword_content(:background, data, p, eof)
40
35
  }
41
36
 
42
37
  action store_scenario_content {
43
- store_keyword_content(:scenario, data, p, eof) { |con| unindent(@start_col + 2, con).rstrip }
44
- p = @next_keyword_start - 1 if @next_keyword_start
45
- @next_keyword_start = nil
38
+ p = store_keyword_content(:scenario, data, p, eof)
46
39
  }
47
40
 
48
41
  action store_scenario_outline_content {
49
- store_keyword_content(:scenario_outline, data, p, eof) { |con| unindent(@start_col + 2, con).rstrip }
50
- p = @next_keyword_start - 1 if @next_keyword_start
51
- @next_keyword_start = nil
42
+ p = store_keyword_content(:scenario_outline, data, p, eof)
52
43
  }
53
44
 
54
45
  action store_examples_content {
55
- store_keyword_content(:examples, data, p, eof) { |con| unindent(@start_col + 2, con).rstrip }
56
- p = @next_keyword_start - 1 if @next_keyword_start
57
- @next_keyword_start = nil
46
+ p = store_keyword_content(:examples, data, p, eof)
58
47
  }
59
48
 
60
49
  action store_step_content {
@@ -148,12 +137,15 @@ module Gherkin
148
137
 
149
138
  def store_keyword_content(event, data, p, eof)
150
139
  end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start
151
- content = yield utf8_pack(data[@content_start...end_point])
140
+ content = unindent(@start_col + 2, utf8_pack(data[@content_start...end_point])).rstrip
152
141
  content_lines = content.split("\n")
153
142
  name = content_lines.shift || ""
154
143
  name.strip!
155
144
  description = content_lines.join("\n")
156
145
  @listener.__send__(event, @keyword, name, description, @current_line)
146
+ @next_keyword_start ? @next_keyword_start - 1 : p
147
+ ensure
148
+ @next_keyword_start = nil
157
149
  end
158
150
 
159
151
  def current_line_content(data, p)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gherkin
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.3.4
5
+ version: 2.3.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mike Sassak
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2011-03-10 00:00:00 +00:00
15
+ date: 2011-03-20 00:00:00 +00:00
16
16
  default_executable: gherkin
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -32,64 +32,64 @@ dependencies:
32
32
  requirement: &id002 !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - ~>
35
+ - - ">="
36
36
  - !ruby/object:Gem::Version
37
37
  version: 1.4.6
38
38
  type: :runtime
39
39
  version_requirements: *id002
40
40
  - !ruby/object:Gem::Dependency
41
- name: rake
41
+ name: cucumber
42
42
  prerelease: false
43
43
  requirement: &id003 !ruby/object:Gem::Requirement
44
44
  none: false
45
45
  requirements:
46
- - - ~>
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: 0.8.7
48
+ version: 0.10.0
49
49
  type: :development
50
50
  version_requirements: *id003
51
51
  - !ruby/object:Gem::Dependency
52
- name: bundler
52
+ name: rake
53
53
  prerelease: false
54
54
  requirement: &id004 !ruby/object:Gem::Requirement
55
55
  none: false
56
56
  requirements:
57
- - - ~>
57
+ - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: 1.0.10
59
+ version: 0.8.7
60
60
  type: :development
61
61
  version_requirements: *id004
62
62
  - !ruby/object:Gem::Dependency
63
- name: rspec
63
+ name: bundler
64
64
  prerelease: false
65
65
  requirement: &id005 !ruby/object:Gem::Requirement
66
66
  none: false
67
67
  requirements:
68
- - - ~>
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
- version: 2.5.0
70
+ version: 1.0.10
71
71
  type: :development
72
72
  version_requirements: *id005
73
73
  - !ruby/object:Gem::Dependency
74
- name: awesome_print
74
+ name: rspec
75
75
  prerelease: false
76
76
  requirement: &id006 !ruby/object:Gem::Requirement
77
77
  none: false
78
78
  requirements:
79
- - - ~>
79
+ - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: 0.3.2
81
+ version: 2.5.0
82
82
  type: :development
83
83
  version_requirements: *id006
84
84
  - !ruby/object:Gem::Dependency
85
- name: cucumber
85
+ name: awesome_print
86
86
  prerelease: false
87
87
  requirement: &id007 !ruby/object:Gem::Requirement
88
88
  none: false
89
89
  requirements:
90
- - - ~>
90
+ - - ">="
91
91
  - !ruby/object:Gem::Version
92
- version: 0.10.0
92
+ version: "0.3"
93
93
  type: :development
94
94
  version_requirements: *id007
95
95
  - !ruby/object:Gem::Dependency
@@ -98,7 +98,7 @@ dependencies:
98
98
  requirement: &id008 !ruby/object:Gem::Requirement
99
99
  none: false
100
100
  requirements:
101
- - - ~>
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: 1.0.5
104
104
  type: :development
@@ -109,7 +109,7 @@ dependencies:
109
109
  requirement: &id009 !ruby/object:Gem::Requirement
110
110
  none: false
111
111
  requirements:
112
- - - ~>
112
+ - - ">="
113
113
  - !ruby/object:Gem::Version
114
114
  version: 3.0.0
115
115
  type: :development
@@ -200,6 +200,50 @@ files:
200
200
  - java/.gitignore
201
201
  - java/src/main/java/gherkin/lexer/i18n/.gitignore
202
202
  - java/src/main/resources/gherkin/.gitignore
203
+ - js/lib/gherkin/lexer/i18n/ar.js
204
+ - js/lib/gherkin/lexer/i18n/bg.js
205
+ - js/lib/gherkin/lexer/i18n/ca.js
206
+ - js/lib/gherkin/lexer/i18n/cs.js
207
+ - js/lib/gherkin/lexer/i18n/cy_gb.js
208
+ - js/lib/gherkin/lexer/i18n/da.js
209
+ - js/lib/gherkin/lexer/i18n/de.js
210
+ - js/lib/gherkin/lexer/i18n/en.js
211
+ - js/lib/gherkin/lexer/i18n/en_au.js
212
+ - js/lib/gherkin/lexer/i18n/en_lol.js
213
+ - js/lib/gherkin/lexer/i18n/en_pirate.js
214
+ - js/lib/gherkin/lexer/i18n/en_scouse.js
215
+ - js/lib/gherkin/lexer/i18n/en_tx.js
216
+ - js/lib/gherkin/lexer/i18n/eo.js
217
+ - js/lib/gherkin/lexer/i18n/es.js
218
+ - js/lib/gherkin/lexer/i18n/et.js
219
+ - js/lib/gherkin/lexer/i18n/fi.js
220
+ - js/lib/gherkin/lexer/i18n/fr.js
221
+ - js/lib/gherkin/lexer/i18n/he.js
222
+ - js/lib/gherkin/lexer/i18n/hr.js
223
+ - js/lib/gherkin/lexer/i18n/hu.js
224
+ - js/lib/gherkin/lexer/i18n/id.js
225
+ - js/lib/gherkin/lexer/i18n/it.js
226
+ - js/lib/gherkin/lexer/i18n/ja.js
227
+ - js/lib/gherkin/lexer/i18n/ko.js
228
+ - js/lib/gherkin/lexer/i18n/lt.js
229
+ - js/lib/gherkin/lexer/i18n/lu.js
230
+ - js/lib/gherkin/lexer/i18n/lv.js
231
+ - js/lib/gherkin/lexer/i18n/nl.js
232
+ - js/lib/gherkin/lexer/i18n/no.js
233
+ - js/lib/gherkin/lexer/i18n/pl.js
234
+ - js/lib/gherkin/lexer/i18n/pt.js
235
+ - js/lib/gherkin/lexer/i18n/ro.js
236
+ - js/lib/gherkin/lexer/i18n/ru.js
237
+ - js/lib/gherkin/lexer/i18n/sk.js
238
+ - js/lib/gherkin/lexer/i18n/sr_cyrl.js
239
+ - js/lib/gherkin/lexer/i18n/sr_latn.js
240
+ - js/lib/gherkin/lexer/i18n/sv.js
241
+ - js/lib/gherkin/lexer/i18n/tr.js
242
+ - js/lib/gherkin/lexer/i18n/uk.js
243
+ - js/lib/gherkin/lexer/i18n/uz.js
244
+ - js/lib/gherkin/lexer/i18n/vi.js
245
+ - js/lib/gherkin/lexer/i18n/zh_cn.js
246
+ - js/lib/gherkin/lexer/i18n/zh_tw.js
203
247
  - lib/.gitignore
204
248
  - lib/gherkin.rb
205
249
  - lib/gherkin/c_lexer.rb
@@ -452,7 +496,7 @@ rubyforge_project:
452
496
  rubygems_version: 1.6.2
453
497
  signing_key:
454
498
  specification_version: 3
455
- summary: gherkin-2.3.4
499
+ summary: gherkin-2.3.5
456
500
  test_files:
457
501
  - features/escaped_pipes.feature
458
502
  - features/feature_parser.feature