opener-kaf2json 2.0.0-java → 2.0.1-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6189b9563f53756f473c46ab38e63fb5e6f4eb7c
4
- data.tar.gz: 0676e9747e6ae3f01e06bbf852d958e6cd09edfd
3
+ metadata.gz: 778c499a2c78bac40c5cf5c2232fa53756353e94
4
+ data.tar.gz: 6732737a08cb1654abce4fabe1e06cb288ab9ff9
5
5
  SHA512:
6
- metadata.gz: 828e9063625de95d67442e1279689130280700be184387bc6afe59746816cb4b79cfeaff7f542770184c15bbb901642e2d26066487707ad08cfee68f89bbbfa6
7
- data.tar.gz: 42661053b7e7cecbd8039c0b98cdde65b2dc02dfa64b14ebf555ae87108a58fac08d3d874c4d5add7cc3834a2395fda0bb2f38fcbe68a69473eb770e1e086825
6
+ metadata.gz: 60baccdd9a464416d5d755eba8b3b219f086debd2da93c0a69a4a09d904fd380b1094093184ebb161cf67031ddda52e3e7241722547c8225ec95c2aab3b94663
7
+ data.tar.gz: aec31ad41de9a70e8f5047afd6693e8784a449571b58730ef365fbb40440785263826d8466414cbf36caff26b1e5d729d566723163df437557426f0f56b43ab6
data/README.md CHANGED
@@ -87,6 +87,8 @@ At least you need the following system setup:
87
87
  ### Depenencies for normal use:
88
88
 
89
89
  * JRuby 1.7.9 or newer
90
+ * libarchive, on Debian/Ubuntu based systems this can be installed using
91
+ `sudo apt-get install libarchive-dev`
90
92
 
91
93
  ## Where to go from here
92
94
 
@@ -1,5 +1,6 @@
1
1
  require 'slop'
2
2
  require 'saxon-xslt'
3
+ require 'rumoji'
3
4
 
4
5
  require_relative 'kaf_to_json/version'
5
6
  require_relative 'kaf_to_json/server'
@@ -24,10 +25,15 @@ module Opener
24
25
  # @return [String]
25
26
  #
26
27
  def run(input)
27
- doc = Saxon::XML(input)
28
+ encoded = Rumoji.encode(input)
29
+
30
+ doc = Saxon::XML(encoded)
31
+
28
32
  xslt = Saxon::XSLT(File.read(xsl))
33
+
34
+ decoded = Rumoji.decode(xslt.transform(doc).to_s)
29
35
 
30
- return xslt.transform(doc).to_s
36
+ return decoded
31
37
  end
32
38
 
33
39
  alias tag run
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  class KafToJson
3
- VERSION = '2.0.0'
3
+ VERSION = '2.0.1'
4
4
  end
5
5
  end
@@ -33,6 +33,7 @@ Gem::Specification.new do |gem|
33
33
  gem.add_dependency 'nokogiri'
34
34
  gem.add_dependency 'saxon-xslt'
35
35
  gem.add_dependency 'slop', '~> 3.5'
36
+ gem.add_dependency 'rumoji'
36
37
 
37
38
  gem.add_development_dependency 'rspec'
38
39
  gem.add_development_dependency 'cucumber'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-kaf2json
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: java
6
6
  authors:
7
7
  - development@olery.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-25 00:00:00.000000000 Z
11
+ date: 2016-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opener-daemons
@@ -108,6 +108,20 @@ dependencies:
108
108
  version: '3.5'
109
109
  prerelease: false
110
110
  type: :runtime
111
+ - !ruby/object:Gem::Dependency
112
+ name: rumoji
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ requirement: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ prerelease: false
124
+ type: :runtime
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: rspec
113
127
  version_requirements: !ruby/object:Gem::Requirement
@@ -167,17 +181,17 @@ dependencies:
167
181
  description: Converts KAF input into JSON
168
182
  email:
169
183
  executables:
184
+ - kaf2json
170
185
  - kaf2json-daemon
171
186
  - kaf2json-server
172
- - kaf2json
173
187
  extensions: []
174
188
  extra_rdoc_files: []
175
189
  files:
176
190
  - config/kaf2json.xsl
177
191
  - lib/opener/kaf_to_json.rb
178
- - lib/opener/kaf_to_json/version.rb
179
- - lib/opener/kaf_to_json/server.rb
180
192
  - lib/opener/kaf_to_json/cli.rb
193
+ - lib/opener/kaf_to_json/server.rb
194
+ - lib/opener/kaf_to_json/version.rb
181
195
  - lib/opener/kaf_to_json/public/markdown.css
182
196
  - lib/opener/kaf_to_json/views/index.erb
183
197
  - config.ru
@@ -185,9 +199,9 @@ files:
185
199
  - README.md
186
200
  - LICENSE.txt
187
201
  - exec/kaf-to-json.rb
202
+ - bin/kaf2json
188
203
  - bin/kaf2json-daemon
189
204
  - bin/kaf2json-server
190
- - bin/kaf2json
191
205
  homepage: http://opener-project.github.com/
192
206
  licenses:
193
207
  - Apache 2.0