chupa-text-decomposer-libreoffice 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +5 -3
- data/chupa-text-decomposer-libreoffice.gemspec +4 -4
- data/doc/text/news.md +13 -0
- data/lib/chupa-text/decomposers/libreoffice.rb +4 -3
- data/test/fixture/pptx/attributes.pptx +0 -0
- data/test/helper.rb +14 -0
- data/test/test-doc.rb +4 -3
- data/test/test-docx.rb +4 -3
- data/test/test-odp.rb +5 -3
- data/test/test-ods.rb +4 -3
- data/test/test-odt.rb +4 -3
- data/test/test-ppt.rb +5 -3
- data/test/test-pptx.rb +4 -9
- data/test/test-xls.rb +4 -3
- data/test/test-xlsx.rb +4 -3
- metadata +48 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2001a39bf2303c6f3a1621581f69405f0c0c670a
|
4
|
+
data.tar.gz: 427f1a189a7bd80ac61c1789953bc216156f8bf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f9a24668f372493805ca048a6e8f7d0d8da249e9290d5e8c32970bb2d3d86af45af7a19469adfe92e909d095d034493413d471e769d51cdf3dfbe9d0ba716ac
|
7
|
+
data.tar.gz: '079894b7ca1f54757848b75e5037b26e9370834eb576a8ae59c66cfb88b27adc860c979e3f7eee3e15b0270af8a668de188e34e0d4f89702995257f8421e01c8'
|
data/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# -*-
|
1
|
+
# -*- ruby -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2014 Kouhei Sutou <kou@clear-code.com>
|
3
|
+
# Copyright (C) 2014-2017 Kouhei Sutou <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
|
@@ -34,7 +34,9 @@ end
|
|
34
34
|
helper.install
|
35
35
|
spec = helper.gemspec
|
36
36
|
|
37
|
-
Packnga::DocumentTask.new(spec) do
|
37
|
+
Packnga::DocumentTask.new(spec) do |task|
|
38
|
+
task.original_language = "en"
|
39
|
+
task.translate_language = "ja"
|
38
40
|
end
|
39
41
|
|
40
42
|
Packnga::ReleaseTask.new(spec) do
|
@@ -1,6 +1,6 @@
|
|
1
|
-
# -*-
|
1
|
+
# -*- ruby -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2014 Kouhei Sutou <kou@clear-code.com>
|
3
|
+
# Copyright (C) 2014-2017 Kouhei Sutou <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
|
@@ -22,7 +22,7 @@ end
|
|
22
22
|
|
23
23
|
Gem::Specification.new do |spec|
|
24
24
|
spec.name = "chupa-text-decomposer-libreoffice"
|
25
|
-
spec.version = "1.0.
|
25
|
+
spec.version = "1.0.1"
|
26
26
|
spec.homepage = "https://github.com/ranguba/chupa-text-decomposer-libreoffice"
|
27
27
|
spec.authors = ["Kouhei Sutou"]
|
28
28
|
spec.email = ["kou@clear-code.com"]
|
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
description = clean_white_space.call(entries[entries.index("Description") + 1])
|
32
32
|
spec.summary = description.split(/\n\n+/, 2).first
|
33
33
|
spec.description = description
|
34
|
-
spec.license = "
|
34
|
+
spec.license = "LGPL-2.1+"
|
35
35
|
spec.files = ["#{spec.name}.gemspec"]
|
36
36
|
spec.files += ["README.md", "LICENSE.txt", "Rakefile", "Gemfile"]
|
37
37
|
spec.files += [".yardopts"]
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.0.1: 2017-07-06
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Supported Windows.
|
8
|
+
[GitHub#1][Patch by Masafumi Yokoyama]
|
9
|
+
|
10
|
+
* Supported ChupaText 1.0.7.
|
11
|
+
|
12
|
+
### Thanks
|
13
|
+
|
14
|
+
* Masafumi Yokoyama
|
15
|
+
|
3
16
|
## 1.0.0: 2014-02-16
|
4
17
|
|
5
18
|
The first release!!!
|
@@ -82,7 +82,8 @@ module ChupaText
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def expand_candidate(candidate)
|
85
|
-
Dir.glob("/opt/libreoffice*/program/#{candidate}").first
|
85
|
+
Dir.glob("/opt/libreoffice*/program/#{candidate}").first or
|
86
|
+
Dir.glob("C:/Program Files*/libreoffice*/program/#{candidate}.exe").first
|
86
87
|
end
|
87
88
|
|
88
89
|
def convert_to_pdf(data)
|
@@ -93,7 +94,7 @@ module ChupaText
|
|
93
94
|
"--nologo",
|
94
95
|
"--convert-to", "pdf",
|
95
96
|
"--outdir", temporary_directory,
|
96
|
-
data.path,
|
97
|
+
data.path.to_s,
|
97
98
|
{
|
98
99
|
:spawn_options => {
|
99
100
|
:out => output.path,
|
@@ -122,7 +123,7 @@ module ChupaText
|
|
122
123
|
return nil
|
123
124
|
end
|
124
125
|
File.open(pdf_path, "rb") do |pdf|
|
125
|
-
ChupaText::VirtualFileData.new(pdf_path, pdf)
|
126
|
+
ChupaText::VirtualFileData.new(pdf_path, pdf, :source_data => data)
|
126
127
|
end
|
127
128
|
end
|
128
129
|
end
|
Binary file
|
data/test/helper.rb
CHANGED
@@ -42,4 +42,18 @@ module DecomposeHelper
|
|
42
42
|
end
|
43
43
|
decomposed
|
44
44
|
end
|
45
|
+
|
46
|
+
def normalize_producers(producers)
|
47
|
+
producers.collect do |producer|
|
48
|
+
normalize_producer(producer)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def normalize_producer(producer)
|
53
|
+
if /\ALibreOffice \d\.\d\z/ =~ producer
|
54
|
+
"LibreOffice X.Y"
|
55
|
+
else
|
56
|
+
producer
|
57
|
+
end
|
58
|
+
end
|
45
59
|
end
|
data/test/test-doc.rb
CHANGED
@@ -80,7 +80,8 @@ class TestDoc < Test::Unit::TestCase
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def test_producer
|
83
|
-
assert_equal(["LibreOffice
|
83
|
+
assert_equal(["LibreOffice X.Y"],
|
84
|
+
normalize_producers(decompose("producer")))
|
84
85
|
end
|
85
86
|
|
86
87
|
def test_creation_date
|
@@ -97,7 +98,7 @@ class TestDoc < Test::Unit::TestCase
|
|
97
98
|
|
98
99
|
sub_test_case("one page") do
|
99
100
|
def test_body
|
100
|
-
assert_equal(["Page1"], decompose.collect(&:body))
|
101
|
+
assert_equal(["Page1\n"], decompose.collect(&:body))
|
101
102
|
end
|
102
103
|
|
103
104
|
private
|
@@ -108,7 +109,7 @@ class TestDoc < Test::Unit::TestCase
|
|
108
109
|
|
109
110
|
sub_test_case("multi pages") do
|
110
111
|
def test_body
|
111
|
-
assert_equal([<<-BODY
|
112
|
+
assert_equal([<<-BODY], decompose.collect(&:body))
|
112
113
|
Page1
|
113
114
|
Page2
|
114
115
|
BODY
|
data/test/test-docx.rb
CHANGED
@@ -80,7 +80,8 @@ class TestDocx < Test::Unit::TestCase
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def test_producer
|
83
|
-
assert_equal(["LibreOffice
|
83
|
+
assert_equal(["LibreOffice X.Y"],
|
84
|
+
normalize_producers(decompose("producer")))
|
84
85
|
end
|
85
86
|
|
86
87
|
def test_creation_date
|
@@ -97,7 +98,7 @@ class TestDocx < Test::Unit::TestCase
|
|
97
98
|
|
98
99
|
sub_test_case("one page") do
|
99
100
|
def test_body
|
100
|
-
assert_equal(["Page1"], decompose.collect(&:body))
|
101
|
+
assert_equal(["Page1\n"], decompose.collect(&:body))
|
101
102
|
end
|
102
103
|
|
103
104
|
private
|
@@ -108,7 +109,7 @@ class TestDocx < Test::Unit::TestCase
|
|
108
109
|
|
109
110
|
sub_test_case("multi pages") do
|
110
111
|
def test_body
|
111
|
-
assert_equal([<<-BODY
|
112
|
+
assert_equal([<<-BODY], decompose.collect(&:body))
|
112
113
|
Page1
|
113
114
|
Page2
|
114
115
|
BODY
|
data/test/test-odp.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
+
#
|
2
3
|
# Copyright (C) 2014 Kouhei Sutou <kou@clear-code.com>
|
3
4
|
#
|
4
5
|
# This library is free software; you can redistribute it and/or
|
@@ -81,7 +82,8 @@ class TestOdp < Test::Unit::TestCase
|
|
81
82
|
end
|
82
83
|
|
83
84
|
def test_producer
|
84
|
-
assert_equal(["LibreOffice
|
85
|
+
assert_equal(["LibreOffice X.Y"],
|
86
|
+
normalize_producers(decompose("producer")))
|
85
87
|
end
|
86
88
|
|
87
89
|
def test_creation_date
|
@@ -98,7 +100,7 @@ class TestOdp < Test::Unit::TestCase
|
|
98
100
|
|
99
101
|
sub_test_case("one slide") do
|
100
102
|
def test_body
|
101
|
-
assert_equal([<<-BODY
|
103
|
+
assert_equal([<<-BODY], decompose.collect(&:body))
|
102
104
|
Slide1 title
|
103
105
|
Slide1 content
|
104
106
|
BODY
|
@@ -112,7 +114,7 @@ Slide1 content
|
|
112
114
|
|
113
115
|
sub_test_case("multi slides") do
|
114
116
|
def test_body
|
115
|
-
assert_equal([<<-BODY
|
117
|
+
assert_equal([<<-BODY], decompose.collect(&:body))
|
116
118
|
Slide1 title
|
117
119
|
Slide1 content
|
118
120
|
Slide2 title
|
data/test/test-ods.rb
CHANGED
@@ -80,7 +80,8 @@ class TestOds < Test::Unit::TestCase
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def test_producer
|
83
|
-
assert_equal(["LibreOffice
|
83
|
+
assert_equal(["LibreOffice X.Y"],
|
84
|
+
normalize_producers(decompose("producer")))
|
84
85
|
end
|
85
86
|
|
86
87
|
def test_creation_date
|
@@ -97,7 +98,7 @@ class TestOds < Test::Unit::TestCase
|
|
97
98
|
|
98
99
|
sub_test_case("one sheet") do
|
99
100
|
def test_body
|
100
|
-
assert_equal([<<-BODY
|
101
|
+
assert_equal([<<-BODY], decompose.collect(&:body))
|
101
102
|
Sheet1 - A1
|
102
103
|
Sheet1 - A2
|
103
104
|
Sheet1 - B1
|
@@ -113,7 +114,7 @@ Sheet1 - B2
|
|
113
114
|
|
114
115
|
sub_test_case("multi sheets") do
|
115
116
|
def test_body
|
116
|
-
assert_equal([<<-BODY
|
117
|
+
assert_equal([<<-BODY], decompose.collect(&:body))
|
117
118
|
Sheet1 - A1
|
118
119
|
Sheet1 - A2
|
119
120
|
Sheet1 - B1
|
data/test/test-odt.rb
CHANGED
@@ -80,7 +80,8 @@ class TestOdt < Test::Unit::TestCase
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def test_producer
|
83
|
-
assert_equal(["LibreOffice
|
83
|
+
assert_equal(["LibreOffice X.Y"],
|
84
|
+
normalize_producers(decompose("producer")))
|
84
85
|
end
|
85
86
|
|
86
87
|
def test_creation_date
|
@@ -97,7 +98,7 @@ class TestOdt < Test::Unit::TestCase
|
|
97
98
|
|
98
99
|
sub_test_case("one page") do
|
99
100
|
def test_body
|
100
|
-
assert_equal(["Page1"], decompose.collect(&:body))
|
101
|
+
assert_equal(["Page1\n"], decompose.collect(&:body))
|
101
102
|
end
|
102
103
|
|
103
104
|
private
|
@@ -108,7 +109,7 @@ class TestOdt < Test::Unit::TestCase
|
|
108
109
|
|
109
110
|
sub_test_case("multi pages") do
|
110
111
|
def test_body
|
111
|
-
assert_equal([<<-BODY
|
112
|
+
assert_equal([<<-BODY], decompose.collect(&:body))
|
112
113
|
Page1
|
113
114
|
Page2
|
114
115
|
BODY
|
data/test/test-ppt.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
+
#
|
2
3
|
# Copyright (C) 2014 Kouhei Sutou <kou@clear-code.com>
|
3
4
|
#
|
4
5
|
# This library is free software; you can redistribute it and/or
|
@@ -81,7 +82,8 @@ class TestPpt < Test::Unit::TestCase
|
|
81
82
|
end
|
82
83
|
|
83
84
|
def test_producer
|
84
|
-
assert_equal(["LibreOffice
|
85
|
+
assert_equal(["LibreOffice X.Y"],
|
86
|
+
normalize_producers(decompose("producer")))
|
85
87
|
end
|
86
88
|
|
87
89
|
def test_creation_date
|
@@ -98,7 +100,7 @@ class TestPpt < Test::Unit::TestCase
|
|
98
100
|
|
99
101
|
sub_test_case("one slide") do
|
100
102
|
def test_body
|
101
|
-
assert_equal([<<-BODY
|
103
|
+
assert_equal([<<-BODY], decompose.collect(&:body))
|
102
104
|
Slide1 title
|
103
105
|
Slide1 content
|
104
106
|
BODY
|
@@ -112,7 +114,7 @@ Slide1 content
|
|
112
114
|
|
113
115
|
sub_test_case("multi slides") do
|
114
116
|
def test_body
|
115
|
-
assert_equal([<<-BODY
|
117
|
+
assert_equal([<<-BODY], decompose.collect(&:body))
|
116
118
|
Slide1 title
|
117
119
|
Slide1 content
|
118
120
|
Slide2 title
|
data/test/test-pptx.rb
CHANGED
@@ -59,12 +59,6 @@ class TestPptx < Test::Unit::TestCase
|
|
59
59
|
include DecomposeHelper
|
60
60
|
|
61
61
|
sub_test_case("attributes") do
|
62
|
-
def setup
|
63
|
-
super
|
64
|
-
omit("We don't have pptx with attributes " +
|
65
|
-
"because LibreOffice 4.1 can't generate pptx with attributes.")
|
66
|
-
end
|
67
|
-
|
68
62
|
def test_title
|
69
63
|
assert_equal(["Title"], decompose("title"))
|
70
64
|
end
|
@@ -86,7 +80,8 @@ class TestPptx < Test::Unit::TestCase
|
|
86
80
|
end
|
87
81
|
|
88
82
|
def test_producer
|
89
|
-
assert_equal(["LibreOffice
|
83
|
+
assert_equal(["LibreOffice X.Y"],
|
84
|
+
normalize_producers(decompose("producer")))
|
90
85
|
end
|
91
86
|
|
92
87
|
def test_creation_date
|
@@ -103,7 +98,7 @@ class TestPptx < Test::Unit::TestCase
|
|
103
98
|
|
104
99
|
sub_test_case("one slide") do
|
105
100
|
def test_body
|
106
|
-
assert_equal([<<-BODY
|
101
|
+
assert_equal([<<-BODY], decompose.collect(&:body))
|
107
102
|
Slide1 title
|
108
103
|
Slide1 content
|
109
104
|
BODY
|
@@ -117,7 +112,7 @@ Slide1 content
|
|
117
112
|
|
118
113
|
sub_test_case("multi slides") do
|
119
114
|
def test_body
|
120
|
-
assert_equal([<<-BODY
|
115
|
+
assert_equal([<<-BODY], decompose.collect(&:body))
|
121
116
|
Slide1 title
|
122
117
|
Slide1 content
|
123
118
|
Slide2 title
|
data/test/test-xls.rb
CHANGED
@@ -80,7 +80,8 @@ class TestXls < Test::Unit::TestCase
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def test_producer
|
83
|
-
assert_equal(["LibreOffice
|
83
|
+
assert_equal(["LibreOffice X.Y"],
|
84
|
+
normalize_producers(decompose("producer")))
|
84
85
|
end
|
85
86
|
|
86
87
|
def test_creation_date
|
@@ -97,7 +98,7 @@ class TestXls < Test::Unit::TestCase
|
|
97
98
|
|
98
99
|
sub_test_case("one sheet") do
|
99
100
|
def test_body
|
100
|
-
assert_equal([<<-BODY
|
101
|
+
assert_equal([<<-BODY], decompose.collect(&:body))
|
101
102
|
Sheet1 - A1
|
102
103
|
Sheet1 - A2
|
103
104
|
Sheet1 - B1
|
@@ -113,7 +114,7 @@ Sheet1 - B2
|
|
113
114
|
|
114
115
|
sub_test_case("multi sheets") do
|
115
116
|
def test_body
|
116
|
-
assert_equal([<<-BODY
|
117
|
+
assert_equal([<<-BODY], decompose.collect(&:body))
|
117
118
|
Sheet1 - A1
|
118
119
|
Sheet1 - A2
|
119
120
|
Sheet1 - B1
|
data/test/test-xlsx.rb
CHANGED
@@ -80,7 +80,8 @@ class TestXlsx < Test::Unit::TestCase
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def test_producer
|
83
|
-
assert_equal(["LibreOffice
|
83
|
+
assert_equal(["LibreOffice X.Y"],
|
84
|
+
normalize_producers(decompose("producer")))
|
84
85
|
end
|
85
86
|
|
86
87
|
def test_creation_date
|
@@ -97,7 +98,7 @@ class TestXlsx < Test::Unit::TestCase
|
|
97
98
|
|
98
99
|
sub_test_case("one sheet") do
|
99
100
|
def test_body
|
100
|
-
assert_equal([<<-BODY
|
101
|
+
assert_equal([<<-BODY], decompose.collect(&:body))
|
101
102
|
Sheet1 - A1
|
102
103
|
Sheet1 - A2
|
103
104
|
Sheet1 - B1
|
@@ -113,7 +114,7 @@ Sheet1 - B2
|
|
113
114
|
|
114
115
|
sub_test_case("multi sheets") do
|
115
116
|
def test_body
|
116
|
-
assert_equal([<<-BODY
|
117
|
+
assert_equal([<<-BODY], decompose.collect(&:body))
|
117
118
|
Sheet1 - A1
|
118
119
|
Sheet1 - A2
|
119
120
|
Sheet1 - B1
|
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chupa-text-decomposer-libreoffice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chupa-text-decomposer-pdf
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: test-unit
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: packnga
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: redcarpet
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
description: |
|
@@ -110,55 +110,55 @@ executables: []
|
|
110
110
|
extensions: []
|
111
111
|
extra_rdoc_files: []
|
112
112
|
files:
|
113
|
-
-
|
114
|
-
-
|
113
|
+
- ".yardopts"
|
114
|
+
- Gemfile
|
115
115
|
- LICENSE.txt
|
116
|
+
- README.md
|
116
117
|
- Rakefile
|
117
|
-
-
|
118
|
-
- .yardopts
|
119
|
-
- lib/chupa-text/decomposers/libreoffice.rb
|
118
|
+
- chupa-text-decomposer-libreoffice.gemspec
|
120
119
|
- doc/text/news.md
|
121
|
-
-
|
122
|
-
- test/
|
123
|
-
- test/
|
124
|
-
- test/
|
120
|
+
- lib/chupa-text/decomposers/libreoffice.rb
|
121
|
+
- test/fixture/doc/attributes.doc
|
122
|
+
- test/fixture/doc/multi-pages.doc
|
123
|
+
- test/fixture/doc/one-page.doc
|
124
|
+
- test/fixture/docx/attributes.docx
|
125
|
+
- test/fixture/docx/multi-pages.docx
|
126
|
+
- test/fixture/docx/one-page.docx
|
125
127
|
- test/fixture/odp/attributes.odp
|
126
128
|
- test/fixture/odp/multi-slides.odp
|
127
129
|
- test/fixture/odp/one-slide.odp
|
128
|
-
- test/fixture/odt/one-page.odt
|
129
|
-
- test/fixture/odt/multi-pages.odt
|
130
|
-
- test/fixture/odt/attributes.odt
|
131
|
-
- test/fixture/docx/one-page.docx
|
132
|
-
- test/fixture/docx/multi-pages.docx
|
133
|
-
- test/fixture/docx/attributes.docx
|
134
|
-
- test/fixture/ods/one-sheet.ods
|
135
130
|
- test/fixture/ods/attributes.ods
|
136
131
|
- test/fixture/ods/multi-sheets.ods
|
137
|
-
- test/fixture/
|
138
|
-
- test/fixture/
|
139
|
-
- test/fixture/
|
132
|
+
- test/fixture/ods/one-sheet.ods
|
133
|
+
- test/fixture/odt/attributes.odt
|
134
|
+
- test/fixture/odt/multi-pages.odt
|
135
|
+
- test/fixture/odt/one-page.odt
|
136
|
+
- test/fixture/ppt/attributes.ppt
|
137
|
+
- test/fixture/ppt/multi-slides.ppt
|
138
|
+
- test/fixture/ppt/one-slide.ppt
|
139
|
+
- test/fixture/pptx/attributes.pptx
|
140
|
+
- test/fixture/pptx/multi-slides.pptx
|
141
|
+
- test/fixture/pptx/one-slide.pptx
|
140
142
|
- test/fixture/xls/attributes.xls
|
141
143
|
- test/fixture/xls/multi-sheets.xls
|
142
144
|
- test/fixture/xls/one-sheet.xls
|
143
|
-
- test/fixture/pptx/one-slide.pptx
|
144
|
-
- test/fixture/pptx/multi-slides.pptx
|
145
|
-
- test/fixture/pptx/attributes.pptx
|
146
145
|
- test/fixture/xlsx/attributes.xlsx
|
147
|
-
- test/fixture/xlsx/one-sheet.xlsx
|
148
146
|
- test/fixture/xlsx/multi-sheets.xlsx
|
149
|
-
- test/fixture/
|
150
|
-
- test/
|
151
|
-
- test/fixture/ppt/one-slide.ppt
|
152
|
-
- test/test-odp.rb
|
153
|
-
- test/test-xls.rb
|
147
|
+
- test/fixture/xlsx/one-sheet.xlsx
|
148
|
+
- test/helper.rb
|
154
149
|
- test/run-test.rb
|
155
|
-
- test/test-
|
150
|
+
- test/test-doc.rb
|
151
|
+
- test/test-docx.rb
|
152
|
+
- test/test-odp.rb
|
153
|
+
- test/test-ods.rb
|
154
|
+
- test/test-odt.rb
|
156
155
|
- test/test-ppt.rb
|
157
156
|
- test/test-pptx.rb
|
158
|
-
- test/test-
|
157
|
+
- test/test-xls.rb
|
158
|
+
- test/test-xlsx.rb
|
159
159
|
homepage: https://github.com/ranguba/chupa-text-decomposer-libreoffice
|
160
160
|
licenses:
|
161
|
-
-
|
161
|
+
- LGPL-2.1+
|
162
162
|
metadata: {}
|
163
163
|
post_install_message:
|
164
164
|
rdoc_options: []
|
@@ -166,22 +166,21 @@ require_paths:
|
|
166
166
|
- lib
|
167
167
|
required_ruby_version: !ruby/object:Gem::Requirement
|
168
168
|
requirements:
|
169
|
-
- -
|
169
|
+
- - ">="
|
170
170
|
- !ruby/object:Gem::Version
|
171
171
|
version: '0'
|
172
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
173
|
requirements:
|
174
|
-
- -
|
174
|
+
- - ">="
|
175
175
|
- !ruby/object:Gem::Version
|
176
176
|
version: '0'
|
177
177
|
requirements:
|
178
178
|
- LibreOffice
|
179
179
|
rubyforge_project:
|
180
|
-
rubygems_version: 2.
|
180
|
+
rubygems_version: 2.5.2
|
181
181
|
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: This is a ChupaText decomposer plugin for to extract text and meta-data from
|
184
184
|
office files such as Microsoft Word file, Microsoft Excel file and OpenDocument
|
185
185
|
Format file. It uses [LibreOffice](https://www.libreoffice.org/).
|
186
186
|
test_files: []
|
187
|
-
has_rdoc:
|