chupa-text 1.1.3 → 1.1.4

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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/doc/text/news.md +12 -0
  3. data/lib/chupa-text/command/chupa-text.rb +7 -1
  4. data/lib/chupa-text/decomposer.rb +8 -0
  5. data/lib/chupa-text/decomposers/office-open-xml-document.rb +51 -0
  6. data/lib/chupa-text/decomposers/office-open-xml-presentation.rb +67 -0
  7. data/lib/chupa-text/decomposers/office-open-xml-workbook.rb +114 -0
  8. data/lib/chupa-text/decomposers/office-open-xml.rb +196 -0
  9. data/lib/chupa-text/decomposers/opendocument-presentation.rb +105 -0
  10. data/lib/chupa-text/decomposers/opendocument-spreadsheet.rb +134 -0
  11. data/lib/chupa-text/decomposers/opendocument-text.rb +89 -0
  12. data/lib/chupa-text/decomposers/opendocument.rb +139 -0
  13. data/lib/chupa-text/extractor.rb +8 -2
  14. data/lib/chupa-text/formatters/mime.rb +3 -2
  15. data/lib/chupa-text/version.rb +1 -1
  16. data/test/decomposers/test-office-open-xml-document.rb +144 -0
  17. data/test/decomposers/test-office-open-xml-presentation.rb +133 -0
  18. data/test/decomposers/test-office-open-xml-workbook.rb +138 -0
  19. data/test/decomposers/test-open-document-presentation.rb +136 -0
  20. data/test/decomposers/test-open-document-spreadsheet.rb +152 -0
  21. data/test/decomposers/test-open-document-text.rb +144 -0
  22. data/test/fixture/docx/attributes.docx +0 -0
  23. data/test/fixture/docx/multi-pages.docx +0 -0
  24. data/test/fixture/docx/one-page.docx +0 -0
  25. data/test/fixture/docx/special-characters.docx +0 -0
  26. data/test/fixture/odp/attributes.odp +0 -0
  27. data/test/fixture/odp/multi-slides.odp +0 -0
  28. data/test/fixture/odp/one-slide.odp +0 -0
  29. data/test/fixture/ods/attributes.ods +0 -0
  30. data/test/fixture/ods/multi-sheets.ods +0 -0
  31. data/test/fixture/ods/one-sheet.ods +0 -0
  32. data/test/fixture/odt/attributes.odt +0 -0
  33. data/test/fixture/odt/multi-pages.odt +0 -0
  34. data/test/fixture/odt/one-page.odt +0 -0
  35. data/test/fixture/odt/special-characters.odt +0 -0
  36. data/test/fixture/pptx/attributes.pptx +0 -0
  37. data/test/fixture/pptx/multi-slides.pptx +0 -0
  38. data/test/fixture/pptx/one-slide.pptx +0 -0
  39. data/test/fixture/xlsx/attributes.xlsx +0 -0
  40. data/test/fixture/xlsx/multi-sheets.xlsx +0 -0
  41. data/test/fixture/xlsx/one-sheet.xlsx +0 -0
  42. metadata +36 -2
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.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-18 00:00:00.000000000 Z
11
+ date: 2019-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: archive-zip
@@ -130,6 +130,14 @@ files:
130
130
  - lib/chupa-text/decomposers.rb
131
131
  - lib/chupa-text/decomposers/csv.rb
132
132
  - lib/chupa-text/decomposers/gzip.rb
133
+ - lib/chupa-text/decomposers/office-open-xml-document.rb
134
+ - lib/chupa-text/decomposers/office-open-xml-presentation.rb
135
+ - lib/chupa-text/decomposers/office-open-xml-workbook.rb
136
+ - lib/chupa-text/decomposers/office-open-xml.rb
137
+ - lib/chupa-text/decomposers/opendocument-presentation.rb
138
+ - lib/chupa-text/decomposers/opendocument-spreadsheet.rb
139
+ - lib/chupa-text/decomposers/opendocument-text.rb
140
+ - lib/chupa-text/decomposers/opendocument.rb
133
141
  - lib/chupa-text/decomposers/tar.rb
134
142
  - lib/chupa-text/decomposers/xml.rb
135
143
  - lib/chupa-text/decomposers/zip.rb
@@ -157,6 +165,12 @@ files:
157
165
  - test/command/test-chupa-text.rb
158
166
  - test/decomposers/test-csv.rb
159
167
  - test/decomposers/test-gzip.rb
168
+ - test/decomposers/test-office-open-xml-document.rb
169
+ - test/decomposers/test-office-open-xml-presentation.rb
170
+ - test/decomposers/test-office-open-xml-workbook.rb
171
+ - test/decomposers/test-open-document-presentation.rb
172
+ - test/decomposers/test-open-document-spreadsheet.rb
173
+ - test/decomposers/test-open-document-text.rb
160
174
  - test/decomposers/test-tar.rb
161
175
  - test/decomposers/test-xml.rb
162
176
  - test/decomposers/test-zip.rb
@@ -164,12 +178,32 @@ files:
164
178
  - test/fixture/command/chupa-text/hello.txt.gz
165
179
  - test/fixture/command/chupa-text/no-decomposer.conf
166
180
  - test/fixture/command/chupa-text/numbers.csv
181
+ - test/fixture/docx/attributes.docx
182
+ - test/fixture/docx/multi-pages.docx
183
+ - test/fixture/docx/one-page.docx
184
+ - test/fixture/docx/special-characters.docx
167
185
  - test/fixture/extractor/hello.txt
168
186
  - test/fixture/gzip/hello.tar.gz
169
187
  - test/fixture/gzip/hello.tgz
170
188
  - test/fixture/gzip/hello.txt.gz
189
+ - test/fixture/odp/attributes.odp
190
+ - test/fixture/odp/multi-slides.odp
191
+ - test/fixture/odp/one-slide.odp
192
+ - test/fixture/ods/attributes.ods
193
+ - test/fixture/ods/multi-sheets.ods
194
+ - test/fixture/ods/one-sheet.ods
195
+ - test/fixture/odt/attributes.odt
196
+ - test/fixture/odt/multi-pages.odt
197
+ - test/fixture/odt/one-page.odt
198
+ - test/fixture/odt/special-characters.odt
199
+ - test/fixture/pptx/attributes.pptx
200
+ - test/fixture/pptx/multi-slides.pptx
201
+ - test/fixture/pptx/one-slide.pptx
171
202
  - test/fixture/tar/directory.tar
172
203
  - test/fixture/tar/top-level.tar
204
+ - test/fixture/xlsx/attributes.xlsx
205
+ - test/fixture/xlsx/multi-sheets.xlsx
206
+ - test/fixture/xlsx/one-sheet.xlsx
173
207
  - test/fixture/zip/hello.zip
174
208
  - test/fixture/zip/password.zip
175
209
  - test/formatters/test-mime.rb