Skip to content
This repository was archived by the owner on May 28, 2019. It is now read-only.

Commit 22087d5

Browse files
committed
Added I18n.getLocale() to Java impl. Release 2.4.7.
1 parent 7b7b6be commit 22087d5

File tree

10 files changed

+29
-16
lines changed

10 files changed

+29
-16
lines changed

.rbenv-gemsets

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cucumber

Gemfile.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
gherkin (2.4.6)
4+
gherkin (2.4.7)
55
json (>= 1.4.6)
66

77
GEM
@@ -32,7 +32,7 @@ GEM
3232
diff-lcs (~> 1.1.2)
3333
rspec-mocks (2.6.0)
3434
term-ansicolor (1.0.6)
35-
therubyracer (0.9.2)
35+
therubyracer (0.9.3)
3636
libv8 (~> 3.3.10)
3737
yard (0.7.2)
3838

@@ -43,13 +43,13 @@ PLATFORMS
4343
DEPENDENCIES
4444
awesome_print (>= 0.4.0)
4545
builder (>= 2.1.2)
46-
bundler (>= 1.0.15)
46+
bundler (>= 1.0.18)
4747
cucumber (>= 1.0.2)
4848
gherkin!
4949
rake (>= 0.9.2)
5050
rake-compiler (>= 0.7.8)
5151
rdiscount (>= 1.6.8)
5252
rspec (>= 2.6.0)
5353
term-ansicolor (>= 1.0.6)
54-
therubyracer (>= 0.9.2)
54+
therubyracer (>= 0.9.3)
5555
yard (>= 0.7.2)

History.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [2.4.6](https://github.com/cucumber/gherkin/compare/v2.4.6...v2.4.7)
2+
3+
### New Features
4+
5+
* Added I18n.getLocale() to Java impl. (Aslak Hellesøy)
6+
17
## [2.4.6](https://github.com/cucumber/gherkin/compare/v2.4.5...v2.4.6)
28

39
### Bugfixes

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,19 @@ Make sure you have openssl installed first.
139139
rvm gemset create cucumber
140140
rvm use @cucumber
141141
gem install bundler
142+
unset GHERKIN_JS
142143
bundle install
143144
rake-compiler cross-ruby VERSION=1.8.6-p287
144145

145146
# 1.9.1
146147
# Later 1.9.1 patch levels or 1.9.2 don't compile on mingw.
147148
# The compiled binaries should still work on 1.9.2
148-
rvm install 1.9.1-p243
149-
rvm use 1.9.1-p243
149+
rvm install 1.9.1-p378
150+
rvm use 1.9.1-p378
150151
rvm gemset create cucumber
151152
rvm use @cucumber
152153
gem install bundler
154+
unset GHERKIN_JS
153155
bundle install
154156
rake-compiler cross-ruby VERSION=1.9.1-p243
155157

gherkin.gemspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |s|
44
s.name = "gherkin"
5-
s.version = "2.4.6"
5+
s.version = "2.4.7"
66
s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
77
s.description = "A fast Gherkin lexer/parser for based on the Ragel State Machine Compiler."
88
s.summary = "#{s.name}-#{s.version}"
@@ -46,12 +46,12 @@ Gem::Specification.new do |s|
4646

4747
s.add_development_dependency('cucumber', '>= 1.0.2')
4848
s.add_development_dependency('rake', '>= 0.9.2')
49-
s.add_development_dependency('bundler', '>= 1.0.15')
49+
s.add_development_dependency('bundler', '>= 1.0.18')
5050
s.add_development_dependency('rspec', '>= 2.6.0')
5151
s.add_development_dependency('awesome_print', '>= 0.4.0')
5252

5353
unless ENV['RUBY_CC_VERSION'] || defined?(JRUBY_VERSION)
54-
s.add_development_dependency('therubyracer', '>= 0.9.2') if ENV['GHERKIN_JS']
54+
s.add_development_dependency('therubyracer', '>= 0.9.3') if ENV['GHERKIN_JS']
5555
# For Documentation:
5656
s.add_development_dependency('yard', '>= 0.7.2')
5757
s.add_development_dependency('rdiscount', '>= 1.6.8')

ikvm/Gherkin/Gherkin.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
<SpecificVersion>False</SpecificVersion>
4444
<HintPath>..\..\release\IKVM.OpenJDK.Text.dll</HintPath>
4545
</Reference>
46-
<Reference Include="gherkin-2.4.6, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
46+
<Reference Include="gherkin-2.4.7, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
4747
<SpecificVersion>False</SpecificVersion>
48-
<HintPath>..\..\release\gherkin-2.4.6.dll</HintPath>
48+
<HintPath>..\..\release\gherkin-2.4.7.dll</HintPath>
4949
</Reference>
5050
</ItemGroup>
5151
<ItemGroup>

java/Gherkin.iml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3-
<component name="NewModuleRootManager" inherit-compiler-output="false">
3+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="false">
44
<output url="file://$MODULE_DIR$/target/classes" />
55
<output-test url="file://$MODULE_DIR$/target/test-classes" />
66
<content url="file://$MODULE_DIR$">

java/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>gherkin</groupId>
88
<artifactId>gherkin</artifactId>
9-
<version>2.4.6</version>
9+
<version>2.4.7</version>
1010

1111
<packaging>jar</packaging>
1212
<name>Gherkin</name>
@@ -77,8 +77,8 @@
7777
<artifactId>maven-compiler-plugin</artifactId>
7878
<configuration>
7979
<encoding>UTF-8</encoding>
80-
<source>1.5</source>
81-
<target>1.5</target>
80+
<source>1.6</source>
81+
<target>1.6</target>
8282
</configuration>
8383
</plugin>
8484
<plugin>

java/src/main/java/gherkin/I18n.java

+4
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ private void populateKeywords() {
6767
public String getIsoCode() {
6868
return isoCode;
6969
}
70+
71+
public Locale getLocale() {
72+
return locale;
73+
}
7074

7175
public String getUnderscoredIsoCode() {
7276
return getIsoCode().replaceAll("[\\s-]", "_").toLowerCase();

js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ "name" : "gherkin"
22
, "description" : "A fast Gherkin lexer/parser based on the Ragel State Machine Compiler."
33
, "keywords" : [ "testing", "bdd", "cucumber", "gherkin", "tests" ]
4-
, "version" : "2.4.6"
4+
, "version" : "2.4.7"
55
, "homepage" : "http://github.com/cucumber/gherkin"
66
, "author" : "Aslak Hellesøy <[email protected]>"
77
, "contributors" : [ "Aslak Hellesøy <[email protected]>" ]

0 commit comments

Comments
 (0)