chupa-text 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/chupa-text.gemspec +4 -3
- data/doc/text/news.md +6 -0
- data/lib/chupa-text/version.rb +1 -1
- data/test/helper.rb +4 -0
- data/test/run-test.rb +4 -2
- data/test/test-external-command.rb +2 -0
- data/test/test-extractor.rb +1 -1
- metadata +22 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33a913d24abd0991f9e04f34fe70d83337d9e6ddf10cbadbd70a1b4fa97dc168
|
4
|
+
data.tar.gz: f8d6eaebe0eca2c9aca0ff54db1d9a2a5bdec9123d831e90f5473b5821192d66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40ef4f99f4c99c979a4b08a602d208c492dd95db811e63a2f02ace07e4b4629452b63421951ddf738df0989891cf9bb3c0e01a6d34dbf9a35830addc6e8b008b
|
7
|
+
data.tar.gz: 0b30577f67c860d55eeb32ed8ee09fed1b0b6530620e10142ce59526478e0665a2806cd236893b6555cdd2cce676a21f20d3b0ac33d0dc2d52a617d1c4d80941
|
data/.yardopts
CHANGED
data/chupa-text.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2013-
|
3
|
+
# Copyright (C) 2013-2020 Sutou Kouhei <kou@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.name = "chupa-text"
|
33
33
|
spec.version = ChupaText::VERSION
|
34
34
|
spec.homepage = "http://ranguba.org/#about-chupa-text"
|
35
|
-
spec.authors = ["Kouhei
|
35
|
+
spec.authors = ["Sutou Kouhei"]
|
36
36
|
spec.email = ["kou@clear-code.com"]
|
37
37
|
readme = File.read("README.md", :encoding => "UTF-8")
|
38
38
|
entries = readme.split(/^\#\#\s(.*)$/)
|
@@ -52,11 +52,12 @@ Gem::Specification.new do |spec|
|
|
52
52
|
|
53
53
|
spec.add_runtime_dependency("archive-zip", ">= 0.12.0")
|
54
54
|
spec.add_runtime_dependency("csv", ">= 3.0.4")
|
55
|
+
spec.add_runtime_dependency("rexml")
|
55
56
|
|
56
57
|
spec.add_development_dependency("bundler")
|
58
|
+
spec.add_development_dependency("kramdown")
|
57
59
|
spec.add_development_dependency("nokogiri")
|
58
60
|
spec.add_development_dependency("packnga")
|
59
61
|
spec.add_development_dependency("rake")
|
60
|
-
spec.add_development_dependency("redcarpet")
|
61
62
|
spec.add_development_dependency("test-unit")
|
62
63
|
end
|
data/doc/text/news.md
CHANGED
data/lib/chupa-text/version.rb
CHANGED
data/test/helper.rb
CHANGED
data/test/run-test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (C) 2013 Kouhei
|
3
|
+
# Copyright (C) 2013-2020 Sutou Kouhei <kou@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -24,6 +24,8 @@ require "test-unit"
|
|
24
24
|
|
25
25
|
base_dir = Pathname(__FILE__).dirname.parent
|
26
26
|
lib_dir = base_dir + "lib"
|
27
|
+
test_dir = base_dir + "test"
|
28
|
+
|
27
29
|
$LOAD_PATH.unshift(lib_dir.to_s)
|
28
30
|
|
29
31
|
require "chupa-text"
|
@@ -32,4 +34,4 @@ ChupaText::Decomposers.load
|
|
32
34
|
|
33
35
|
require_relative "helper"
|
34
36
|
|
35
|
-
exit(Test::Unit::AutoRunner.run(true))
|
37
|
+
exit(Test::Unit::AutoRunner.run(true, test_dir.to_s))
|
@@ -218,6 +218,7 @@ class TestExternalCommand < Test::Unit::TestCase
|
|
218
218
|
|
219
219
|
class TestLimitCPU < self
|
220
220
|
def setup
|
221
|
+
omit_on_windows("RLIMIT_CPU doesn't exist")
|
221
222
|
@data = ChupaText::TextData.new("Hello")
|
222
223
|
limit_cpu = ChupaText::ExternalCommand.default_limit_cpu
|
223
224
|
begin
|
@@ -303,6 +304,7 @@ class TestExternalCommand < Test::Unit::TestCase
|
|
303
304
|
|
304
305
|
class TestLimitAS < self
|
305
306
|
def setup
|
307
|
+
omit_on_windows("RLIMIT_AS doesn't exist")
|
306
308
|
@data = ChupaText::TextData.new("Hello")
|
307
309
|
limit_as = ChupaText::ExternalCommand.default_limit_as
|
308
310
|
begin
|
data/test/test-extractor.rb
CHANGED
@@ -76,7 +76,7 @@ class TestExtractor < Test::Unit::TestCase
|
|
76
76
|
extracted = ChupaText::Data.new
|
77
77
|
extracted.mime_type = "text/plain"
|
78
78
|
extracted.body = data.body.gsub(/<.+?>/, "")
|
79
|
-
sleep(data.timeout *
|
79
|
+
sleep(data.timeout * 10) if data.timeout
|
80
80
|
yield(extracted)
|
81
81
|
end
|
82
82
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chupa-text
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Kouhei
|
7
|
+
- Sutou Kouhei
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: archive-zip
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 3.0.4
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rexml
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,7 +67,7 @@ dependencies:
|
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
70
|
+
name: kramdown
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - ">="
|
@@ -67,7 +81,7 @@ dependencies:
|
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
84
|
+
name: nokogiri
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
87
|
- - ">="
|
@@ -81,7 +95,7 @@ dependencies:
|
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
98
|
+
name: packnga
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
101
|
- - ">="
|
@@ -95,7 +109,7 @@ dependencies:
|
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
112
|
+
name: rake
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
115
|
- - ">="
|
@@ -290,8 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
290
304
|
- !ruby/object:Gem::Version
|
291
305
|
version: '0'
|
292
306
|
requirements: []
|
293
|
-
|
294
|
-
rubygems_version: 2.7.6.2
|
307
|
+
rubygems_version: 3.2.0.pre1
|
295
308
|
signing_key:
|
296
309
|
specification_version: 4
|
297
310
|
summary: ChupaText is an extensible text extractor. You can plug your custom text
|