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 CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.0.17 (2010-04-19)
2
+
3
+ === Bugfixes
4
+ * Gherkin::I18n.keyword_regexp was broken (used for 3rd party code generation). (#51 Aslak Hellesøy)
5
+
1
6
  == 1.0.16 (2010-04-19)
2
7
  (Something went wrong when releasing 1.0.15)
3
8
 
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.6.4"
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
@@ -2,4 +2,4 @@
2
2
  :major: 1
3
3
  :minor: 0
4
4
  :build:
5
- :patch: 16
5
+ :patch: 17
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
- i18n.__send__("#{keyword}_keywords".to_sym)
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
- raise "No #{iso_code} in #{@keywords.inspect}" if @keywords[iso_code].nil?
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.16
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.6.4
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