gherkin 1.0.16-java → 1.0.17-java
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 +2 -2
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
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gherkin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.17
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Mike Sassak
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.
|
45
|
+
version: 0.7.0.beta.1
|
46
46
|
version:
|
47
47
|
description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
|
48
48
|
email: cukes@googlegroups.com
|