gherkin 2.4.3-x86-mswin32 → 2.4.4-x86-mswin32

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.4)
5
5
  json (>= 1.4.6)
6
6
 
7
7
  GEM
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
@@ -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.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/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.4
6
6
  platform: x86-mswin32
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: 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: &id008 !ruby/object:Gem::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: *id008
93
+ version_requirements: *id007
105
94
  - !ruby/object:Gem::Dependency
106
95
  name: rdiscount
107
96
  prerelease: false
108
- requirement: &id009 !ruby/object:Gem::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: *id009
104
+ version_requirements: *id008
116
105
  - !ruby/object:Gem::Dependency
117
106
  name: term-ansicolor
118
107
  prerelease: false
119
- requirement: &id010 !ruby/object:Gem::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: *id010
115
+ version_requirements: *id009
127
116
  - !ruby/object:Gem::Dependency
128
117
  name: builder
129
118
  prerelease: false
130
- requirement: &id011 !ruby/object:Gem::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: *id011
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: []
@@ -400,7 +389,7 @@ rubyforge_project:
400
389
  rubygems_version: 1.8.5
401
390
  signing_key:
402
391
  specification_version: 3
403
- summary: gherkin-2.4.3
392
+ summary: gherkin-2.4.4
404
393
  test_files:
405
394
  - features/escaped_pipes.feature
406
395
  - features/feature_parser.feature