gherkin 1.0.16-i386-mingw32 → 1.0.17-i386-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Rakefile +1 -1
- data/VERSION.yml +1 -1
- data/lib/gherkin/i18n.rb +7 -2
- metadata +7 -5
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ begin
|
|
20
20
|
gem.executables = ["gherkin"]
|
21
21
|
gem.add_dependency "trollop", ">= 1.15"
|
22
22
|
gem.add_development_dependency "rspec", ">= 1.3.0"
|
23
|
-
gem.add_development_dependency "cucumber", ">= 0.
|
23
|
+
gem.add_development_dependency "cucumber", ">= 0.7.0.beta.1"
|
24
24
|
gem.add_development_dependency "rake-compiler", ">= 0.7.0" unless defined?(JRUBY_VERSION)
|
25
25
|
|
26
26
|
gem.files -= FileList['ikvm/**/*']
|
data/VERSION.yml
CHANGED
data/lib/gherkin/i18n.rb
CHANGED
@@ -36,7 +36,11 @@ module Gherkin
|
|
36
36
|
def keyword_regexp(*keywords)
|
37
37
|
unique_keywords = all.map do |i18n|
|
38
38
|
keywords.map do |keyword|
|
39
|
-
|
39
|
+
if keyword.to_s == 'step'
|
40
|
+
i18n.step_keywords
|
41
|
+
else
|
42
|
+
i18n.keywords(keyword)
|
43
|
+
end
|
40
44
|
end
|
41
45
|
end
|
42
46
|
|
@@ -140,7 +144,8 @@ module Gherkin
|
|
140
144
|
end
|
141
145
|
|
142
146
|
def keywords(iso_code)
|
143
|
-
|
147
|
+
iso_code = iso_code.to_s
|
148
|
+
raise "No #{iso_code.inspect} in #{@keywords.inspect}" if @keywords[iso_code].nil?
|
144
149
|
@keywords[iso_code].split('|').map{|keyword| keyword_space(iso_code, keyword)}
|
145
150
|
end
|
146
151
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 17
|
9
|
+
version: 1.0.17
|
10
10
|
platform: i386-mingw32
|
11
11
|
authors:
|
12
12
|
- Mike Sassak
|
@@ -55,9 +55,11 @@ dependencies:
|
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
segments:
|
57
57
|
- 0
|
58
|
-
-
|
59
|
-
-
|
60
|
-
|
58
|
+
- 7
|
59
|
+
- 0
|
60
|
+
- beta
|
61
|
+
- 1
|
62
|
+
version: 0.7.0.beta.1
|
61
63
|
type: :development
|
62
64
|
version_requirements: *id003
|
63
65
|
- !ruby/object:Gem::Dependency
|