Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: cucumber/gherkin
...
head fork: cucumber/gherkin
  • 2 commits
  • 6 files changed
  • 0 commit comments
  • 1 contributor
View
5 History.txt
@@ -1,3 +1,8 @@
+== 1.0.17 (2010-04-19)
+
+=== Bugfixes
+* Gherkin::I18n.keyword_regexp was broken (used for 3rd party code generation). (#51 Aslak Hellesøy)
+
== 1.0.16 (2010-04-19)
(Something went wrong when releasing 1.0.15)
View
2  Rakefile
@@ -20,7 +20,7 @@ begin
gem.executables = ["gherkin"]
gem.add_dependency "trollop", ">= 1.15"
gem.add_development_dependency "rspec", ">= 1.3.0"
- gem.add_development_dependency "cucumber", ">= 0.6.4"
+ gem.add_development_dependency "cucumber", ">= 0.7.0.beta.1"
gem.add_development_dependency "rake-compiler", ">= 0.7.0" unless defined?(JRUBY_VERSION)
gem.files -= FileList['ikvm/**/*']
View
2  VERSION.yml
@@ -2,4 +2,4 @@
:major: 1
:minor: 0
:build:
-:patch: 16
+:patch: 17
View
4 ikvm/Gherkin/Gherkin.csproj
@@ -43,9 +43,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\release\IKVM.OpenJDK.Text.dll</HintPath>
</Reference>
- <Reference Include="gherkin-1.0.16, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
+ <Reference Include="gherkin-1.0.17, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\release\gherkin-1.0.16.dll</HintPath>
+ <HintPath>..\..\release\gherkin-1.0.17.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
View
2  java/pom.xml
@@ -6,7 +6,7 @@
<groupId>gherkin</groupId>
<artifactId>gherkin</artifactId>
- <version>1.0.16</version>
+ <version>1.0.17</version>
<packaging>jar</packaging>
<name>Gherkin</name>
View
9 lib/gherkin/i18n.rb
@@ -36,7 +36,11 @@ def get(iso_code)
def keyword_regexp(*keywords)
unique_keywords = all.map do |i18n|
keywords.map do |keyword|
- i18n.__send__("#{keyword}_keywords".to_sym)
+ if keyword.to_s == 'step'
+ i18n.step_keywords
+ else
+ i18n.keywords(keyword)
+ end
end
end
@@ -140,7 +144,8 @@ def code_keywords
end
def keywords(iso_code)
- raise "No #{iso_code} in #{@keywords.inspect}" if @keywords[iso_code].nil?
+ iso_code = iso_code.to_s
+ raise "No #{iso_code.inspect} in #{@keywords.inspect}" if @keywords[iso_code].nil?
@keywords[iso_code].split('|').map{|keyword| keyword_space(iso_code, keyword)}
end

No commit comments for this range

Something went wrong with that request. Please try again.