gherkin 2.3.4-x86-mingw32 → 2.3.5-x86-mingw32

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: x86-mingw32
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
@@ -21,64 +21,64 @@ dependencies:
21
21
  requirement: &id001 !ruby/object:Gem::Requirement
22
22
  none: false
23
23
  requirements:
24
- - - ~>
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.4.6
27
27
  type: :runtime
28
28
  version_requirements: *id001
29
29
  - !ruby/object:Gem::Dependency
30
- name: rake
30
+ name: cucumber
31
31
  prerelease: false
32
32
  requirement: &id002 !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - ~>
35
+ - - ">="
36
36
  - !ruby/object:Gem::Version
37
- version: 0.8.7
37
+ version: 0.10.0
38
38
  type: :development
39
39
  version_requirements: *id002
40
40
  - !ruby/object:Gem::Dependency
41
- name: bundler
41
+ name: rake
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: 1.0.10
48
+ version: 0.8.7
49
49
  type: :development
50
50
  version_requirements: *id003
51
51
  - !ruby/object:Gem::Dependency
52
- name: rspec
52
+ name: bundler
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: 2.5.0
59
+ version: 1.0.10
60
60
  type: :development
61
61
  version_requirements: *id004
62
62
  - !ruby/object:Gem::Dependency
63
- name: awesome_print
63
+ name: rspec
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: 0.3.2
70
+ version: 2.5.0
71
71
  type: :development
72
72
  version_requirements: *id005
73
73
  - !ruby/object:Gem::Dependency
74
- name: cucumber
74
+ name: awesome_print
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.10.0
81
+ version: "0.3"
82
82
  type: :development
83
83
  version_requirements: *id006
84
84
  - !ruby/object:Gem::Dependency
@@ -87,7 +87,7 @@ dependencies:
87
87
  requirement: &id007 !ruby/object:Gem::Requirement
88
88
  none: false
89
89
  requirements:
90
- - - ~>
90
+ - - ">="
91
91
  - !ruby/object:Gem::Version
92
92
  version: 1.0.5
93
93
  type: :development
@@ -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: 3.0.0
104
104
  type: :development
@@ -146,6 +146,50 @@ files:
146
146
  - java/.gitignore
147
147
  - java/src/main/java/gherkin/lexer/i18n/.gitignore
148
148
  - java/src/main/resources/gherkin/.gitignore
149
+ - js/lib/gherkin/lexer/i18n/ar.js
150
+ - js/lib/gherkin/lexer/i18n/bg.js
151
+ - js/lib/gherkin/lexer/i18n/ca.js
152
+ - js/lib/gherkin/lexer/i18n/cs.js
153
+ - js/lib/gherkin/lexer/i18n/cy_gb.js
154
+ - js/lib/gherkin/lexer/i18n/da.js
155
+ - js/lib/gherkin/lexer/i18n/de.js
156
+ - js/lib/gherkin/lexer/i18n/en.js
157
+ - js/lib/gherkin/lexer/i18n/en_au.js
158
+ - js/lib/gherkin/lexer/i18n/en_lol.js
159
+ - js/lib/gherkin/lexer/i18n/en_pirate.js
160
+ - js/lib/gherkin/lexer/i18n/en_scouse.js
161
+ - js/lib/gherkin/lexer/i18n/en_tx.js
162
+ - js/lib/gherkin/lexer/i18n/eo.js
163
+ - js/lib/gherkin/lexer/i18n/es.js
164
+ - js/lib/gherkin/lexer/i18n/et.js
165
+ - js/lib/gherkin/lexer/i18n/fi.js
166
+ - js/lib/gherkin/lexer/i18n/fr.js
167
+ - js/lib/gherkin/lexer/i18n/he.js
168
+ - js/lib/gherkin/lexer/i18n/hr.js
169
+ - js/lib/gherkin/lexer/i18n/hu.js
170
+ - js/lib/gherkin/lexer/i18n/id.js
171
+ - js/lib/gherkin/lexer/i18n/it.js
172
+ - js/lib/gherkin/lexer/i18n/ja.js
173
+ - js/lib/gherkin/lexer/i18n/ko.js
174
+ - js/lib/gherkin/lexer/i18n/lt.js
175
+ - js/lib/gherkin/lexer/i18n/lu.js
176
+ - js/lib/gherkin/lexer/i18n/lv.js
177
+ - js/lib/gherkin/lexer/i18n/nl.js
178
+ - js/lib/gherkin/lexer/i18n/no.js
179
+ - js/lib/gherkin/lexer/i18n/pl.js
180
+ - js/lib/gherkin/lexer/i18n/pt.js
181
+ - js/lib/gherkin/lexer/i18n/ro.js
182
+ - js/lib/gherkin/lexer/i18n/ru.js
183
+ - js/lib/gherkin/lexer/i18n/sk.js
184
+ - js/lib/gherkin/lexer/i18n/sr_cyrl.js
185
+ - js/lib/gherkin/lexer/i18n/sr_latn.js
186
+ - js/lib/gherkin/lexer/i18n/sv.js
187
+ - js/lib/gherkin/lexer/i18n/tr.js
188
+ - js/lib/gherkin/lexer/i18n/uk.js
189
+ - js/lib/gherkin/lexer/i18n/uz.js
190
+ - js/lib/gherkin/lexer/i18n/vi.js
191
+ - js/lib/gherkin/lexer/i18n/zh_cn.js
192
+ - js/lib/gherkin/lexer/i18n/zh_tw.js
149
193
  - lib/.gitignore
150
194
  - lib/gherkin.rb
151
195
  - lib/gherkin/c_lexer.rb
@@ -354,7 +398,7 @@ rubyforge_project:
354
398
  rubygems_version: 1.6.2
355
399
  signing_key:
356
400
  specification_version: 3
357
- summary: gherkin-2.3.4
401
+ summary: gherkin-2.3.5
358
402
  test_files:
359
403
  - features/escaped_pipes.feature
360
404
  - features/feature_parser.feature