chupa-text 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/chupa-text.gemspec +2 -1
- data/doc/text/news.md +42 -0
- data/lib/chupa-text/data.rb +19 -2
- data/lib/chupa-text/decomposers/csv.rb +20 -4
- data/lib/chupa-text/decomposers/office-open-xml-document.rb +12 -0
- data/lib/chupa-text/decomposers/office-open-xml-presentation.rb +17 -3
- data/lib/chupa-text/decomposers/office-open-xml-workbook.rb +83 -10
- data/lib/chupa-text/decomposers/office-open-xml.rb +4 -8
- data/lib/chupa-text/decomposers/opendocument-spreadsheet.rb +26 -2
- data/lib/chupa-text/decomposers/tar.rb +18 -12
- data/lib/chupa-text/decomposers/zip.rb +30 -4
- data/lib/chupa-text/extractor.rb +5 -3
- data/lib/chupa-text/path-converter.rb +70 -0
- data/lib/chupa-text/utf8-converter.rb +117 -0
- data/lib/chupa-text/version.rb +1 -1
- data/test/command/test-chupa-text.rb +4 -4
- data/test/decomposers/test-csv.rb +18 -3
- data/test/decomposers/test-office-open-xml-presentation.rb +46 -46
- data/test/decomposers/test-office-open-xml-workbook.rb +64 -46
- data/test/decomposers/{test-open-document-presentation.rb → test-opendocument-presentation.rb} +0 -0
- data/test/decomposers/{test-open-document-spreadsheet.rb → test-opendocument-spreadsheet.rb} +35 -19
- data/test/decomposers/{test-open-document-text.rb → test-opendocument-text.rb} +0 -0
- data/test/decomposers/test-tar.rb +18 -1
- data/test/decomposers/test-zip.rb +31 -1
- data/test/fixture/ods/covered-table-cell.ods +0 -0
- data/test/fixture/ods/shapes.ods +0 -0
- data/test/fixture/tar/utf-8.tar +0 -0
- data/test/fixture/xlsx/not-shared-cell.xlsx +0 -0
- data/test/fixture/zip/cp932.zip +0 -0
- data/test/fixture/zip/utf-8.zip +0 -0
- data/test/helper.rb +31 -1
- data/test/test-data.rb +7 -3
- data/test/test-extractor.rb +108 -1
- metadata +29 -7
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.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: archive-zip
|
@@ -16,14 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.12.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
|
-
version:
|
26
|
+
version: 0.12.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: csv
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.0.4
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.0.4
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,10 +184,12 @@ files:
|
|
170
184
|
- lib/chupa-text/logger.rb
|
171
185
|
- lib/chupa-text/mime-type-registry.rb
|
172
186
|
- lib/chupa-text/mime-type.rb
|
187
|
+
- lib/chupa-text/path-converter.rb
|
173
188
|
- lib/chupa-text/sax-parser.rb
|
174
189
|
- lib/chupa-text/screenshot.rb
|
175
190
|
- lib/chupa-text/size-parser.rb
|
176
191
|
- lib/chupa-text/text-data.rb
|
192
|
+
- lib/chupa-text/utf8-converter.rb
|
177
193
|
- lib/chupa-text/version.rb
|
178
194
|
- lib/chupa-text/virtual-content.rb
|
179
195
|
- lib/chupa-text/virtual-file-data.rb
|
@@ -183,9 +199,9 @@ files:
|
|
183
199
|
- test/decomposers/test-office-open-xml-document.rb
|
184
200
|
- test/decomposers/test-office-open-xml-presentation.rb
|
185
201
|
- test/decomposers/test-office-open-xml-workbook.rb
|
186
|
-
- test/decomposers/test-
|
187
|
-
- test/decomposers/test-
|
188
|
-
- test/decomposers/test-
|
202
|
+
- test/decomposers/test-opendocument-presentation.rb
|
203
|
+
- test/decomposers/test-opendocument-spreadsheet.rb
|
204
|
+
- test/decomposers/test-opendocument-text.rb
|
189
205
|
- test/decomposers/test-tar.rb
|
190
206
|
- test/decomposers/test-xml.rb
|
191
207
|
- test/decomposers/test-zip.rb
|
@@ -205,8 +221,10 @@ files:
|
|
205
221
|
- test/fixture/odp/multi-slides.odp
|
206
222
|
- test/fixture/odp/one-slide.odp
|
207
223
|
- test/fixture/ods/attributes.ods
|
224
|
+
- test/fixture/ods/covered-table-cell.ods
|
208
225
|
- test/fixture/ods/multi-sheets.ods
|
209
226
|
- test/fixture/ods/one-sheet.ods
|
227
|
+
- test/fixture/ods/shapes.ods
|
210
228
|
- test/fixture/odt/attributes.odt
|
211
229
|
- test/fixture/odt/multi-pages.odt
|
212
230
|
- test/fixture/odt/one-page.odt
|
@@ -216,11 +234,15 @@ files:
|
|
216
234
|
- test/fixture/pptx/one-slide.pptx
|
217
235
|
- test/fixture/tar/directory.tar
|
218
236
|
- test/fixture/tar/top-level.tar
|
237
|
+
- test/fixture/tar/utf-8.tar
|
219
238
|
- test/fixture/xlsx/attributes.xlsx
|
220
239
|
- test/fixture/xlsx/multi-sheets.xlsx
|
240
|
+
- test/fixture/xlsx/not-shared-cell.xlsx
|
221
241
|
- test/fixture/xlsx/one-sheet.xlsx
|
242
|
+
- test/fixture/zip/cp932.zip
|
222
243
|
- test/fixture/zip/hello.zip
|
223
244
|
- test/fixture/zip/password.zip
|
245
|
+
- test/fixture/zip/utf-8.zip
|
224
246
|
- test/formatters/test-mime.rb
|
225
247
|
- test/helper.rb
|
226
248
|
- test/run-test.rb
|