gherkin 2.4.3-java → 2.4.4-java
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/History.md +6 -0
- data/README.md +1 -0
- data/gherkin.gemspec +2 -2
- data/lib/gherkin.rb +4 -0
- data/lib/gherkin/native/java.rb +21 -0
- metadata +13 -22
data/Gemfile.lock
CHANGED
data/History.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## [2.4.4](https://github.com/cucumber/gherkin/compare/v2.4.3...v2.4.4)
|
2
|
+
|
3
|
+
### Bugfixes
|
4
|
+
* JRuby fixes. Symbols and streams are now properly converted before passing from ruby to java. (Aslak Hellesøy)
|
5
|
+
* json-simple and base64 jar files (used by some of the java classes) are now embedded in the jruby gem (Aslak Hellesøy)
|
6
|
+
|
1
7
|
## [2.4.3](https://github.com/cucumber/gherkin/compare/v2.4.2...v2.4.3)
|
2
8
|
|
3
9
|
### Changed Features
|
data/README.md
CHANGED
@@ -161,6 +161,7 @@ Make sure you have openssl installed first.
|
|
161
161
|
* java/pom.xml
|
162
162
|
* ikvm/Gherkin/Gherkin.csproj (2 places)
|
163
163
|
* js/package.json
|
164
|
+
* Run bundle update, so Gemfile.lock gets updated with the changes.
|
164
165
|
* Commit changes, otherwise you will get an error at the end when a tag is made.
|
165
166
|
* bundle exec rake gems:prepare && ./build_native_gems.sh && bundle exec rake release:ALL
|
166
167
|
* The specs intermittently fail with a segfault from therubyracer. Running specs can be disabled with SKIP_JS_SPECS=true
|
data/gherkin.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "gherkin"
|
5
|
-
s.version = "2.4.
|
5
|
+
s.version = "2.4.4"
|
6
6
|
s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
|
7
7
|
s.description = "A fast Gherkin lexer/parser for based on the Ragel State Machine Compiler."
|
8
8
|
s.summary = "#{s.name}-#{s.version}"
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |s|
|
|
30
30
|
s.platform = ENV['GEM_PLATFORM'] if ENV['GEM_PLATFORM']
|
31
31
|
case s.platform.to_s
|
32
32
|
when /java/
|
33
|
-
s.files += ['lib
|
33
|
+
s.files += Dir['lib/*.jar']
|
34
34
|
when /mswin|mingw32/
|
35
35
|
s.files += Dir['lib/*/*.so']
|
36
36
|
when /dotnet/
|
data/lib/gherkin.rb
CHANGED
data/lib/gherkin/native/java.rb
CHANGED
@@ -1,4 +1,21 @@
|
|
1
1
|
class Class
|
2
|
+
class IOWriter < Java.java.io.Writer
|
3
|
+
def initialize(io)
|
4
|
+
@io = io
|
5
|
+
end
|
6
|
+
|
7
|
+
def write(cbuf, off, len)
|
8
|
+
@io.write(cbuf.unpack("U*")[off..len].pack("U*"))
|
9
|
+
end
|
10
|
+
|
11
|
+
def flush
|
12
|
+
@io.flush
|
13
|
+
end
|
14
|
+
|
15
|
+
def close
|
16
|
+
@io.close
|
17
|
+
end
|
18
|
+
end
|
2
19
|
|
3
20
|
def implements(java_class_name)
|
4
21
|
# no-op
|
@@ -19,6 +36,10 @@ class Class
|
|
19
36
|
case(arg)
|
20
37
|
when Regexp
|
21
38
|
java.util.regex.Pattern.compile(arg.source)
|
39
|
+
when Symbol
|
40
|
+
arg.to_s
|
41
|
+
when IO
|
42
|
+
IOWriter.new(arg)
|
22
43
|
else
|
23
44
|
arg
|
24
45
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: gherkin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.4.
|
5
|
+
version: 2.4.4
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Mike Sassak
|
@@ -12,7 +12,7 @@ autorequire:
|
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
14
|
|
15
|
-
date: 2011-07-
|
15
|
+
date: 2011-07-10 00:00:00 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: json
|
@@ -80,61 +80,50 @@ dependencies:
|
|
80
80
|
version: 0.4.0
|
81
81
|
type: :development
|
82
82
|
version_requirements: *id006
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: therubyracer
|
85
|
-
prerelease: false
|
86
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
87
|
-
none: false
|
88
|
-
requirements:
|
89
|
-
- - ">="
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version: 0.9.2
|
92
|
-
type: :development
|
93
|
-
version_requirements: *id007
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: yard
|
96
85
|
prerelease: false
|
97
|
-
requirement: &
|
86
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
98
87
|
none: false
|
99
88
|
requirements:
|
100
89
|
- - ">="
|
101
90
|
- !ruby/object:Gem::Version
|
102
91
|
version: 0.7.2
|
103
92
|
type: :development
|
104
|
-
version_requirements: *
|
93
|
+
version_requirements: *id007
|
105
94
|
- !ruby/object:Gem::Dependency
|
106
95
|
name: rdiscount
|
107
96
|
prerelease: false
|
108
|
-
requirement: &
|
97
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
109
98
|
none: false
|
110
99
|
requirements:
|
111
100
|
- - ">="
|
112
101
|
- !ruby/object:Gem::Version
|
113
102
|
version: 1.6.8
|
114
103
|
type: :development
|
115
|
-
version_requirements: *
|
104
|
+
version_requirements: *id008
|
116
105
|
- !ruby/object:Gem::Dependency
|
117
106
|
name: term-ansicolor
|
118
107
|
prerelease: false
|
119
|
-
requirement: &
|
108
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
120
109
|
none: false
|
121
110
|
requirements:
|
122
111
|
- - ">="
|
123
112
|
- !ruby/object:Gem::Version
|
124
113
|
version: 1.0.5
|
125
114
|
type: :development
|
126
|
-
version_requirements: *
|
115
|
+
version_requirements: *id009
|
127
116
|
- !ruby/object:Gem::Dependency
|
128
117
|
name: builder
|
129
118
|
prerelease: false
|
130
|
-
requirement: &
|
119
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
131
120
|
none: false
|
132
121
|
requirements:
|
133
122
|
- - ">="
|
134
123
|
- !ruby/object:Gem::Version
|
135
124
|
version: 2.1.2
|
136
125
|
type: :development
|
137
|
-
version_requirements: *
|
126
|
+
version_requirements: *id010
|
138
127
|
description: A fast Gherkin lexer/parser for based on the Ragel State Machine Compiler.
|
139
128
|
email: cukes@googlegroups.com
|
140
129
|
executables: []
|
@@ -286,7 +275,9 @@ files:
|
|
286
275
|
- tasks/yard/default/layout/html/layout.erb
|
287
276
|
- tasks/yard/default/layout/html/logo.erb
|
288
277
|
- tasks/yard/default/layout/html/setup.rb
|
278
|
+
- lib/base64-2.3.8.jar
|
289
279
|
- lib/gherkin.jar
|
280
|
+
- lib/json-simple-1.1.jar
|
290
281
|
homepage: http://github.com/cucumber/gherkin
|
291
282
|
licenses: []
|
292
283
|
|
@@ -313,7 +304,7 @@ rubyforge_project:
|
|
313
304
|
rubygems_version: 1.8.5
|
314
305
|
signing_key:
|
315
306
|
specification_version: 3
|
316
|
-
summary: gherkin-2.4.
|
307
|
+
summary: gherkin-2.4.4
|
317
308
|
test_files:
|
318
309
|
- features/escaped_pipes.feature
|
319
310
|
- features/feature_parser.feature
|