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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0311253b369e0798da0ef5819fccf7d84900a59b47563a66455ba2ac36a7df60
4
- data.tar.gz: e42ff7153065601b7f0039649804549da8280c9ac690bd5b2f2d5c894349dbda
3
+ metadata.gz: 33a913d24abd0991f9e04f34fe70d83337d9e6ddf10cbadbd70a1b4fa97dc168
4
+ data.tar.gz: f8d6eaebe0eca2c9aca0ff54db1d9a2a5bdec9123d831e90f5473b5821192d66
5
5
  SHA512:
6
- metadata.gz: 431dc14c6cc5b0db267ff12627d09e0664b7f6f2ff3debc69718dc3ce3d984a27f82f8d6af8ec2d5433ec7dc7c0cb880b7d83e6dc8da92cd79678457332c5f40
7
- data.tar.gz: bad1a0eafd6d9ae37e2c998a1662fd5c3f0d774da78efbd6f0cce491cafbf5e868f6a0fa92d6daa20850d75400841817aaf8125c541e6a34ad650d0ed5b6797e
6
+ metadata.gz: 40ef4f99f4c99c979a4b08a602d208c492dd95db811e63a2f02ace07e4b4629452b63421951ddf738df0989891cf9bb3c0e01a6d34dbf9a35830addc6e8b008b
7
+ data.tar.gz: 0b30577f67c860d55eeb32ed8ee09fed1b0b6530620e10142ce59526478e0665a2806cd236893b6555cdd2cce676a21f20d3b0ac33d0dc2d52a617d1c4d80941
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --output-dir doc/reference/en
2
2
  --markup markdown
3
- --markup-provider redcarpet
3
+ --markup-provider kramdown
4
4
  -
5
5
  doc/text/*
@@ -1,6 +1,6 @@
1
1
  # -*- ruby -*-
2
2
  #
3
- # Copyright (C) 2013-2017 Kouhei Sutou <kou@clear-code.com>
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 Sutou"]
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
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 1.3.2: 2020-05-01
4
+
5
+ ### Improvements
6
+
7
+ * Added support for Ruby 2.8.
8
+
3
9
  ## 1.3.1: 2019-06-18
4
10
 
5
11
  ### Fixes
@@ -15,5 +15,5 @@
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
  module ChupaText
18
- VERSION = "1.3.1"
18
+ VERSION = "1.3.2"
19
19
  end
@@ -45,4 +45,8 @@ module Helper
45
45
  def ruby
46
46
  RbConfig.ruby
47
47
  end
48
+
49
+ def omit_on_windows(message)
50
+ omit("Omit on Windows: #{message}") if Gem.win_platform?
51
+ end
48
52
  end
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (C) 2013 Kouhei Sutou <kou@clear-code.com>
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
@@ -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 * 2) if 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.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
- - Kouhei Sutou
7
+ - Sutou Kouhei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-18 00:00:00.000000000 Z
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: nokogiri
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: packnga
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: rake
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: redcarpet
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
- rubyforge_project:
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