gherkin 2.4.5-java → 2.4.6-java

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)
@@ -29,7 +29,7 @@ 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.5)
32
+ term-ansicolor (1.0.6)
33
33
 
34
34
  PLATFORMS
35
35
  java
@@ -39,9 +39,9 @@ DEPENDENCIES
39
39
  awesome_print (>= 0.4.0)
40
40
  builder (>= 2.1.2)
41
41
  bundler (>= 1.0.15)
42
- cucumber (>= 1.0.0)
42
+ cucumber (>= 1.0.2)
43
43
  gherkin!
44
44
  rake (>= 0.9.2)
45
45
  rake-compiler (>= 0.7.8)
46
46
  rspec (>= 2.6.0)
47
- term-ansicolor (>= 1.0.5)
47
+ term-ansicolor (>= 1.0.6)
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,149 +1,146 @@
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: java
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: json
19
- prerelease: false
20
- requirement: &id001 !ruby/object:Gem::Requirement
19
+ requirement: &2164846820 !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: 1.4.6
26
25
  type: :runtime
27
- version_requirements: *id001
28
- - !ruby/object:Gem::Dependency
29
- name: cucumber
30
26
  prerelease: false
31
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ version_requirements: *2164846820
28
+ - !ruby/object:Gem::Dependency
29
+ name: cucumber
30
+ requirement: &2160649980 !ruby/object:Gem::Requirement
32
31
  none: false
33
- requirements:
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 1.0.0
32
+ requirements:
33
+ - - ! '>='
34
+ - !ruby/object:Gem::Version
35
+ version: 1.0.2
37
36
  type: :development
38
- version_requirements: *id002
39
- - !ruby/object:Gem::Dependency
40
- name: rake
41
37
  prerelease: false
42
- requirement: &id003 !ruby/object:Gem::Requirement
38
+ version_requirements: *2160649980
39
+ - !ruby/object:Gem::Dependency
40
+ name: rake
41
+ requirement: &2160649520 !ruby/object:Gem::Requirement
43
42
  none: false
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
47
46
  version: 0.9.2
48
47
  type: :development
49
- version_requirements: *id003
50
- - !ruby/object:Gem::Dependency
51
- name: bundler
52
48
  prerelease: false
53
- requirement: &id004 !ruby/object:Gem::Requirement
49
+ version_requirements: *2160649520
50
+ - !ruby/object:Gem::Dependency
51
+ name: bundler
52
+ requirement: &2160649060 !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: 1.0.15
59
58
  type: :development
60
- version_requirements: *id004
61
- - !ruby/object:Gem::Dependency
62
- name: rspec
63
59
  prerelease: false
64
- requirement: &id005 !ruby/object:Gem::Requirement
60
+ version_requirements: *2160649060
61
+ - !ruby/object:Gem::Dependency
62
+ name: rspec
63
+ requirement: &2160648600 !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: 2.6.0
70
69
  type: :development
71
- version_requirements: *id005
72
- - !ruby/object:Gem::Dependency
73
- name: awesome_print
74
70
  prerelease: false
75
- requirement: &id006 !ruby/object:Gem::Requirement
71
+ version_requirements: *2160648600
72
+ - !ruby/object:Gem::Dependency
73
+ name: awesome_print
74
+ requirement: &2160648140 !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: 0.4.0
81
80
  type: :development
82
- version_requirements: *id006
83
- - !ruby/object:Gem::Dependency
84
- name: therubyracer
85
81
  prerelease: false
86
- requirement: &id007 !ruby/object:Gem::Requirement
82
+ version_requirements: *2160648140
83
+ - !ruby/object:Gem::Dependency
84
+ name: therubyracer
85
+ requirement: &2160647600 !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.9.2
92
91
  type: :development
93
- version_requirements: *id007
94
- - !ruby/object:Gem::Dependency
95
- name: yard
96
92
  prerelease: false
97
- requirement: &id008 !ruby/object:Gem::Requirement
93
+ version_requirements: *2160647600
94
+ - !ruby/object:Gem::Dependency
95
+ name: yard
96
+ requirement: &2160647140 !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.7.2
103
102
  type: :development
104
- version_requirements: *id008
105
- - !ruby/object:Gem::Dependency
106
- name: rdiscount
107
103
  prerelease: false
108
- requirement: &id009 !ruby/object:Gem::Requirement
104
+ version_requirements: *2160647140
105
+ - !ruby/object:Gem::Dependency
106
+ name: rdiscount
107
+ requirement: &2160646680 !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: 1.6.8
114
113
  type: :development
115
- version_requirements: *id009
116
- - !ruby/object:Gem::Dependency
117
- name: term-ansicolor
118
114
  prerelease: false
119
- requirement: &id010 !ruby/object:Gem::Requirement
115
+ version_requirements: *2160646680
116
+ - !ruby/object:Gem::Dependency
117
+ name: term-ansicolor
118
+ requirement: &2160646220 !ruby/object:Gem::Requirement
120
119
  none: false
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: 1.0.5
120
+ requirements:
121
+ - - ! '>='
122
+ - !ruby/object:Gem::Version
123
+ version: 1.0.6
125
124
  type: :development
126
- version_requirements: *id010
127
- - !ruby/object:Gem::Dependency
128
- name: builder
129
125
  prerelease: false
130
- requirement: &id011 !ruby/object:Gem::Requirement
126
+ version_requirements: *2160646220
127
+ - !ruby/object:Gem::Dependency
128
+ name: builder
129
+ requirement: &2160645760 !ruby/object:Gem::Requirement
131
130
  none: false
132
- requirements:
133
- - - ">="
134
- - !ruby/object:Gem::Version
131
+ requirements:
132
+ - - ! '>='
133
+ - !ruby/object:Gem::Version
135
134
  version: 2.1.2
136
135
  type: :development
137
- version_requirements: *id011
136
+ prerelease: false
137
+ version_requirements: *2160645760
138
138
  description: A fast Gherkin lexer/parser for based on the Ragel State Machine Compiler.
139
139
  email: cukes@googlegroups.com
140
140
  executables: []
141
-
142
141
  extensions: []
143
-
144
142
  extra_rdoc_files: []
145
-
146
- files:
143
+ files:
147
144
  - .gitattributes
148
145
  - .gitignore
149
146
  - .gitmodules
@@ -289,34 +286,33 @@ files:
289
286
  - lib/base64-2.3.8.jar
290
287
  - lib/gherkin.jar
291
288
  - lib/json-simple-1.1.jar
289
+ has_rdoc: true
292
290
  homepage: http://github.com/cucumber/gherkin
293
291
  licenses: []
294
-
295
292
  post_install_message:
296
- rdoc_options:
293
+ rdoc_options:
297
294
  - --charset=UTF-8
298
- require_paths:
295
+ require_paths:
299
296
  - lib
300
- required_ruby_version: !ruby/object:Gem::Requirement
297
+ required_ruby_version: !ruby/object:Gem::Requirement
301
298
  none: false
302
- requirements:
303
- - - ">="
304
- - !ruby/object:Gem::Version
305
- version: "0"
306
- required_rubygems_version: !ruby/object:Gem::Requirement
299
+ requirements:
300
+ - - ! '>='
301
+ - !ruby/object:Gem::Version
302
+ version: '0'
303
+ required_rubygems_version: !ruby/object:Gem::Requirement
307
304
  none: false
308
- requirements:
309
- - - ">="
310
- - !ruby/object:Gem::Version
311
- version: "0"
305
+ requirements:
306
+ - - ! '>='
307
+ - !ruby/object:Gem::Version
308
+ version: '0'
312
309
  requirements: []
313
-
314
310
  rubyforge_project:
315
- rubygems_version: 1.8.5
311
+ rubygems_version: 1.6.2
316
312
  signing_key:
317
313
  specification_version: 3
318
- summary: gherkin-2.4.5
319
- test_files:
314
+ summary: gherkin-2.4.6
315
+ test_files:
320
316
  - features/escaped_pipes.feature
321
317
  - features/feature_parser.feature
322
318
  - features/json_formatter.feature