gherkin 1.0.18-java → 1.0.19-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +8 -0
- data/VERSION.yml +1 -1
- data/lib/gherkin/i18n.rb +2 -7
- data/spec/gherkin/i18n_spec.rb +2 -0
- data/spec/spec_helper.rb +1 -1
- metadata +37 -17
data/History.txt
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
== 1.0.19
|
2
|
+
|
3
|
+
=== New Features
|
4
|
+
* Works with JRuby 1.5.0.RC1 (Aslak Hellesøy)
|
5
|
+
|
6
|
+
=== Changed Features
|
7
|
+
* I18n.code_keywords now return And and But as well, making Cucumber StepDefs a little more flexible (Aslak Hellesøy)
|
8
|
+
|
1
9
|
== 1.0.18 (2010-04-21)
|
2
10
|
|
3
11
|
=== Bugfixes
|
data/VERSION.yml
CHANGED
data/lib/gherkin/i18n.rb
CHANGED
@@ -11,7 +11,6 @@ module Gherkin
|
|
11
11
|
ALL_KEYS = %w{name native feature background scenario scenario_outline examples given when then and but}
|
12
12
|
KEYWORD_KEYS = ALL_KEYS - %w{name native}
|
13
13
|
STEP_KEYWORD_KEYS = %w{given when then and but}
|
14
|
-
GWT_KEYWORD_KEYS = %w{given when then}
|
15
14
|
LANGUAGES = YAML.load_file(File.dirname(__FILE__) + '/i18n.yml')
|
16
15
|
|
17
16
|
class << self
|
@@ -132,13 +131,9 @@ module Gherkin
|
|
132
131
|
STEP_KEYWORD_KEYS.map{|iso_code| keywords(iso_code)}.flatten.uniq
|
133
132
|
end
|
134
133
|
|
135
|
-
def gwt_keywords
|
136
|
-
GWT_KEYWORD_KEYS.map{|iso_code| keywords(iso_code)}.flatten.uniq
|
137
|
-
end
|
138
|
-
|
139
134
|
# Keywords that can be used in code
|
140
135
|
def code_keywords
|
141
|
-
result =
|
136
|
+
result = step_keywords.map{|keyword| self.class.code_keyword_for(keyword)}
|
142
137
|
result.delete('*')
|
143
138
|
result
|
144
139
|
end
|
@@ -158,7 +153,7 @@ module Gherkin
|
|
158
153
|
KEYWORD_KEYS.each do |key|
|
159
154
|
pf.row([key, keywords(key).map{|keyword| %{"#{keyword}"}}.join(', ')], 0)
|
160
155
|
end
|
161
|
-
|
156
|
+
STEP_KEYWORD_KEYS.each do |key|
|
162
157
|
code_keywords = keywords(key).reject{|keyword| keyword == '* '}.map do |keyword|
|
163
158
|
%{"#{self.class.code_keyword_for(keyword)}"}
|
164
159
|
end.join(', ')
|
data/spec/gherkin/i18n_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gherkin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
- 19
|
9
|
+
version: 1.0.19
|
5
10
|
platform: java
|
6
11
|
authors:
|
7
12
|
- Mike Sassak
|
@@ -11,39 +16,52 @@ autorequire:
|
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
18
|
|
14
|
-
date: 2010-04-
|
19
|
+
date: 2010-04-23 00:00:00 +02:00
|
15
20
|
default_executable: gherkin
|
16
21
|
dependencies:
|
17
22
|
- !ruby/object:Gem::Dependency
|
18
23
|
name: trollop
|
19
|
-
|
20
|
-
|
21
|
-
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
22
26
|
requirements:
|
23
27
|
- - ">="
|
24
28
|
- !ruby/object:Gem::Version
|
29
|
+
segments:
|
30
|
+
- 1
|
31
|
+
- 15
|
25
32
|
version: "1.15"
|
26
|
-
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
27
35
|
- !ruby/object:Gem::Dependency
|
28
36
|
name: rspec
|
29
|
-
|
30
|
-
|
31
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
32
39
|
requirements:
|
33
40
|
- - ">="
|
34
41
|
- !ruby/object:Gem::Version
|
42
|
+
segments:
|
43
|
+
- 1
|
44
|
+
- 3
|
45
|
+
- 0
|
35
46
|
version: 1.3.0
|
36
|
-
|
47
|
+
type: :development
|
48
|
+
version_requirements: *id002
|
37
49
|
- !ruby/object:Gem::Dependency
|
38
50
|
name: cucumber
|
39
|
-
|
40
|
-
|
41
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
42
53
|
requirements:
|
43
54
|
- - ">="
|
44
55
|
- !ruby/object:Gem::Version
|
56
|
+
segments:
|
57
|
+
- 0
|
58
|
+
- 7
|
59
|
+
- 0
|
60
|
+
- beta
|
61
|
+
- 1
|
45
62
|
version: 0.7.0.beta.1
|
46
|
-
|
63
|
+
type: :development
|
64
|
+
version_requirements: *id003
|
47
65
|
description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
|
48
66
|
email: cukes@googlegroups.com
|
49
67
|
executables:
|
@@ -165,18 +183,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
165
183
|
requirements:
|
166
184
|
- - ">="
|
167
185
|
- !ruby/object:Gem::Version
|
186
|
+
segments:
|
187
|
+
- 0
|
168
188
|
version: "0"
|
169
|
-
version:
|
170
189
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
190
|
requirements:
|
172
191
|
- - ">="
|
173
192
|
- !ruby/object:Gem::Version
|
193
|
+
segments:
|
194
|
+
- 0
|
174
195
|
version: "0"
|
175
|
-
version:
|
176
196
|
requirements: []
|
177
197
|
|
178
198
|
rubyforge_project:
|
179
|
-
rubygems_version: 1.3.
|
199
|
+
rubygems_version: 1.3.6
|
180
200
|
signing_key:
|
181
201
|
specification_version: 3
|
182
202
|
summary: Fast Gherkin lexer/parser
|