gherkin 1.0.16 → 1.0.17

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
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 16
9
- version: 1.0.16
8
+ - 17
9
+ version: 1.0.17
10
10
  platform: ruby
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
- - 6
59
- - 4
60
- version: 0.6.4
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