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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca7e4a2903bba6a17a310d55d42ae8647bfa6857e27820394b4745d11a36393a
4
- data.tar.gz: e78d60f55d368455ab7fa4007240961d95e98232df41b267d057535bfb9d9f63
3
+ metadata.gz: dcd47b09b6fe957b09566d905fa0f1800baa3bd385bf5ecb57996f5d5d49d531
4
+ data.tar.gz: 961c762ff76e4be1356f5d3ac8af80385a2f811d4099afe98b461228b6bce374
5
5
  SHA512:
6
- metadata.gz: bf5b4fa6bfaa408f0572e6a034f01a8d5bdcb629208ab17f143fc7dffee936cd012a2d839852c01d39a8006d890a6158ed7c798120e8d41b91f0b00850082056
7
- data.tar.gz: 46461c2c92c1798f97fe8f1942d31eb0ca82867015fe8b7de186140da98e0d4377860852c15d61e0533d7515db2cbccfd687027a8a5887d6a677dbeb79d776f2
6
+ metadata.gz: 7017ca74a03708360c2e89decec78eff6e681f61819398374ed85a456674fedcf6e5eedf83008d224686c4e716d7e9228b2f54521862e44bbd4d98f50729a76d
7
+ data.tar.gz: 6b2f718bbea1af08e0ee4ed96ed84b8d0bd423ab0596f8d9d09e7a32d11a242188edd7f48c6df46ce52b4e28964c1ca40642318ef4f48b0ffc5aea999f844371
@@ -4,10 +4,10 @@ env:
4
4
 
5
5
  language: ruby
6
6
  rvm:
7
- - 2.2
8
7
  - 2.3
9
8
  - 2.4
10
9
  - 2.5
10
+ - 2.6
11
11
 
12
12
  before_install:
13
13
  - gem update bundler
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in henkei.gemspec
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env rake
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'bundler/gem_tasks'
4
5
  require 'rspec/core/rake_task'
@@ -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', '~> 1.3'
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.53'
30
+ spec.add_development_dependency 'rubocop', '~> 0.71'
29
31
  spec.add_development_dependency 'simplecov', '~> 0.15'
30
32
  end
@@ -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.20.jar')
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Henkei
2
- VERSION = '1.20.0'.freeze
4
+ VERSION = '1.21.0'
3
5
  end
@@ -1 +1,3 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Yomu = Henkei
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'simplecov'
2
4
  SimpleCov.start
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'helper.rb'
2
4
  require 'henkei'
3
5
 
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.20.0
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: 2018-12-23 00:00:00.000000000 Z
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: '1.3'
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: '1.3'
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.53'
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.53'
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.20.jar
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
- rubyforge_project:
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,