henkei 2.9.2.3 → 2.9.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e944ff75afd6a3dc86edd752aaf8b9eddf1567dea93b1c1710cdf25be710b662
4
- data.tar.gz: d8a4a86fb7c46fddaa17c9ad438ad8f48902e14d1e38021412590df3197306a4
3
+ metadata.gz: ab85f3b24afd50a80c2060e0015f8a6e653f7d156e12588a802ab9bd7ad3fd79
4
+ data.tar.gz: c962a1595135bf4fd09a587d521079a22264a06f3299522ca963aaa08b8ae285
5
5
  SHA512:
6
- metadata.gz: 8aa16da88e03ff8589c3605775cce4096a9a35d95528441171af5dcb4754279e4159ebdcae4d08d2789a33ac562d82386ff565daf02f3f800458e628af64f77e
7
- data.tar.gz: 9cda283d4cfee5c766e6212eaa25834b0761190115c13243f8e6ad9b82e59d5ccaf9e44cb9a82fb9453e53ffc69ed92350ca521a3bf97cea065fffefafe28b70
6
+ metadata.gz: 8faeda658a9e15dccf86023494e995ff66dd17059d49bef9d32d4c3b8ecdb7ede6259d0707955be5804ee3685d905f42181d3ebee5a88015021861cbc1872ebf
7
+ data.tar.gz: 1ac155d1308f616ff249d5df1743d9c3ec2df144f8cd3dbd6e7f1d42a762e180e2a7d160a7bfd8af5c3f6fbd32bd2444bc15d2ce38010b147729a034eeb7a1fe
@@ -5,7 +5,7 @@ on:
5
5
  branches: [main]
6
6
  pull_request:
7
7
  branches: [main]
8
-
8
+
9
9
  env:
10
10
  CI: true
11
11
 
@@ -14,7 +14,7 @@ jobs:
14
14
  runs-on: ubuntu-latest
15
15
  strategy:
16
16
  matrix:
17
- ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4']
17
+ ruby-version: ['3.2', '3.3', '3.4', '4.0.0-preview2']
18
18
 
19
19
  steps:
20
20
  - uses: actions/checkout@v3
@@ -30,8 +30,3 @@ jobs:
30
30
 
31
31
  - name: Run tests
32
32
  run: bundle exec rspec
33
-
34
- - name: Test & publish code coverage
35
- uses: paambaati/codeclimate-action@v3.2.0
36
- env:
37
- CC_TEST_REPORTER_ID: bb96c1ff9dc66724c38fb4eb54486dd72dc88a7fd6e727c034b9cf8d747d069e
data/.rubocop.yml CHANGED
@@ -1,10 +1,10 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-rake
3
3
  - rubocop-rspec
4
4
 
5
5
  AllCops:
6
6
  NewCops: enable
7
- TargetRubyVersion: 3.0
7
+ TargetRubyVersion: 3.2
8
8
 
9
9
  Layout/EmptyLinesAroundAttributeAccessor:
10
10
  Enabled: true
data/Gemfile CHANGED
@@ -6,13 +6,11 @@ source 'https://rubygems.org'
6
6
  gemspec
7
7
 
8
8
  group :development do
9
- gem 'bundler', '~> 2.0'
10
- gem 'nokogiri', '~> 1.12'
9
+ gem 'nokogiri', '~> 1.18'
11
10
  gem 'rake', '~> 12.3'
12
- gem 'rspec', '~> 3.7'
13
- gem 'rubocop', '~> 1.26'
14
- gem 'rubocop-performance', '~> 1.13'
15
- gem 'rubocop-rake', '~> 0.6'
16
- gem 'rubocop-rspec', '~> 2.9'
17
- gem 'simplecov', '~> 0.15', '< 0.18'
11
+ gem 'rspec', '~> 3.13'
12
+ gem 'rubocop', '~> 1.81'
13
+ gem 'rubocop-performance', '~> 1.26'
14
+ gem 'rubocop-rake', '~> 0.7'
15
+ gem 'rubocop-rspec', '~> 3.8'
18
16
  end
data/README.md CHANGED
@@ -1,6 +1,4 @@
1
1
  [![Github Build Status](https://github.com/abrom/henkei/actions/workflows/test.yml/badge.svg)](https://github.com/abrom/henkei/actions/workflows/test.yml)
2
- [![Maintainability](https://api.codeclimate.com/v1/badges/d06e8c917cf7d8c07234/maintainability)](https://codeclimate.com/github/abrom/henkei/maintainability)
3
- [![Test Coverage](https://api.codeclimate.com/v1/badges/d06e8c917cf7d8c07234/test_coverage)](https://codeclimate.com/github/abrom/henkei/test_coverage)
4
2
  [![Gem Version](http://img.shields.io/gem/v/henkei.svg?style=flat)](#)
5
3
 
6
4
  # Henkei 変形
data/henkei.gemspec CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  '(.doc, .docx, .pages, .odt, .rtf, .pdf) using Apache Tika toolkit'
16
16
  spec.homepage = 'https://github.com/abrom/henkei'
17
17
  spec.license = 'MIT'
18
- spec.required_ruby_version = ['>= 3.0.0', '< 3.5.0']
18
+ spec.required_ruby_version = ['>= 3.2.0', '< 4.0.0']
19
19
 
20
20
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
21
21
  # delete this section to allow pushing this gem to any host.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Henkei
4
- VERSION = '2.9.2.3'
4
+ VERSION = '2.9.4.1'
5
5
  end
data/lib/henkei.rb CHANGED
@@ -24,8 +24,8 @@ require 'open3'
24
24
 
25
25
  # Read text and metadata from files and documents using Apache Tika toolkit
26
26
  class Henkei # rubocop:disable Metrics/ClassLength
27
- GEM_PATH = File.dirname(File.dirname(__FILE__))
28
- JAR_PATH = File.join(Henkei::GEM_PATH, 'jar', 'tika-app-2.9.2.jar')
27
+ GEM_PATH = File.dirname(__FILE__, 2)
28
+ JAR_PATH = File.join(Henkei::GEM_PATH, 'jar', 'tika-app-2.9.4.jar')
29
29
  CONFIG_PATH = File.join(Henkei::GEM_PATH, 'jar', 'tika-config.xml')
30
30
  CONFIG_WITHOUT_OCR_PATH = File.join(Henkei::GEM_PATH, 'jar', 'tika-config-without-ocr.xml')
31
31
 
data/spec/helper.rb CHANGED
@@ -1,8 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'simplecov'
4
- SimpleCov.start
5
-
6
3
  RSpec.configure do |config|
7
4
  config.run_all_when_everything_filtered = true
8
5
  config.filter_run :focus
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: henkei
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.2.3
4
+ version: 2.9.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erol Fornoles
8
8
  - Andrew Bromwich
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2025-01-13 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: json
@@ -71,7 +70,7 @@ files:
71
70
  - Rakefile
72
71
  - bin/console
73
72
  - henkei.gemspec
74
- - jar/tika-app-2.9.2.jar
73
+ - jar/tika-app-2.9.4.jar
75
74
  - jar/tika-config-without-ocr.xml
76
75
  - jar/tika-config.xml
77
76
  - lib/henkei.rb
@@ -91,7 +90,6 @@ licenses:
91
90
  metadata:
92
91
  allowed_push_host: https://rubygems.org
93
92
  rubygems_mfa_required: 'true'
94
- post_install_message:
95
93
  rdoc_options: []
96
94
  require_paths:
97
95
  - lib
@@ -99,18 +97,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
97
  requirements:
100
98
  - - ">="
101
99
  - !ruby/object:Gem::Version
102
- version: 3.0.0
100
+ version: 3.2.0
103
101
  - - "<"
104
102
  - !ruby/object:Gem::Version
105
- version: 3.5.0
103
+ version: 4.0.0
106
104
  required_rubygems_version: !ruby/object:Gem::Requirement
107
105
  requirements:
108
106
  - - ">="
109
107
  - !ruby/object:Gem::Version
110
108
  version: '0'
111
109
  requirements: []
112
- rubygems_version: 3.3.7
113
- signing_key:
110
+ rubygems_version: 3.6.9
114
111
  specification_version: 4
115
112
  summary: Read text and metadata from files and documents (.doc, .docx, .pages, .odt,
116
113
  .rtf, .pdf) using Apache Tika toolkit