Permalink
Browse files

I18n.getCodeKeywords() on Java included '*'. Not anymore. Release 2.2.6.

  • Loading branch information...
aslakhellesoy committed Oct 2, 2010
1 parent 1858874 commit c6f31881fff8101bf5f66bd8391c87095e4896ad
Showing with 17 additions and 5 deletions.
  1. +5 −0 History.txt
  2. +1 −0 README.rdoc
  3. +1 −1 VERSION
  4. +2 −2 ikvm/Gherkin/Gherkin.csproj
  5. +1 −1 java/pom.xml
  6. +3 −1 java/src/main/java/gherkin/I18n.java
  7. +4 −0 spec/gherkin/i18n_spec.rb
View
@@ -1,3 +1,8 @@
+== 2.2.6 (2010-10-1)
+
+=== Bugfixes
+* I18n.getCodeKeywords() on Java included '*'. Not anymore. (Aslak Hellesøy)
+
== 2.2.5 (2010-10-1)
=== New Features
View
@@ -31,6 +31,7 @@ E.g. in Bash, export RL_LANG="en,fr,no". This can be quite helpful when modifyin
* Bump version in the VERSION file and:
** java/pom.xml
** ikvm/Gherkin/Gherkin.csproj
+* Commit changes.
* rake gems:prepare && ./build_native_gems.sh && rake release:ALL
* Announce on Cucumber list, IRC and Twitter.
View
@@ -1 +1 @@
-2.2.5
+2.2.6
@@ -43,9 +43,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\release\IKVM.OpenJDK.Text.dll</HintPath>
</Reference>
- <Reference Include="gherkin-2.2.5, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
+ <Reference Include="gherkin-2.2.6, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\release\gherkin-2.2.5.dll</HintPath>
+ <HintPath>..\..\release\gherkin-2.2.6.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
View
@@ -6,7 +6,7 @@
<groupId>gherkin</groupId>
<artifactId>gherkin</artifactId>
- <version>2.2.5</version>
+ <version>2.2.6</version>
<packaging>jar</packaging>
<name>Gherkin</name>
@@ -101,7 +101,9 @@ private String localeName() {
}
public List<String> getCodeKeywords() {
- return map(getStepKeywords(), CODE_KEYWORD_MAPPER);
+ List<String> result = map(getStepKeywords(), CODE_KEYWORD_MAPPER);
+ result.remove("*");
+ return result;
}
public List<String> getStepKeywords() {
@@ -68,6 +68,10 @@ def scan_file(lexer, file)
end
end
+ it "should reject the bullet stars" do
+ Gherkin::I18n.code_keywords.should_not include('*')
+ end
+
it "should report keyword regexp" do
Gherkin::I18n.keyword_regexp(:step).should =~ /\|Quando \|Quand \|Quan \|Pryd \|Pokud \|/
end

0 comments on commit c6f3188

Please sign in to comment.