gherkin 2.4.3 → 2.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gherkin (2.4.3)
4
+ gherkin (2.4.5)
5
5
  json (>= 1.4.6)
6
6
 
7
7
  GEM
data/History.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## [2.4.5](https://github.com/cucumber/gherkin/compare/v2.4.4...v2.4.5)
2
+
3
+ No changes, releasing again since the 2.4.4 release failed halfway through.
4
+
5
+ ## [2.4.4](https://github.com/cucumber/gherkin/compare/v2.4.3...v2.4.4)
6
+
7
+ ### Bugfixes
8
+ * JRuby fixes. Symbols and streams are now properly converted before passing from ruby to java. (Aslak Hellesøy)
9
+ * json-simple and base64 jar files (used by some of the java classes) are now embedded in the jruby gem (Aslak Hellesøy)
10
+
1
11
  ## [2.4.3](https://github.com/cucumber/gherkin/compare/v2.4.2...v2.4.3)
2
12
 
3
13
  ### 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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "gherkin"
5
- s.version = "2.4.3"
5
+ s.version = "2.4.5"
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/gherkin.jar']
33
+ s.files += Dir['lib/*.jar']
34
34
  when /mswin|mingw32/
35
35
  s.files += Dir['lib/*/*.so']
36
36
  when /dotnet/
@@ -1,2 +1,6 @@
1
1
  require 'gherkin/lexer/i18n_lexer'
2
2
  require 'gherkin/parser/parser'
3
+ if defined?(JRUBY_VERSION)
4
+ require 'json-simple-1.1.jar'
5
+ require 'base64-2.3.8.jar'
6
+ end
@@ -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.3
5
+ version: 2.4.5
6
6
  platform: ruby
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-09 00:00:00 Z
15
+ date: 2011-07-10 00:00:00 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rake-compiler
@@ -498,7 +498,7 @@ rubyforge_project:
498
498
  rubygems_version: 1.8.5
499
499
  signing_key:
500
500
  specification_version: 3
501
- summary: gherkin-2.4.3
501
+ summary: gherkin-2.4.5
502
502
  test_files:
503
503
  - features/escaped_pipes.feature
504
504
  - features/feature_parser.feature