henkei 1.20.0 → 1.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/Gemfile +2 -0
- data/Rakefile +1 -0
- data/henkei.gemspec +4 -2
- data/jar/{tika-app-1.20.jar → tika-app-1.21.jar} +0 -0
- data/lib/henkei.rb +4 -2
- data/lib/henkei/version.rb +3 -1
- data/lib/henkei/yomu.rb +2 -0
- data/spec/helper.rb +2 -0
- data/spec/henkei_spec.rb +2 -0
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcd47b09b6fe957b09566d905fa0f1800baa3bd385bf5ecb57996f5d5d49d531
|
4
|
+
data.tar.gz: 961c762ff76e4be1356f5d3ac8af80385a2f811d4099afe98b461228b6bce374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7017ca74a03708360c2e89decec78eff6e681f61819398374ed85a456674fedcf6e5eedf83008d224686c4e716d7e9228b2f54521862e44bbd4d98f50729a76d
|
7
|
+
data.tar.gz: 6b2f718bbea1af08e0ee4ed96ed84b8d0bd423ab0596f8d9d09e7a32d11a242188edd7f48c6df46ce52b4e28964c1ca40642318ef4f48b0ffc5aea999f844371
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/henkei.gemspec
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
lib = File.expand_path('lib', __dir__)
|
2
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
5
|
|
@@ -22,9 +24,9 @@ Gem::Specification.new do |spec|
|
|
22
24
|
spec.add_runtime_dependency 'json', '>= 1.8', '< 3'
|
23
25
|
spec.add_runtime_dependency 'mime-types', '>= 1.23', '< 4'
|
24
26
|
|
25
|
-
spec.add_development_dependency 'bundler', '~>
|
27
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
26
28
|
spec.add_development_dependency 'rake', '~> 12.3'
|
27
29
|
spec.add_development_dependency 'rspec', '~> 3.7'
|
28
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
30
|
+
spec.add_development_dependency 'rubocop', '~> 0.71'
|
29
31
|
spec.add_development_dependency 'simplecov', '~> 0.15'
|
30
32
|
end
|
Binary file
|
data/lib/henkei.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'henkei/version'
|
2
4
|
require 'henkei/yomu'
|
3
5
|
|
@@ -12,7 +14,7 @@ require 'stringio'
|
|
12
14
|
# Read text and metadata from files and documents using Apache Tika toolkit
|
13
15
|
class Henkei # rubocop:disable Metrics/ClassLength
|
14
16
|
GEM_PATH = File.dirname(File.dirname(__FILE__))
|
15
|
-
JAR_PATH = File.join(Henkei::GEM_PATH, 'jar', 'tika-app-1.
|
17
|
+
JAR_PATH = File.join(Henkei::GEM_PATH, 'jar', 'tika-app-1.21.jar')
|
16
18
|
CONFIG_PATH = File.join(Henkei::GEM_PATH, 'jar', 'tika-config.xml')
|
17
19
|
DEFAULT_SERVER_PORT = 9293 # an arbitrary, but perfectly cromulent, port
|
18
20
|
|
@@ -246,7 +248,7 @@ class Henkei # rubocop:disable Metrics/ClassLength
|
|
246
248
|
# tell Tika that we're done sending data
|
247
249
|
s.shutdown(Socket::SHUT_WR)
|
248
250
|
|
249
|
-
resp = ''
|
251
|
+
resp = String.new ''
|
250
252
|
loop do
|
251
253
|
chunk = s.recv(65_536)
|
252
254
|
break if chunk.empty? || !chunk
|
data/lib/henkei/version.rb
CHANGED
data/lib/henkei/yomu.rb
CHANGED
data/spec/helper.rb
CHANGED
data/spec/henkei_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: henkei
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erol Fornoles
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-06-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -57,14 +57,14 @@ dependencies:
|
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '2.0'
|
61
61
|
type: :development
|
62
62
|
prerelease: false
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '2.0'
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
69
|
name: rake
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,14 +99,14 @@ dependencies:
|
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '0.
|
102
|
+
version: '0.71'
|
103
103
|
type: :development
|
104
104
|
prerelease: false
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '0.
|
109
|
+
version: '0.71'
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: simplecov
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,7 +139,7 @@ files:
|
|
139
139
|
- README.md
|
140
140
|
- Rakefile
|
141
141
|
- henkei.gemspec
|
142
|
-
- jar/tika-app-1.
|
142
|
+
- jar/tika-app-1.21.jar
|
143
143
|
- jar/tika-config.xml
|
144
144
|
- lib/henkei.rb
|
145
145
|
- lib/henkei/version.rb
|
@@ -169,8 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
- !ruby/object:Gem::Version
|
170
170
|
version: '0'
|
171
171
|
requirements: []
|
172
|
-
|
173
|
-
rubygems_version: 2.7.6
|
172
|
+
rubygems_version: 3.0.3
|
174
173
|
signing_key:
|
175
174
|
specification_version: 4
|
176
175
|
summary: Read text and metadata from files and documents (.doc, .docx, .pages, .odt,
|