gherkin 2.4.5 → 2.4.6

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.4.5)
4
+ gherkin (2.4.6)
5
5
  json (>= 1.4.6)
6
6
 
7
7
  GEM
@@ -9,10 +9,10 @@ GEM
9
9
  specs:
10
10
  awesome_print (0.4.0)
11
11
  builder (3.0.0)
12
- cucumber (1.0.0)
12
+ cucumber (1.0.2)
13
13
  builder (>= 2.1.2)
14
14
  diff-lcs (>= 1.1.2)
15
- gherkin (~> 2.4.1)
15
+ gherkin (~> 2.4.5)
16
16
  json (>= 1.4.6)
17
17
  term-ansicolor (>= 1.0.5)
18
18
  diff-lcs (1.1.2)
@@ -31,7 +31,7 @@ GEM
31
31
  rspec-expectations (2.6.0)
32
32
  diff-lcs (~> 1.1.2)
33
33
  rspec-mocks (2.6.0)
34
- term-ansicolor (1.0.5)
34
+ term-ansicolor (1.0.6)
35
35
  therubyracer (0.9.2)
36
36
  libv8 (~> 3.3.10)
37
37
  yard (0.7.2)
@@ -44,12 +44,12 @@ DEPENDENCIES
44
44
  awesome_print (>= 0.4.0)
45
45
  builder (>= 2.1.2)
46
46
  bundler (>= 1.0.15)
47
- cucumber (>= 1.0.0)
47
+ cucumber (>= 1.0.2)
48
48
  gherkin!
49
49
  rake (>= 0.9.2)
50
50
  rake-compiler (>= 0.7.8)
51
51
  rdiscount (>= 1.6.8)
52
52
  rspec (>= 2.6.0)
53
- term-ansicolor (>= 1.0.5)
53
+ term-ansicolor (>= 1.0.6)
54
54
  therubyracer (>= 0.9.2)
55
55
  yard (>= 0.7.2)
data/History.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [2.4.6](https://github.com/cucumber/gherkin/compare/v2.4.5...v2.4.6)
2
+
3
+ ### Bugfixes
4
+ * Added Icelandic translation (Ægir Örn Símonarson)
5
+ * JavaScript: String prototype has no "trimRight" function. Fixes failure in Opera. (Julien Biezemans)
6
+
1
7
  ## [2.4.5](https://github.com/cucumber/gherkin/compare/v2.4.4...v2.4.5)
2
8
 
3
9
  No changes, releasing again since the 2.4.4 release failed halfway through.
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.4.5"
5
+ s.version = "2.4.6"
6
6
  s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
7
7
  s.description = "A fast Gherkin lexer/parser for based on the Ragel State Machine Compiler."
8
8
  s.summary = "#{s.name}-#{s.version}"
@@ -44,7 +44,7 @@ Gem::Specification.new do |s|
44
44
 
45
45
  s.add_dependency('json', '>= 1.4.6')
46
46
 
47
- s.add_development_dependency('cucumber', '>= 1.0.0')
47
+ s.add_development_dependency('cucumber', '>= 1.0.2')
48
48
  s.add_development_dependency('rake', '>= 0.9.2')
49
49
  s.add_development_dependency('bundler', '>= 1.0.15')
50
50
  s.add_development_dependency('rspec', '>= 2.6.0')
@@ -58,6 +58,6 @@ Gem::Specification.new do |s|
58
58
  end
59
59
 
60
60
  # Only needed by Cucumber. Remove when Cucumber no longer needs those.
61
- s.add_development_dependency('term-ansicolor', '>= 1.0.5')
61
+ s.add_development_dependency('term-ansicolor', '>= 1.0.6')
62
62
  s.add_development_dependency('builder', '>= 2.1.2')
63
63
  end
@@ -4,7 +4,7 @@ module Gherkin
4
4
  module CLexer
5
5
  def self.[](i18n_underscored_iso_code)
6
6
  begin
7
- prefix = Config::CONFIG['arch'] =~ /mswin|mingw/ ? "#{Config::CONFIG['MAJOR']}.#{Config::CONFIG['MINOR']}/" : ''
7
+ prefix = RbConfig::CONFIG['arch'] =~ /mswin|mingw/ ? "#{RbConfig::CONFIG['MAJOR']}.#{RbConfig::CONFIG['MINOR']}/" : ''
8
8
  lib = "#{prefix}gherkin_lexer_#{i18n_underscored_iso_code}"
9
9
  require lib
10
10
  const_get(i18n_underscored_iso_code.capitalize)
@@ -99,7 +99,7 @@ module Gherkin
99
99
 
100
100
  attr_accessor :rows
101
101
 
102
- def initialize(comments, tags, keyword, name, description, line, rows=nil)
102
+ def initialize(comments, tags, keyword, name, description, line, rows)
103
103
  super(comments, tags, keyword, name, description, line)
104
104
  @rows = rows
105
105
  end
data/lib/gherkin/i18n.yml CHANGED
@@ -300,6 +300,19 @@
300
300
  then: "*|Maka"
301
301
  and: "*|Dan"
302
302
  but: "*|Tapi"
303
+ "is":
304
+ name: Icelandic
305
+ native: Íslenska
306
+ feature: Eiginleiki
307
+ background: Bakgrunnur
308
+ scenario: Atburðarás
309
+ scenario_outline: Lýsing Atburðarásar|Lýsing Dæma
310
+ examples: Dæmi|Atburðarásir
311
+ given: "*|Ef"
312
+ when: "*|Þegar"
313
+ then: "*|Þá"
314
+ and: "*|Og"
315
+ but: "*|En"
303
316
  "it":
304
317
  name: Italian
305
318
  native: italiano
@@ -44,7 +44,7 @@ module Gherkin
44
44
 
45
45
  def examples(keyword, name, description, line)
46
46
  replay_step_or_examples
47
- @examples_statement = Formatter::Model::Examples.new(grab_comments!, grab_tags!, keyword, name, description, line)
47
+ @examples_statement = Formatter::Model::Examples.new(grab_comments!, grab_tags!, keyword, name, description, line, nil)
48
48
  end
49
49
 
50
50
  def step(keyword, name, line)
@@ -181,7 +181,7 @@ Lexer.prototype.unindent = function(startcol, text) {
181
181
 
182
182
  Lexer.prototype.store_keyword_content = function(event, data, p, eof) {
183
183
  var end_point = (!this.next_keyword_start || (p == eof)) ? p : this.next_keyword_start;
184
- var content = this.unindent(this.start_col + 2, this.bytesToString(data.slice(this.content_start, end_point))).trimRight();
184
+ var content = this.unindent(this.start_col + 2, this.bytesToString(data.slice(this.content_start, end_point))).replace(/\s+$/,"");
185
185
  var content_lines = content.split("\n")
186
186
  var name = content_lines.shift() || "";
187
187
  name = name.trim();
@@ -101,6 +101,7 @@ module Gherkin
101
101
  | hr | Croatian | hrvatski |
102
102
  | hu | Hungarian | magyar |
103
103
  | id | Indonesian | Bahasa Indonesia |
104
+ | is | Icelandic | Íslenska |
104
105
  | it | Italian | italiano |
105
106
  | ja | Japanese | 日本語 |
106
107
  | ko | Korean | 한국어 |
data/tasks/gems.rake CHANGED
@@ -13,7 +13,7 @@ namespace :gems do
13
13
 
14
14
  desc 'Prepare JRuby binares'
15
15
  task :jruby => [:jar] do
16
- sh "rvm jruby@cucumber exec rspec spec"
16
+ sh "rvm jruby exec rspec spec"
17
17
  end
18
18
 
19
19
  desc 'Prepare IronRuby binaries'
metadata CHANGED
@@ -1,156 +1,155 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gherkin
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.4.6
4
5
  prerelease:
5
- version: 2.4.5
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Mike Sassak
9
9
  - Gregory Hnatiuk
10
- - "Aslak Helles\xC3\xB8y"
10
+ - Aslak Hellesøy
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
-
15
- date: 2011-07-10 00:00:00 Z
16
- dependencies:
17
- - !ruby/object:Gem::Dependency
14
+ date: 2011-08-07 00:00:00.000000000 +01:00
15
+ default_executable:
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
18
18
  name: rake-compiler
19
- prerelease: false
20
- requirement: &id001 !ruby/object:Gem::Requirement
19
+ requirement: &2164519400 !ruby/object:Gem::Requirement
21
20
  none: false
22
- requirements:
23
- - - ">="
24
- - !ruby/object:Gem::Version
21
+ requirements:
22
+ - - ! '>='
23
+ - !ruby/object:Gem::Version
25
24
  version: 0.7.8
26
25
  type: :development
27
- version_requirements: *id001
28
- - !ruby/object:Gem::Dependency
29
- name: json
30
26
  prerelease: false
31
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ version_requirements: *2164519400
28
+ - !ruby/object:Gem::Dependency
29
+ name: json
30
+ requirement: &2164518920 !ruby/object:Gem::Requirement
32
31
  none: false
33
- requirements:
34
- - - ">="
35
- - !ruby/object:Gem::Version
32
+ requirements:
33
+ - - ! '>='
34
+ - !ruby/object:Gem::Version
36
35
  version: 1.4.6
37
36
  type: :runtime
38
- version_requirements: *id002
39
- - !ruby/object:Gem::Dependency
40
- name: cucumber
41
37
  prerelease: false
42
- requirement: &id003 !ruby/object:Gem::Requirement
38
+ version_requirements: *2164518920
39
+ - !ruby/object:Gem::Dependency
40
+ name: cucumber
41
+ requirement: &2164518460 !ruby/object:Gem::Requirement
43
42
  none: false
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 1.0.0
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: 1.0.2
48
47
  type: :development
49
- version_requirements: *id003
50
- - !ruby/object:Gem::Dependency
51
- name: rake
52
48
  prerelease: false
53
- requirement: &id004 !ruby/object:Gem::Requirement
49
+ version_requirements: *2164518460
50
+ - !ruby/object:Gem::Dependency
51
+ name: rake
52
+ requirement: &2164518000 !ruby/object:Gem::Requirement
54
53
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
58
57
  version: 0.9.2
59
58
  type: :development
60
- version_requirements: *id004
61
- - !ruby/object:Gem::Dependency
62
- name: bundler
63
59
  prerelease: false
64
- requirement: &id005 !ruby/object:Gem::Requirement
60
+ version_requirements: *2164518000
61
+ - !ruby/object:Gem::Dependency
62
+ name: bundler
63
+ requirement: &2164517540 !ruby/object:Gem::Requirement
65
64
  none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
69
68
  version: 1.0.15
70
69
  type: :development
71
- version_requirements: *id005
72
- - !ruby/object:Gem::Dependency
73
- name: rspec
74
70
  prerelease: false
75
- requirement: &id006 !ruby/object:Gem::Requirement
71
+ version_requirements: *2164517540
72
+ - !ruby/object:Gem::Dependency
73
+ name: rspec
74
+ requirement: &2164517080 !ruby/object:Gem::Requirement
76
75
  none: false
77
- requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
80
79
  version: 2.6.0
81
80
  type: :development
82
- version_requirements: *id006
83
- - !ruby/object:Gem::Dependency
84
- name: awesome_print
85
81
  prerelease: false
86
- requirement: &id007 !ruby/object:Gem::Requirement
82
+ version_requirements: *2164517080
83
+ - !ruby/object:Gem::Dependency
84
+ name: awesome_print
85
+ requirement: &2164516620 !ruby/object:Gem::Requirement
87
86
  none: false
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
87
+ requirements:
88
+ - - ! '>='
89
+ - !ruby/object:Gem::Version
91
90
  version: 0.4.0
92
91
  type: :development
93
- version_requirements: *id007
94
- - !ruby/object:Gem::Dependency
95
- name: therubyracer
96
92
  prerelease: false
97
- requirement: &id008 !ruby/object:Gem::Requirement
93
+ version_requirements: *2164516620
94
+ - !ruby/object:Gem::Dependency
95
+ name: therubyracer
96
+ requirement: &2164516080 !ruby/object:Gem::Requirement
98
97
  none: false
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
102
101
  version: 0.9.2
103
102
  type: :development
104
- version_requirements: *id008
105
- - !ruby/object:Gem::Dependency
106
- name: yard
107
103
  prerelease: false
108
- requirement: &id009 !ruby/object:Gem::Requirement
104
+ version_requirements: *2164516080
105
+ - !ruby/object:Gem::Dependency
106
+ name: yard
107
+ requirement: &2164515620 !ruby/object:Gem::Requirement
109
108
  none: false
110
- requirements:
111
- - - ">="
112
- - !ruby/object:Gem::Version
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
113
112
  version: 0.7.2
114
113
  type: :development
115
- version_requirements: *id009
116
- - !ruby/object:Gem::Dependency
117
- name: rdiscount
118
114
  prerelease: false
119
- requirement: &id010 !ruby/object:Gem::Requirement
115
+ version_requirements: *2164515620
116
+ - !ruby/object:Gem::Dependency
117
+ name: rdiscount
118
+ requirement: &2164515160 !ruby/object:Gem::Requirement
120
119
  none: false
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
120
+ requirements:
121
+ - - ! '>='
122
+ - !ruby/object:Gem::Version
124
123
  version: 1.6.8
125
124
  type: :development
126
- version_requirements: *id010
127
- - !ruby/object:Gem::Dependency
128
- name: term-ansicolor
129
125
  prerelease: false
130
- requirement: &id011 !ruby/object:Gem::Requirement
126
+ version_requirements: *2164515160
127
+ - !ruby/object:Gem::Dependency
128
+ name: term-ansicolor
129
+ requirement: &2152871800 !ruby/object:Gem::Requirement
131
130
  none: false
132
- requirements:
133
- - - ">="
134
- - !ruby/object:Gem::Version
135
- version: 1.0.5
131
+ requirements:
132
+ - - ! '>='
133
+ - !ruby/object:Gem::Version
134
+ version: 1.0.6
136
135
  type: :development
137
- version_requirements: *id011
138
- - !ruby/object:Gem::Dependency
139
- name: builder
140
136
  prerelease: false
141
- requirement: &id012 !ruby/object:Gem::Requirement
137
+ version_requirements: *2152871800
138
+ - !ruby/object:Gem::Dependency
139
+ name: builder
140
+ requirement: &2152871340 !ruby/object:Gem::Requirement
142
141
  none: false
143
- requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
142
+ requirements:
143
+ - - ! '>='
144
+ - !ruby/object:Gem::Version
146
145
  version: 2.1.2
147
146
  type: :development
148
- version_requirements: *id012
147
+ prerelease: false
148
+ version_requirements: *2152871340
149
149
  description: A fast Gherkin lexer/parser for based on the Ragel State Machine Compiler.
150
150
  email: cukes@googlegroups.com
151
151
  executables: []
152
-
153
- extensions:
152
+ extensions:
154
153
  - ext/gherkin_lexer_ar/extconf.rb
155
154
  - ext/gherkin_lexer_bg/extconf.rb
156
155
  - ext/gherkin_lexer_ca/extconf.rb
@@ -173,6 +172,7 @@ extensions:
173
172
  - ext/gherkin_lexer_hr/extconf.rb
174
173
  - ext/gherkin_lexer_hu/extconf.rb
175
174
  - ext/gherkin_lexer_id/extconf.rb
175
+ - ext/gherkin_lexer_is/extconf.rb
176
176
  - ext/gherkin_lexer_it/extconf.rb
177
177
  - ext/gherkin_lexer_ja/extconf.rb
178
178
  - ext/gherkin_lexer_ko/extconf.rb
@@ -196,8 +196,7 @@ extensions:
196
196
  - ext/gherkin_lexer_zh_cn/extconf.rb
197
197
  - ext/gherkin_lexer_zh_tw/extconf.rb
198
198
  extra_rdoc_files: []
199
-
200
- files:
199
+ files:
201
200
  - .gitattributes
202
201
  - .gitignore
203
202
  - .gitmodules
@@ -362,6 +361,7 @@ files:
362
361
  - lib/gherkin/rb_lexer/hr.rb
363
362
  - lib/gherkin/rb_lexer/hu.rb
364
363
  - lib/gherkin/rb_lexer/id.rb
364
+ - lib/gherkin/rb_lexer/is.rb
365
365
  - lib/gherkin/rb_lexer/it.rb
366
366
  - lib/gherkin/rb_lexer/ja.rb
367
367
  - lib/gherkin/rb_lexer/ko.rb
@@ -406,6 +406,7 @@ files:
406
406
  - ext/gherkin_lexer_hr/gherkin_lexer_hr.c
407
407
  - ext/gherkin_lexer_hu/gherkin_lexer_hu.c
408
408
  - ext/gherkin_lexer_id/gherkin_lexer_id.c
409
+ - ext/gherkin_lexer_is/gherkin_lexer_is.c
409
410
  - ext/gherkin_lexer_it/gherkin_lexer_it.c
410
411
  - ext/gherkin_lexer_ja/gherkin_lexer_ja.c
411
412
  - ext/gherkin_lexer_ko/gherkin_lexer_ko.c
@@ -450,6 +451,7 @@ files:
450
451
  - ext/gherkin_lexer_hr/extconf.rb
451
452
  - ext/gherkin_lexer_hu/extconf.rb
452
453
  - ext/gherkin_lexer_id/extconf.rb
454
+ - ext/gherkin_lexer_is/extconf.rb
453
455
  - ext/gherkin_lexer_it/extconf.rb
454
456
  - ext/gherkin_lexer_ja/extconf.rb
455
457
  - ext/gherkin_lexer_ko/extconf.rb
@@ -472,34 +474,33 @@ files:
472
474
  - ext/gherkin_lexer_vi/extconf.rb
473
475
  - ext/gherkin_lexer_zh_cn/extconf.rb
474
476
  - ext/gherkin_lexer_zh_tw/extconf.rb
477
+ has_rdoc: true
475
478
  homepage: http://github.com/cucumber/gherkin
476
479
  licenses: []
477
-
478
480
  post_install_message:
479
- rdoc_options:
481
+ rdoc_options:
480
482
  - --charset=UTF-8
481
- require_paths:
483
+ require_paths:
482
484
  - lib
483
- required_ruby_version: !ruby/object:Gem::Requirement
485
+ required_ruby_version: !ruby/object:Gem::Requirement
484
486
  none: false
485
- requirements:
486
- - - ">="
487
- - !ruby/object:Gem::Version
488
- version: "0"
489
- required_rubygems_version: !ruby/object:Gem::Requirement
487
+ requirements:
488
+ - - ! '>='
489
+ - !ruby/object:Gem::Version
490
+ version: '0'
491
+ required_rubygems_version: !ruby/object:Gem::Requirement
490
492
  none: false
491
- requirements:
492
- - - ">="
493
- - !ruby/object:Gem::Version
494
- version: "0"
493
+ requirements:
494
+ - - ! '>='
495
+ - !ruby/object:Gem::Version
496
+ version: '0'
495
497
  requirements: []
496
-
497
498
  rubyforge_project:
498
- rubygems_version: 1.8.5
499
+ rubygems_version: 1.6.2
499
500
  signing_key:
500
501
  specification_version: 3
501
- summary: gherkin-2.4.5
502
- test_files:
502
+ summary: gherkin-2.4.6
503
+ test_files:
503
504
  - features/escaped_pipes.feature
504
505
  - features/feature_parser.feature
505
506
  - features/json_formatter.feature