[Groonga-commit] ranguba/chupa-text-decomposer-libreoffice at 11e8bf5 [master] Split decomposers

Zurück zum Archiv-Index
Kouhei Sutou null+****@clear*****
Tue Feb 26 13:02:55 JST 2019


Kouhei Sutou	2019-02-26 13:02:55 +0900 (Tue, 26 Feb 2019)

  Revision: 11e8bf5ba6ce4c3db282745f6f4a813b639c6c14
  https://github.com/ranguba/chupa-text-decomposer-libreoffice/commit/11e8bf5ba6ce4c3db282745f6f4a813b639c6c14

  Message:
    Split decomposers

  Added files:
    chupa-text-decomposer-libreoffice-excel/doc/text/news.md
    chupa-text-decomposer-libreoffice-general/doc/text/news.md
    chupa-text-decomposer-libreoffice-office-open-xml-document/doc/text/news.md
    chupa-text-decomposer-libreoffice-office-open-xml-presentation/doc/text/news.md
    chupa-text-decomposer-libreoffice-office-open-xml-workbook/doc/text/news.md
    chupa-text-decomposer-libreoffice-opendocument-presentation/doc/text/news.md
    chupa-text-decomposer-libreoffice-opendocument-spreadsheet/doc/text/news.md
    chupa-text-decomposer-libreoffice-opendocument-text/doc/text/news.md
    chupa-text-decomposer-libreoffice-powerpoint/doc/text/news.md
    chupa-text-decomposer-libreoffice-word/doc/text/news.md
  Copied files:
    chupa-text-decomposer-libreoffice-excel/.gitignore
      (from .gitignore)
    chupa-text-decomposer-libreoffice-excel/.yardopts
      (from .yardopts)
    chupa-text-decomposer-libreoffice-excel/Gemfile
      (from Gemfile)
    chupa-text-decomposer-libreoffice-excel/LICENSE.txt
      (from LICENSE.txt)
    chupa-text-decomposer-libreoffice-excel/README.md
      (from README.md)
    chupa-text-decomposer-libreoffice-excel/Rakefile
      (from Rakefile)
    chupa-text-decomposer-libreoffice-excel/chupa-text-decomposer-libreoffice-excel.gemspec
      (from chupa-text-decomposer-libreoffice.gemspec)
    chupa-text-decomposer-libreoffice-excel/lib/chupa-text/decomposers/libreoffice-excel.rb
      (from Gemfile)
    chupa-text-decomposer-libreoffice-excel/test/fixture/attributes.xls
      (from test/fixture/xls/attributes.xls)
    chupa-text-decomposer-libreoffice-excel/test/fixture/multi-sheets.xls
      (from test/fixture/xls/multi-sheets.xls)
    chupa-text-decomposer-libreoffice-excel/test/fixture/one-sheet.xls
      (from test/fixture/xls/one-sheet.xls)
    chupa-text-decomposer-libreoffice-excel/test/run-test.rb
      (from test/run-test.rb)
    chupa-text-decomposer-libreoffice-excel/test/test-xls.rb
      (from test/test-xls.rb)
    chupa-text-decomposer-libreoffice-general/.gitignore
      (from .gitignore)
    chupa-text-decomposer-libreoffice-general/.yardopts
      (from .yardopts)
    chupa-text-decomposer-libreoffice-general/Gemfile
      (from Gemfile)
    chupa-text-decomposer-libreoffice-general/LICENSE.txt
      (from LICENSE.txt)
    chupa-text-decomposer-libreoffice-general/README.md
      (from README.md)
    chupa-text-decomposer-libreoffice-general/Rakefile
      (from Rakefile)
    chupa-text-decomposer-libreoffice-general/chupa-text-decomposer-libreoffice-general.gemspec
      (from chupa-text-decomposer-libreoffice.gemspec)
    chupa-text-decomposer-libreoffice-general/lib/chupa-text/decomposers/libreoffice-general.rb
      (from lib/chupa-text/decomposers/libreoffice.rb)
    chupa-text-decomposer-libreoffice-general/test/helper.rb
      (from test/helper.rb)
    chupa-text-decomposer-libreoffice-office-open-xml-document/.gitignore
      (from .gitignore)
    chupa-text-decomposer-libreoffice-office-open-xml-document/.yardopts
      (from .yardopts)
    chupa-text-decomposer-libreoffice-office-open-xml-document/Gemfile
      (from Gemfile)
    chupa-text-decomposer-libreoffice-office-open-xml-document/LICENSE.txt
      (from LICENSE.txt)
    chupa-text-decomposer-libreoffice-office-open-xml-document/README.md
      (from README.md)
    chupa-text-decomposer-libreoffice-office-open-xml-document/Rakefile
      (from Rakefile)
    chupa-text-decomposer-libreoffice-office-open-xml-document/chupa-text-decomposer-libreoffice-office-open-xml-document.gemspec
      (from chupa-text-decomposer-libreoffice.gemspec)
    chupa-text-decomposer-libreoffice-office-open-xml-document/lib/chupa-text/decomposers/libreoffice-office-open-xml-document.rb
      (from Gemfile)
    chupa-text-decomposer-libreoffice-office-open-xml-document/test/fixture/attributes.docx
      (from test/fixture/docx/attributes.docx)
    chupa-text-decomposer-libreoffice-office-open-xml-document/test/fixture/multi-pages.docx
      (from test/fixture/docx/multi-pages.docx)
    chupa-text-decomposer-libreoffice-office-open-xml-document/test/fixture/one-page.docx
      (from test/fixture/docx/one-page.docx)
    chupa-text-decomposer-libreoffice-office-open-xml-document/test/run-test.rb
      (from test/run-test.rb)
    chupa-text-decomposer-libreoffice-office-open-xml-document/test/test-docx.rb
      (from test/test-docx.rb)
    chupa-text-decomposer-libreoffice-office-open-xml-presentation/.gitignore
      (from .gitignore)
    chupa-text-decomposer-libreoffice-office-open-xml-presentation/.yardopts
      (from .yardopts)
    chupa-text-decomposer-libreoffice-office-open-xml-presentation/Gemfile
      (from Gemfile)
    chupa-text-decomposer-libreoffice-office-open-xml-presentation/LICENSE.txt
      (from LICENSE.txt)
    chupa-text-decomposer-libreoffice-office-open-xml-presentation/README.md
      (from README.md)
    chupa-text-decomposer-libreoffice-office-open-xml-presentation/Rakefile
      (from Rakefile)
    chupa-text-decomposer-libreoffice-office-open-xml-presentation/chupa-text-decomposer-libreoffice-office-open-xml-presentation.gemspec
      (from chupa-text-decomposer-libreoffice.gemspec)
    chupa-text-decomposer-libreoffice-office-open-xml-presentation/lib/chupa-text/decomposers/libreoffice-office-open-xml-presentation.rb
      (from Gemfile)
    chupa-text-decomposer-libreoffice-office-open-xml-presentation/test/fixture/attributes.pptx
      (from test/fixture/pptx/attributes.pptx)
    chupa-text-decomposer-libreoffice-office-open-xml-presentation/test/fixture/multi-slides.pptx
      (from test/fixture/pptx/multi-slides.pptx)
    chupa-text-decomposer-libreoffice-office-open-xml-presentation/test/fixture/one-slide.pptx
      (from test/fixture/pptx/one-slide.pptx)
    chupa-text-decomposer-libreoffice-office-open-xml-presentation/test/run-test.rb
      (from test/run-test.rb)
    chupa-text-decomposer-libreoffice-office-open-xml-presentation/test/test-pptx.rb
      (from test/test-pptx.rb)
    chupa-text-decomposer-libreoffice-office-open-xml-workbook/.gitignore
      (from .gitignore)
    chupa-text-decomposer-libreoffice-office-open-xml-workbook/.yardopts
      (from .yardopts)
    chupa-text-decomposer-libreoffice-office-open-xml-workbook/Gemfile
      (from Gemfile)
    chupa-text-decomposer-libreoffice-office-open-xml-workbook/LICENSE.txt
      (from LICENSE.txt)
    chupa-text-decomposer-libreoffice-office-open-xml-workbook/README.md
      (from README.md)
    chupa-text-decomposer-libreoffice-office-open-xml-workbook/Rakefile
      (from Rakefile)
    chupa-text-decomposer-libreoffice-office-open-xml-workbook/chupa-text-decomposer-libreoffice-office-open-xml-workbook.gemspec
      (from chupa-text-decomposer-libreoffice.gemspec)
    chupa-text-decomposer-libreoffice-office-open-xml-workbook/lib/chupa-text/decomposers/libreoffice-office-open-xml-workbook.rb
      (from Gemfile)
    chupa-text-decomposer-libreoffice-office-open-xml-workbook/test/fixture/attributes.xlsx
      (from test/fixture/xlsx/attributes.xlsx)
    chupa-text-decomposer-libreoffice-office-open-xml-workbook/test/fixture/multi-sheets.xlsx
      (from test/fixture/xlsx/multi-sheets.xlsx)
    chupa-text-decomposer-libreoffice-office-open-xml-workbook/test/fixture/one-sheet.xlsx
      (from test/fixture/xlsx/one-sheet.xlsx)
    chupa-text-decomposer-libreoffice-office-open-xml-workbook/test/run-test.rb
      (from test/run-test.rb)
    chupa-text-decomposer-libreoffice-office-open-xml-workbook/test/test-xlsx.rb
      (from test/test-xlsx.rb)
    chupa-text-decomposer-libreoffice-opendocument-presentation/.gitignore
      (from .gitignore)
    chupa-text-decomposer-libreoffice-opendocument-presentation/.yardopts
      (from .yardopts)
    chupa-text-decomposer-libreoffice-opendocument-presentation/Gemfile
      (from Gemfile)
    chupa-text-decomposer-libreoffice-opendocument-presentation/LICENSE.txt
      (from LICENSE.txt)
    chupa-text-decomposer-libreoffice-opendocument-presentation/README.md
      (from README.md)
    chupa-text-decomposer-libreoffice-opendocument-presentation/Rakefile
      (from Rakefile)
    chupa-text-decomposer-libreoffice-opendocument-presentation/chupa-text-decomposer-libreoffice-opendocument-presentation.gemspec
      (from chupa-text-decomposer-libreoffice.gemspec)
    chupa-text-decomposer-libreoffice-opendocument-presentation/lib/chupa-text/decomposers/libreoffice-opendocument-presentation.rb
      (from Gemfile)
    chupa-text-decomposer-libreoffice-opendocument-presentation/test/fixture/attributes.odp
      (from test/fixture/odp/attributes.odp)
    chupa-text-decomposer-libreoffice-opendocument-presentation/test/fixture/multi-slides.odp
      (from test/fixture/odp/multi-slides.odp)
    chupa-text-decomposer-libreoffice-opendocument-presentation/test/fixture/one-slide.odp
      (from test/fixture/odp/one-slide.odp)
    chupa-text-decomposer-libreoffice-opendocument-presentation/test/run-test.rb
      (from test/run-test.rb)
    chupa-text-decomposer-libreoffice-opendocument-presentation/test/test-odp.rb
      (from test/test-odp.rb)
    chupa-text-decomposer-libreoffice-opendocument-spreadsheet/.gitignore
      (from .gitignore)
    chupa-text-decomposer-libreoffice-opendocument-spreadsheet/.yardopts
      (from .yardopts)
    chupa-text-decomposer-libreoffice-opendocument-spreadsheet/Gemfile
      (from Gemfile)
    chupa-text-decomposer-libreoffice-opendocument-spreadsheet/LICENSE.txt
      (from LICENSE.txt)
    chupa-text-decomposer-libreoffice-opendocument-spreadsheet/README.md
      (from README.md)
    chupa-text-decomposer-libreoffice-opendocument-spreadsheet/Rakefile
      (from Rakefile)
    chupa-text-decomposer-libreoffice-opendocument-spreadsheet/chupa-text-decomposer-libreoffice-opendocument-spreadsheet.gemspec
      (from chupa-text-decomposer-libreoffice.gemspec)
    chupa-text-decomposer-libreoffice-opendocument-spreadsheet/lib/chupa-text/decomposers/libreoffice-opendocument-spreadsheet.rb
      (from Gemfile)
    chupa-text-decomposer-libreoffice-opendocument-spreadsheet/test/fixture/attributes.ods
      (from test/fixture/ods/attributes.ods)
    chupa-text-decomposer-libreoffice-opendocument-spreadsheet/test/fixture/multi-sheets.ods
      (from test/fixture/ods/multi-sheets.ods)
    chupa-text-decomposer-libreoffice-opendocument-spreadsheet/test/fixture/one-sheet.ods
      (from test/fixture/ods/one-sheet.ods)
    chupa-text-decomposer-libreoffice-opendocument-spreadsheet/test/run-test.rb
      (from test/run-test.rb)
    chupa-text-decomposer-libreoffice-opendocument-spreadsheet/test/test-ods.rb
      (from test/test-ods.rb)
    chupa-text-decomposer-libreoffice-opendocument-text/.gitignore
      (from .gitignore)
    chupa-text-decomposer-libreoffice-opendocument-text/.yardopts
      (from .yardopts)
    chupa-text-decomposer-libreoffice-opendocument-text/Gemfile
      (from Gemfile)
    chupa-text-decomposer-libreoffice-opendocument-text/LICENSE.txt
      (from LICENSE.txt)
    chupa-text-decomposer-libreoffice-opendocument-text/README.md
      (from README.md)
    chupa-text-decomposer-libreoffice-opendocument-text/Rakefile
      (from Rakefile)
    chupa-text-decomposer-libreoffice-opendocument-text/chupa-text-decomposer-libreoffice-opendocument-text.gemspec
      (from chupa-text-decomposer-libreoffice.gemspec)
    chupa-text-decomposer-libreoffice-opendocument-text/lib/chupa-text/decomposers/libreoffice-opendocument-text.rb
      (from Gemfile)
    chupa-text-decomposer-libreoffice-opendocument-text/test/fixture/attributes.odt
      (from test/fixture/odt/attributes.odt)
    chupa-text-decomposer-libreoffice-opendocument-text/test/fixture/multi-pages.odt
      (from test/fixture/odt/multi-pages.odt)
    chupa-text-decomposer-libreoffice-opendocument-text/test/fixture/one-page.odt
      (from test/fixture/odt/one-page.odt)
    chupa-text-decomposer-libreoffice-opendocument-text/test/run-test.rb
      (from test/run-test.rb)
    chupa-text-decomposer-libreoffice-opendocument-text/test/test-odt.rb
      (from test/test-odt.rb)
    chupa-text-decomposer-libreoffice-powerpoint/.gitignore
      (from .gitignore)
    chupa-text-decomposer-libreoffice-powerpoint/.yardopts
      (from .yardopts)
    chupa-text-decomposer-libreoffice-powerpoint/Gemfile
      (from Gemfile)
    chupa-text-decomposer-libreoffice-powerpoint/LICENSE.txt
      (from LICENSE.txt)
    chupa-text-decomposer-libreoffice-powerpoint/README.md
      (from README.md)
    chupa-text-decomposer-libreoffice-powerpoint/Rakefile
      (from Rakefile)
    chupa-text-decomposer-libreoffice-powerpoint/chupa-text-decomposer-libreoffice-powerpoint.gemspec
      (from chupa-text-decomposer-libreoffice.gemspec)
    chupa-text-decomposer-libreoffice-powerpoint/lib/chupa-text/decomposers/libreoffice-powerpoint.rb
      (from Gemfile)
    chupa-text-decomposer-libreoffice-powerpoint/test/fixture/attributes.ppt
      (from test/fixture/ppt/attributes.ppt)
    chupa-text-decomposer-libreoffice-powerpoint/test/fixture/multi-slides.ppt
      (from test/fixture/ppt/multi-slides.ppt)
    chupa-text-decomposer-libreoffice-powerpoint/test/fixture/one-slide.ppt
      (from test/fixture/ppt/one-slide.ppt)
    chupa-text-decomposer-libreoffice-powerpoint/test/run-test.rb
      (from test/run-test.rb)
    chupa-text-decomposer-libreoffice-powerpoint/test/test-ppt.rb
      (from test/test-ppt.rb)
    chupa-text-decomposer-libreoffice-word/.gitignore
      (from .gitignore)
    chupa-text-decomposer-libreoffice-word/.yardopts
      (from .yardopts)
    chupa-text-decomposer-libreoffice-word/Gemfile
      (from Gemfile)
    chupa-text-decomposer-libreoffice-word/LICENSE.txt
      (from LICENSE.txt)
    chupa-text-decomposer-libreoffice-word/README.md
      (from README.md)
    chupa-text-decomposer-libreoffice-word/Rakefile
      (from Rakefile)
    chupa-text-decomposer-libreoffice-word/chupa-text-decomposer-libreoffice-word.gemspec
      (from chupa-text-decomposer-libreoffice.gemspec)
    chupa-text-decomposer-libreoffice-word/lib/chupa-text/decomposers/libreoffice-word.rb
      (from Gemfile)
    chupa-text-decomposer-libreoffice-word/test/fixture/attributes.doc
      (from test/fixture/doc/attributes.doc)
    chupa-text-decomposer-libreoffice-word/test/fixture/multi-pages.doc
      (from test/fixture/doc/multi-pages.doc)
    chupa-text-decomposer-libreoffice-word/test/fixture/one-page.doc
      (from test/fixture/doc/one-page.doc)
    chupa-text-decomposer-libreoffice-word/test/run-test.rb
      (from test/run-test.rb)
    chupa-text-decomposer-libreoffice-word/test/test-doc.rb
      (from test/test-doc.rb)
    chupa-text-decomposer-libreoffice/Rakefile
      (from Rakefile)
  Modified files:
    .travis.yml
    Rakefile
  Renamed files:
    chupa-text-decomposer-libreoffice/.gitignore
      (from .gitignore)
    chupa-text-decomposer-libreoffice/.yardopts
      (from .yardopts)
    chupa-text-decomposer-libreoffice/Gemfile
      (from Gemfile)
    chupa-text-decomposer-libreoffice/LICENSE.txt
      (from LICENSE.txt)
    chupa-text-decomposer-libreoffice/README.md
      (from README.md)
    chupa-text-decomposer-libreoffice/chupa-text-decomposer-libreoffice.gemspec
      (from chupa-text-decomposer-libreoffice.gemspec)
    chupa-text-decomposer-libreoffice/doc/text/news.md
      (from doc/text/news.md)
    chupa-text-decomposer-libreoffice/lib/chupa-text/decomposers/libreoffice.rb
      (from lib/chupa-text/decomposers/libreoffice.rb)
    chupa-text-decomposer-libreoffice/test/fixture/doc/attributes.doc
      (from test/fixture/doc/attributes.doc)
    chupa-text-decomposer-libreoffice/test/fixture/doc/multi-pages.doc
      (from test/fixture/doc/multi-pages.doc)
    chupa-text-decomposer-libreoffice/test/fixture/doc/one-page.doc
      (from test/fixture/doc/one-page.doc)
    chupa-text-decomposer-libreoffice/test/fixture/docx/attributes.docx
      (from test/fixture/docx/attributes.docx)
    chupa-text-decomposer-libreoffice/test/fixture/docx/multi-pages.docx
      (from test/fixture/docx/multi-pages.docx)
    chupa-text-decomposer-libreoffice/test/fixture/docx/one-page.docx
      (from test/fixture/docx/one-page.docx)
    chupa-text-decomposer-libreoffice/test/fixture/odp/attributes.odp
      (from test/fixture/odp/attributes.odp)
    chupa-text-decomposer-libreoffice/test/fixture/odp/multi-slides.odp
      (from test/fixture/odp/multi-slides.odp)
    chupa-text-decomposer-libreoffice/test/fixture/odp/one-slide.odp
      (from test/fixture/odp/one-slide.odp)
    chupa-text-decomposer-libreoffice/test/fixture/ods/attributes.ods
      (from test/fixture/ods/attributes.ods)
    chupa-text-decomposer-libreoffice/test/fixture/ods/multi-sheets.ods
      (from test/fixture/ods/multi-sheets.ods)
    chupa-text-decomposer-libreoffice/test/fixture/ods/one-sheet.ods
      (from test/fixture/ods/one-sheet.ods)
    chupa-text-decomposer-libreoffice/test/fixture/odt/attributes.odt
      (from test/fixture/odt/attributes.odt)
    chupa-text-decomposer-libreoffice/test/fixture/odt/multi-pages.odt
      (from test/fixture/odt/multi-pages.odt)
    chupa-text-decomposer-libreoffice/test/fixture/odt/one-page.odt
      (from test/fixture/odt/one-page.odt)
    chupa-text-decomposer-libreoffice/test/fixture/ppt/attributes.ppt
      (from test/fixture/ppt/attributes.ppt)
    chupa-text-decomposer-libreoffice/test/fixture/ppt/multi-slides.ppt
      (from test/fixture/ppt/multi-slides.ppt)
    chupa-text-decomposer-libreoffice/test/fixture/ppt/one-slide.ppt
      (from test/fixture/ppt/one-slide.ppt)
    chupa-text-decomposer-libreoffice/test/fixture/pptx/attributes.pptx
      (from test/fixture/pptx/attributes.pptx)
    chupa-text-decomposer-libreoffice/test/fixture/pptx/multi-slides.pptx
      (from test/fixture/pptx/multi-slides.pptx)
    chupa-text-decomposer-libreoffice/test/fixture/pptx/one-slide.pptx
      (from test/fixture/pptx/one-slide.pptx)
    chupa-text-decomposer-libreoffice/test/fixture/xls/attributes.xls
      (from test/fixture/xls/attributes.xls)
    chupa-text-decomposer-libreoffice/test/fixture/xls/multi-sheets.xls
      (from test/fixture/xls/multi-sheets.xls)
    chupa-text-decomposer-libreoffice/test/fixture/xls/one-sheet.xls
      (from test/fixture/xls/one-sheet.xls)
    chupa-text-decomposer-libreoffice/test/fixture/xlsx/attributes.xlsx
      (from test/fixture/xlsx/attributes.xlsx)
    chupa-text-decomposer-libreoffice/test/fixture/xlsx/multi-sheets.xlsx
      (from test/fixture/xlsx/multi-sheets.xlsx)
    chupa-text-decomposer-libreoffice/test/fixture/xlsx/one-sheet.xlsx
      (from test/fixture/xlsx/one-sheet.xlsx)
    chupa-text-decomposer-libreoffice/test/helper.rb
      (from test/helper.rb)
    chupa-text-decomposer-libreoffice/test/run-test.rb
      (from test/run-test.rb)
    chupa-text-decomposer-libreoffice/test/test-doc.rb
      (from test/test-doc.rb)
    chupa-text-decomposer-libreoffice/test/test-docx.rb
      (from test/test-docx.rb)
    chupa-text-decomposer-libreoffice/test/test-odp.rb
      (from test/test-odp.rb)
    chupa-text-decomposer-libreoffice/test/test-ods.rb
      (from test/test-ods.rb)
    chupa-text-decomposer-libreoffice/test/test-odt.rb
      (from test/test-odt.rb)
    chupa-text-decomposer-libreoffice/test/test-ppt.rb
      (from test/test-ppt.rb)
    chupa-text-decomposer-libreoffice/test/test-pptx.rb
      (from test/test-pptx.rb)
    chupa-text-decomposer-libreoffice/test/test-xls.rb
      (from test/test-xls.rb)
    chupa-text-decomposer-libreoffice/test/test-xlsx.rb
      (from test/test-xlsx.rb)

  Modified: .travis.yml (+7 -6)
===================================================================
--- .travis.yml    2018-07-18 09:19:51 +0900 (3cd53cf)
+++ .travis.yml    2019-02-26 13:02:55 +0900 (6ecdc0e)
@@ -1,12 +1,13 @@
 notifications:
-  email:
-    recipients:
-      - groon****@lists*****
+  webhooks:
+    - https://webhook.commit-email.info/
 addons:
   apt:
     packages:
     - libreoffice
 rvm:
-  - 2.2
-  - 2.3.3
-  - 2.4.1
+  - 2.3
+  - 2.4
+  - 2.5
+  - 2.6
+  - ruby-head

  Modified: Rakefile (+16 -25)
===================================================================
--- Rakefile    2018-07-18 09:19:51 +0900 (7434781)
+++ Rakefile    2019-02-26 13:02:55 +0900 (af5524d)
@@ -1,6 +1,6 @@
 # -*- ruby -*-
 #
-# Copyright (C) 2014-2017  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -16,33 +16,24 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-task :default => :test
-
 require "pathname"
 
-require "rubygems"
-require "bundler/gem_helper"
-require "packnga"
-
-base_dir = Pathname(__FILE__).dirname
-
-helper = Bundler::GemHelper.new(base_dir.to_s)
-def helper.version_tag
-  version
-end
-
-helper.install
-spec = helper.gemspec
-
-Packnga::DocumentTask.new(spec) do |task|
-  task.original_language = "en"
-  task.translate_language = "ja"
-end
-
-Packnga::ReleaseTask.new(spec) do
-end
+task :default => :test
 
 desc "Run tests"
 task :test do
-  ruby("test/run-test.rb")
+  FileList["*/test/run-test.rb"].each do |run_test_rb|
+    cd(Pathname(run_test_rb).parent.parent) do
+      ruby("test/run-test.rb")
+    end
+  end
+end
+
+desc "Release"
+task :release do
+  FileList["*/*.gemspec"].each do |gemspec|
+    cd(Pathname(gemspec).parent) do
+      ruby("-S", "rake", "release")
+    end
+  end
 end

  Copied: chupa-text-decomposer-libreoffice-excel/.gitignore (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-excel/.yardopts (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-excel/Gemfile (+5 -2) 82%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-excel/Gemfile    2019-02-26 13:02:55 +0900 (4c7a904)
@@ -1,6 +1,6 @@
 # -*- mode: ruby; coding: utf-8 -*-
 #
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -22,12 +22,15 @@ gemspec
 
 base_dir = File.dirname(__FILE__)
 
+general = "chupa-text-decomposer-libreoffice-general"
+gem general, path: File.join(base_dir, "..", general)
+
 local_gem_names = [
   "chupa-text",
   "chupa-text-decomposer-pdf",
 ]
 local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
+  local_dir = File.join(base_dir, "..", "..", name)
   if File.exist?(local_dir)
     gem name, :path => local_dir
   end

  Copied: chupa-text-decomposer-libreoffice-excel/LICENSE.txt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-excel/README.md (+8 -9) 54%
===================================================================
--- README.md    2018-07-18 09:19:51 +0900 (c636e67)
+++ chupa-text-decomposer-libreoffice-excel/README.md    2019-02-26 13:02:55 +0900 (b34542d)
@@ -2,26 +2,25 @@
 
 ## Name
 
-chupa-text-decomposer-libreoffice
+chupa-text-decomposer-libreoffice-excel
 
 ## Description
 
-This is a ChupaText decomposer plugin for to extract text and
-meta-data from office files such as Microsoft Word file, Microsoft
-Excel file and OpenDocument Format file. It uses
-[LibreOffice](https://www.libreoffice.org/).
+This is a ChupaText decomposer plugin to extract text and meta-data
+from Microsoft Excel binary file format file (`.xls` file). This plugin
+uses [LibreOffice](https://www.libreoffice.org/).
 
-You can use `libreoffice` decomposer.
+You can use `libreoffice-excel` decomposer.
 
 It depends on `pdf` decomposer. Because it converts a office file to
 PDF file and extracts text and meta-data by `pdf` decomposer.
 
 ## Install
 
-Install chupa-text-decomposer-libreoffice gem:
+Install chupa-text-decomposer-libreoffice-excel gem:
 
 ```
-% gem install chupa-text-decomposer-libreoffice
+% gem install chupa-text-decomposer-libreoffice-excel
 ```
 
 Install
@@ -30,7 +29,7 @@ Install
 Now, you can extract text and meta-data from office files:
 
 ```
-% chupa-text document.doc
+% chupa-text workbook.xls
 ```
 
 ## Author

  Copied: chupa-text-decomposer-libreoffice-excel/Rakefile (+2 -2) 95%
===================================================================
--- Rakefile    2018-07-18 09:19:51 +0900 (7434781)
+++ chupa-text-decomposer-libreoffice-excel/Rakefile    2019-02-26 13:02:55 +0900 (f6510d1)
@@ -24,11 +24,11 @@ require "rubygems"
 require "bundler/gem_helper"
 require "packnga"
 
-base_dir = Pathname(__FILE__).dirname
+base_dir = Pathname(__dir__)
 
 helper = Bundler::GemHelper.new(base_dir.to_s)
 def helper.version_tag
-  version
+  "#{name}-#{version}"
 end
 
 helper.install

  Copied: chupa-text-decomposer-libreoffice-excel/chupa-text-decomposer-libreoffice-excel.gemspec (+4 -7) 86%
===================================================================
--- chupa-text-decomposer-libreoffice.gemspec    2018-07-18 09:19:51 +0900 (f6ed86d)
+++ chupa-text-decomposer-libreoffice-excel/chupa-text-decomposer-libreoffice-excel.gemspec    2019-02-26 13:02:55 +0900 (3cf0682)
@@ -1,6 +1,6 @@
 # -*- ruby -*-
 #
-# Copyright (C) 2014-2017  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -21,8 +21,8 @@ clean_white_space = lambda do |entry|
 end
 
 Gem::Specification.new do |spec|
-  spec.name = "chupa-text-decomposer-libreoffice"
-  spec.version = "1.0.2"
+  spec.name = "chupa-text-decomposer-libreoffice-excel"
+  spec.version = "1.0.0"
   spec.homepage = "https://github.com/ranguba/chupa-text-decomposer-libreoffice"
   spec.authors = ["Kouhei Sutou"]
   spec.email = ["kou****@clear*****"]
@@ -39,10 +39,7 @@ Gem::Specification.new do |spec|
   spec.files += Dir.glob("doc/text/*")
   spec.files += Dir.glob("test/**/*")
 
-  spec.requirements << "LibreOffice"
-
-  spec.add_runtime_dependency("chupa-text", ">= 1.0.9")
-  spec.add_runtime_dependency("chupa-text-decomposer-pdf")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-general")
 
   spec.add_development_dependency("bundler")
   spec.add_development_dependency("rake")

  Added: chupa-text-decomposer-libreoffice-excel/doc/text/news.md (+5 -0) 100644
===================================================================
--- /dev/null
+++ chupa-text-decomposer-libreoffice-excel/doc/text/news.md    2019-02-26 13:02:55 +0900 (6c45d91)
@@ -0,0 +1,5 @@
+# News
+
+## 1.0.0: 2019-02-26
+
+The first release!!!

  Copied: chupa-text-decomposer-libreoffice-excel/lib/chupa-text/decomposers/libreoffice-excel.rb (+16 -14) 62%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-excel/lib/chupa-text/decomposers/libreoffice-excel.rb    2019-02-26 13:02:55 +0900 (0a19873)
@@ -1,6 +1,4 @@
-# -*- mode: ruby; coding: utf-8 -*-
-#
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -16,19 +14,23 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-source "https://rubygems.org/"
+require "chupa-text/decomposers/libreoffice-general"
 
-gemspec
+module ChupaText
+  module Decomposers
+    class LibreOfficeExcel < LibreOfficeGeneral
+      registry.register("libreoffice-excel", self)
 
-base_dir = File.dirname(__FILE__)
+      def initialize(options)
+        super
+        @extension = "xls"
+        @mime_type = "application/vnd.ms-excel"
+      end
 
-local_gem_names = [
-  "chupa-text",
-  "chupa-text-decomposer-pdf",
-]
-local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
-  if File.exist?(local_dir)
-    gem name, :path => local_dir
+      private
+      def log_tag
+        super + "[excel]"
+      end
+    end
   end
 end

  Copied: chupa-text-decomposer-libreoffice-excel/test/fixture/attributes.xls (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-excel/test/fixture/multi-sheets.xls (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-excel/test/fixture/one-sheet.xls (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-excel/test/run-test.rb (+1 -1) 92%
===================================================================
--- test/run-test.rb    2018-07-18 09:19:51 +0900 (4ebafe2)
+++ chupa-text-decomposer-libreoffice-excel/test/run-test.rb    2019-02-26 13:02:55 +0900 (6ebf1c3)
@@ -26,6 +26,6 @@ require "chupa-text"
 
 ChupaText::Decomposers.load
 
-require_relative "helper"
+require_relative "../../chupa-text-decomposer-libreoffice-general/test/helper"
 
 exit(Test::Unit::AutoRunner.run(true))

  Copied: chupa-text-decomposer-libreoffice-excel/test/test-xls.rb (+4 -7) 93%
===================================================================
--- test/test-xls.rb    2018-07-18 09:19:51 +0900 (81bfa35)
+++ chupa-text-decomposer-libreoffice-excel/test/test-xls.rb    2019-02-26 13:02:55 +0900 (19a8bb8)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -14,17 +14,14 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-require "pathname"
-
 class TestXls < Test::Unit::TestCase
-  include FixtureHelper
-
   def setup
-    setup_decomposer
+    @decomposer = ChupaText::Decomposers::LibreOfficeExcel.new({})
   end
 
   def fixture_path(*components)
-    super("xls", *components)
+    base_path = Pathname(__dir__) + "fixture"
+    base_path.join(*components)
   end
 
   sub_test_case("target?") do

  Copied: chupa-text-decomposer-libreoffice-general/.gitignore (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-general/.yardopts (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-general/Gemfile (+2 -2) 89%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-general/Gemfile    2019-02-26 13:02:55 +0900 (9ab1bf4)
@@ -1,6 +1,6 @@
 # -*- mode: ruby; coding: utf-8 -*-
 #
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -27,7 +27,7 @@ local_gem_names = [
   "chupa-text-decomposer-pdf",
 ]
 local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
+  local_dir = File.join(base_dir, "..", "..", name)
   if File.exist?(local_dir)
     gem name, :path => local_dir
   end

  Copied: chupa-text-decomposer-libreoffice-general/LICENSE.txt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-general/README.md (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-general/Rakefile (+2 -2) 95%
===================================================================
--- Rakefile    2018-07-18 09:19:51 +0900 (7434781)
+++ chupa-text-decomposer-libreoffice-general/Rakefile    2019-02-26 13:02:55 +0900 (f6510d1)
@@ -24,11 +24,11 @@ require "rubygems"
 require "bundler/gem_helper"
 require "packnga"
 
-base_dir = Pathname(__FILE__).dirname
+base_dir = Pathname(__dir__)
 
 helper = Bundler::GemHelper.new(base_dir.to_s)
 def helper.version_tag
-  version
+  "#{name}-#{version}"
 end
 
 helper.install

  Copied: chupa-text-decomposer-libreoffice-general/chupa-text-decomposer-libreoffice-general.gemspec (+3 -3) 93%
===================================================================
--- chupa-text-decomposer-libreoffice.gemspec    2018-07-18 09:19:51 +0900 (f6ed86d)
+++ chupa-text-decomposer-libreoffice-general/chupa-text-decomposer-libreoffice-general.gemspec    2019-02-26 13:02:55 +0900 (30ba0bd)
@@ -1,6 +1,6 @@
 # -*- ruby -*-
 #
-# Copyright (C) 2014-2017  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -21,8 +21,8 @@ clean_white_space = lambda do |entry|
 end
 
 Gem::Specification.new do |spec|
-  spec.name = "chupa-text-decomposer-libreoffice"
-  spec.version = "1.0.2"
+  spec.name = "chupa-text-decomposer-libreoffice-general"
+  spec.version = "1.0.0"
   spec.homepage = "https://github.com/ranguba/chupa-text-decomposer-libreoffice"
   spec.authors = ["Kouhei Sutou"]
   spec.email = ["kou****@clear*****"]

  Added: chupa-text-decomposer-libreoffice-general/doc/text/news.md (+5 -0) 100644
===================================================================
--- /dev/null
+++ chupa-text-decomposer-libreoffice-general/doc/text/news.md    2019-02-26 13:02:55 +0900 (6c45d91)
@@ -0,0 +1,5 @@
+# News
+
+## 1.0.0: 2019-02-26
+
+The first release!!!

  Copied: chupa-text-decomposer-libreoffice-general/lib/chupa-text/decomposers/libreoffice-general.rb (+7 -9) 92%
===================================================================
--- lib/chupa-text/decomposers/libreoffice.rb    2018-07-18 09:19:51 +0900 (aea8593)
+++ chupa-text-decomposer-libreoffice-general/lib/chupa-text/decomposers/libreoffice-general.rb    2019-02-26 13:02:55 +0900 (fe05338)
@@ -19,11 +19,9 @@ require "tmpdir"
 
 module ChupaText
   module Decomposers
-    class LibreOffice < Decomposer
+    class LibreOfficeGeneral < Decomposer
       include Loggable
 
-      registry.register("libreoffice", self)
-
       def initialize(options)
         super
         @command = find_command
@@ -60,8 +58,8 @@ module ChupaText
       ]
       def target?(data)
         return false if****@comma*****?
-        TARGET_EXTENSIONS.include?(data.extension) or
-          TARGET_MIME_TYPES.include?(data.mime_type)
+        data.extension == @extension or
+          data.mime_type == @mime_type
       end
 
       def decompose(data)
@@ -125,7 +123,7 @@ module ChupaText
           if pdf_path.nil?
             error do
               tag = "#{log_tag}[convert][failed]"
-              message = [
+              [
                 "#{tag}: LibreOffice may be running",
                 "output: <#{output.read}>",
                 "error: <#{error_output.read}>",
@@ -135,9 +133,9 @@ module ChupaText
           end
           normalized_pdf_uri = data.uri.to_s.gsub(/\.[^.]+\z/, ".pdf")
           File.open(pdf_path, "rb") do |pdf|
-            ChupaText::VirtualFileData.new(normalized_pdf_uri,
-                                           pdf,
-                                           :source_data => data)
+            VirtualFileData.new(normalized_pdf_uri,
+                                pdf,
+                                :source_data => data)
           end
         end
       end

  Copied: chupa-text-decomposer-libreoffice-general/test/helper.rb (+2 -11) 83%
===================================================================
--- test/helper.rb    2018-07-18 09:19:51 +0900 (3da158d)
+++ chupa-text-decomposer-libreoffice-general/test/helper.rb    2019-02-26 13:02:55 +0900 (662329c)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -14,16 +14,7 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-module FixtureHelper
-  def setup_decomposer
-    @decomposer = ChupaText::Decomposers::LibreOffice.new({})
-  end
-
-  def fixture_path(*components)
-    base_path = Pathname(__FILE__).dirname + "fixture"
-    base_path.join(*components)
-  end
-end
+require "pathname"
 
 module DecomposeHelper
   def decompose(path)

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-document/.gitignore (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-document/.yardopts (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-document/Gemfile (+5 -2) 82%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-office-open-xml-document/Gemfile    2019-02-26 13:02:55 +0900 (4c7a904)
@@ -1,6 +1,6 @@
 # -*- mode: ruby; coding: utf-8 -*-
 #
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -22,12 +22,15 @@ gemspec
 
 base_dir = File.dirname(__FILE__)
 
+general = "chupa-text-decomposer-libreoffice-general"
+gem general, path: File.join(base_dir, "..", general)
+
 local_gem_names = [
   "chupa-text",
   "chupa-text-decomposer-pdf",
 ]
 local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
+  local_dir = File.join(base_dir, "..", "..", name)
   if File.exist?(local_dir)
     gem name, :path => local_dir
   end

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-document/LICENSE.txt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-document/README.md (+8 -8) 54%
===================================================================
--- README.md    2018-07-18 09:19:51 +0900 (c636e67)
+++ chupa-text-decomposer-libreoffice-office-open-xml-document/README.md    2019-02-26 13:02:55 +0900 (c01978c)
@@ -2,26 +2,26 @@
 
 ## Name
 
-chupa-text-decomposer-libreoffice
+chupa-text-decomposer-libreoffice-office-open-xml-document
 
 ## Description
 
-This is a ChupaText decomposer plugin for to extract text and
-meta-data from office files such as Microsoft Word file, Microsoft
-Excel file and OpenDocument Format file. It uses
+This is a ChupaText decomposer plugin to extract text and meta-data
+from Office Open XML Document file format file (`.docx` file used by
+Microsoft Word). This plugin uses
 [LibreOffice](https://www.libreoffice.org/).
 
-You can use `libreoffice` decomposer.
+You can use `libreoffice-office-open-xml-document` decomposer.
 
 It depends on `pdf` decomposer. Because it converts a office file to
 PDF file and extracts text and meta-data by `pdf` decomposer.
 
 ## Install
 
-Install chupa-text-decomposer-libreoffice gem:
+Install chupa-text-decomposer-libreoffice-office-open-xml-document gem:
 
 ```
-% gem install chupa-text-decomposer-libreoffice
+% gem install chupa-text-decomposer-libreoffice-office-open-xml-document
 ```
 
 Install
@@ -30,7 +30,7 @@ Install
 Now, you can extract text and meta-data from office files:
 
 ```
-% chupa-text document.doc
+% chupa-text document.docx
 ```
 
 ## Author

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-document/Rakefile (+2 -2) 95%
===================================================================
--- Rakefile    2018-07-18 09:19:51 +0900 (7434781)
+++ chupa-text-decomposer-libreoffice-office-open-xml-document/Rakefile    2019-02-26 13:02:55 +0900 (f6510d1)
@@ -24,11 +24,11 @@ require "rubygems"
 require "bundler/gem_helper"
 require "packnga"
 
-base_dir = Pathname(__FILE__).dirname
+base_dir = Pathname(__dir__)
 
 helper = Bundler::GemHelper.new(base_dir.to_s)
 def helper.version_tag
-  version
+  "#{name}-#{version}"
 end
 
 helper.install

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-document/chupa-text-decomposer-libreoffice-office-open-xml-document.gemspec (+4 -7) 86%
===================================================================
--- chupa-text-decomposer-libreoffice.gemspec    2018-07-18 09:19:51 +0900 (f6ed86d)
+++ chupa-text-decomposer-libreoffice-office-open-xml-document/chupa-text-decomposer-libreoffice-office-open-xml-document.gemspec    2019-02-26 13:02:55 +0900 (7da10bb)
@@ -1,6 +1,6 @@
 # -*- ruby -*-
 #
-# Copyright (C) 2014-2017  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -21,8 +21,8 @@ clean_white_space = lambda do |entry|
 end
 
 Gem::Specification.new do |spec|
-  spec.name = "chupa-text-decomposer-libreoffice"
-  spec.version = "1.0.2"
+  spec.name = "chupa-text-decomposer-libreoffice-office-open-xml-document"
+  spec.version = "1.0.0"
   spec.homepage = "https://github.com/ranguba/chupa-text-decomposer-libreoffice"
   spec.authors = ["Kouhei Sutou"]
   spec.email = ["kou****@clear*****"]
@@ -39,10 +39,7 @@ Gem::Specification.new do |spec|
   spec.files += Dir.glob("doc/text/*")
   spec.files += Dir.glob("test/**/*")
 
-  spec.requirements << "LibreOffice"
-
-  spec.add_runtime_dependency("chupa-text", ">= 1.0.9")
-  spec.add_runtime_dependency("chupa-text-decomposer-pdf")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-general")
 
   spec.add_development_dependency("bundler")
   spec.add_development_dependency("rake")

  Added: chupa-text-decomposer-libreoffice-office-open-xml-document/doc/text/news.md (+5 -0) 100644
===================================================================
--- /dev/null
+++ chupa-text-decomposer-libreoffice-office-open-xml-document/doc/text/news.md    2019-02-26 13:02:55 +0900 (6c45d91)
@@ -0,0 +1,5 @@
+# News
+
+## 1.0.0: 2019-02-26
+
+The first release!!!

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-document/lib/chupa-text/decomposers/libreoffice-office-open-xml-document.rb (+16 -14) 57%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-office-open-xml-document/lib/chupa-text/decomposers/libreoffice-office-open-xml-document.rb    2019-02-26 13:02:55 +0900 (67967cd)
@@ -1,6 +1,4 @@
-# -*- mode: ruby; coding: utf-8 -*-
-#
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -16,19 +14,23 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-source "https://rubygems.org/"
+require "chupa-text/decomposers/libreoffice-general"
 
-gemspec
+module ChupaText
+  module Decomposers
+    class LibreOfficeOfficeOpenXMLDocument < LibreOfficeGeneral
+      registry.register("libreoffice-office-open-xml-document", self)
 
-base_dir = File.dirname(__FILE__)
+      def initialize(options)
+        super
+        @extension = "docx"
+        @mime_type = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
+      end
 
-local_gem_names = [
-  "chupa-text",
-  "chupa-text-decomposer-pdf",
-]
-local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
-  if File.exist?(local_dir)
-    gem name, :path => local_dir
+      private
+      def log_tag
+        super + "[office-open-xml-document]"
+      end
+    end
   end
 end

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-document/test/fixture/attributes.docx (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-document/test/fixture/multi-pages.docx (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-document/test/fixture/one-page.docx (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-document/test/run-test.rb (+1 -1) 92%
===================================================================
--- test/run-test.rb    2018-07-18 09:19:51 +0900 (4ebafe2)
+++ chupa-text-decomposer-libreoffice-office-open-xml-document/test/run-test.rb    2019-02-26 13:02:55 +0900 (6ebf1c3)
@@ -26,6 +26,6 @@ require "chupa-text"
 
 ChupaText::Decomposers.load
 
-require_relative "helper"
+require_relative "../../chupa-text-decomposer-libreoffice-general/test/helper"
 
 exit(Test::Unit::AutoRunner.run(true))

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-document/test/test-docx.rb (+3 -6) 94%
===================================================================
--- test/test-docx.rb    2018-07-18 09:19:51 +0900 (dddc613)
+++ chupa-text-decomposer-libreoffice-office-open-xml-document/test/test-docx.rb    2019-02-26 13:02:55 +0900 (a420f34)
@@ -14,17 +14,14 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-require "pathname"
-
 class TestDocx < Test::Unit::TestCase
-  include FixtureHelper
-
   def setup
-    setup_decomposer
+    @decomposer = ChupaText::Decomposers::LibreOfficeOfficeOpenXMLDocument.new({})
   end
 
   def fixture_path(*components)
-    super("docx", *components)
+    base_path = Pathname(__dir__) + "fixture"
+    base_path.join(*components)
   end
 
   sub_test_case("target?") do

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-presentation/.gitignore (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-presentation/.yardopts (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-presentation/Gemfile (+5 -2) 82%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-office-open-xml-presentation/Gemfile    2019-02-26 13:02:55 +0900 (4c7a904)
@@ -1,6 +1,6 @@
 # -*- mode: ruby; coding: utf-8 -*-
 #
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -22,12 +22,15 @@ gemspec
 
 base_dir = File.dirname(__FILE__)
 
+general = "chupa-text-decomposer-libreoffice-general"
+gem general, path: File.join(base_dir, "..", general)
+
 local_gem_names = [
   "chupa-text",
   "chupa-text-decomposer-pdf",
 ]
 local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
+  local_dir = File.join(base_dir, "..", "..", name)
   if File.exist?(local_dir)
     gem name, :path => local_dir
   end

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-presentation/LICENSE.txt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-presentation/README.md (+8 -8) 52%
===================================================================
--- README.md    2018-07-18 09:19:51 +0900 (c636e67)
+++ chupa-text-decomposer-libreoffice-office-open-xml-presentation/README.md    2019-02-26 13:02:55 +0900 (49e0eb5)
@@ -2,26 +2,26 @@
 
 ## Name
 
-chupa-text-decomposer-libreoffice
+chupa-text-decomposer-libreoffice-office-open-xml-presentation
 
 ## Description
 
-This is a ChupaText decomposer plugin for to extract text and
-meta-data from office files such as Microsoft Word file, Microsoft
-Excel file and OpenDocument Format file. It uses
+This is a ChupaText decomposer plugin to extract text and meta-data
+from Office Open XML Presentation file format file (`.pptx` file used
+by Microsoft PowerPoint). This plugin uses
 [LibreOffice](https://www.libreoffice.org/).
 
-You can use `libreoffice` decomposer.
+You can use `libreoffice-office-open-xml-presentation` decomposer.
 
 It depends on `pdf` decomposer. Because it converts a office file to
 PDF file and extracts text and meta-data by `pdf` decomposer.
 
 ## Install
 
-Install chupa-text-decomposer-libreoffice gem:
+Install chupa-text-decomposer-libreoffice-office-open-xml-presentation gem:
 
 ```
-% gem install chupa-text-decomposer-libreoffice
+% gem install chupa-text-decomposer-libreoffice-office-open-xml-presentation
 ```
 
 Install
@@ -30,7 +30,7 @@ Install
 Now, you can extract text and meta-data from office files:
 
 ```
-% chupa-text document.doc
+% chupa-text slide.pptx
 ```
 
 ## Author

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-presentation/Rakefile (+2 -2) 95%
===================================================================
--- Rakefile    2018-07-18 09:19:51 +0900 (7434781)
+++ chupa-text-decomposer-libreoffice-office-open-xml-presentation/Rakefile    2019-02-26 13:02:55 +0900 (f6510d1)
@@ -24,11 +24,11 @@ require "rubygems"
 require "bundler/gem_helper"
 require "packnga"
 
-base_dir = Pathname(__FILE__).dirname
+base_dir = Pathname(__dir__)
 
 helper = Bundler::GemHelper.new(base_dir.to_s)
 def helper.version_tag
-  version
+  "#{name}-#{version}"
 end
 
 helper.install

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-presentation/chupa-text-decomposer-libreoffice-office-open-xml-presentation.gemspec (+4 -7) 86%
===================================================================
--- chupa-text-decomposer-libreoffice.gemspec    2018-07-18 09:19:51 +0900 (f6ed86d)
+++ chupa-text-decomposer-libreoffice-office-open-xml-presentation/chupa-text-decomposer-libreoffice-office-open-xml-presentation.gemspec    2019-02-26 13:02:55 +0900 (16e1f1f)
@@ -1,6 +1,6 @@
 # -*- ruby -*-
 #
-# Copyright (C) 2014-2017  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -21,8 +21,8 @@ clean_white_space = lambda do |entry|
 end
 
 Gem::Specification.new do |spec|
-  spec.name = "chupa-text-decomposer-libreoffice"
-  spec.version = "1.0.2"
+  spec.name = "chupa-text-decomposer-libreoffice-office-open-xml-presentation"
+  spec.version = "1.0.0"
   spec.homepage = "https://github.com/ranguba/chupa-text-decomposer-libreoffice"
   spec.authors = ["Kouhei Sutou"]
   spec.email = ["kou****@clear*****"]
@@ -39,10 +39,7 @@ Gem::Specification.new do |spec|
   spec.files += Dir.glob("doc/text/*")
   spec.files += Dir.glob("test/**/*")
 
-  spec.requirements << "LibreOffice"
-
-  spec.add_runtime_dependency("chupa-text", ">= 1.0.9")
-  spec.add_runtime_dependency("chupa-text-decomposer-pdf")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-general")
 
   spec.add_development_dependency("bundler")
   spec.add_development_dependency("rake")

  Added: chupa-text-decomposer-libreoffice-office-open-xml-presentation/doc/text/news.md (+5 -0) 100644
===================================================================
--- /dev/null
+++ chupa-text-decomposer-libreoffice-office-open-xml-presentation/doc/text/news.md    2019-02-26 13:02:55 +0900 (6c45d91)
@@ -0,0 +1,5 @@
+# News
+
+## 1.0.0: 2019-02-26
+
+The first release!!!

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-presentation/lib/chupa-text/decomposers/libreoffice-office-open-xml-presentation.rb (+16 -14) 56%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-office-open-xml-presentation/lib/chupa-text/decomposers/libreoffice-office-open-xml-presentation.rb    2019-02-26 13:02:55 +0900 (222b587)
@@ -1,6 +1,4 @@
-# -*- mode: ruby; coding: utf-8 -*-
-#
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -16,19 +14,23 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-source "https://rubygems.org/"
+require "chupa-text/decomposers/libreoffice-general"
 
-gemspec
+module ChupaText
+  module Decomposers
+    class LibreOfficeOfficeOpenXMLPresentation < LibreOfficeGeneral
+      registry.register("libreoffice-office-open-xml-presentation", self)
 
-base_dir = File.dirname(__FILE__)
+      def initialize(options)
+        super
+        @extension = "pptx"
+        @mime_type = "application/vnd.openxmlformats-officedocument.presentationml.presentation"
+      end
 
-local_gem_names = [
-  "chupa-text",
-  "chupa-text-decomposer-pdf",
-]
-local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
-  if File.exist?(local_dir)
-    gem name, :path => local_dir
+      private
+      def log_tag
+        super + "[office-open-xml-presentation]"
+      end
+    end
   end
 end

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-presentation/test/fixture/attributes.pptx (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-presentation/test/fixture/multi-slides.pptx (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-presentation/test/fixture/one-slide.pptx (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-presentation/test/run-test.rb (+1 -1) 92%
===================================================================
--- test/run-test.rb    2018-07-18 09:19:51 +0900 (4ebafe2)
+++ chupa-text-decomposer-libreoffice-office-open-xml-presentation/test/run-test.rb    2019-02-26 13:02:55 +0900 (6ebf1c3)
@@ -26,6 +26,6 @@ require "chupa-text"
 
 ChupaText::Decomposers.load
 
-require_relative "helper"
+require_relative "../../chupa-text-decomposer-libreoffice-general/test/helper"
 
 exit(Test::Unit::AutoRunner.run(true))

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-presentation/test/test-pptx.rb (+4 -7) 92%
===================================================================
--- test/test-pptx.rb    2018-07-18 09:19:51 +0900 (b00e20b)
+++ chupa-text-decomposer-libreoffice-office-open-xml-presentation/test/test-pptx.rb    2019-02-26 13:02:55 +0900 (fcaf31e)
@@ -14,17 +14,14 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-require "pathname"
-
 class TestPptx < Test::Unit::TestCase
-  include FixtureHelper
-
   def setup
-    setup_decomposer
+    @decomposer = ChupaText::Decomposers::LibreOfficeOfficeOpenXMLPresentation.new({})
   end
 
   def fixture_path(*components)
-    super("pptx", *components)
+    base_path = Pathname(__dir__) + "fixture"
+    base_path.join(*components)
   end
 
   sub_test_case("target?") do
@@ -37,7 +34,7 @@ class TestPptx < Test::Unit::TestCase
       end
 
       def test_pptx
-        assert_true(@decomposer.target?(create_data("document.pptx")))
+        assert_true(@decomposer.target?(create_data("slide.pptx")))
       end
     end
 

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-workbook/.gitignore (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-workbook/.yardopts (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-workbook/Gemfile (+5 -2) 82%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-office-open-xml-workbook/Gemfile    2019-02-26 13:02:55 +0900 (4c7a904)
@@ -1,6 +1,6 @@
 # -*- mode: ruby; coding: utf-8 -*-
 #
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -22,12 +22,15 @@ gemspec
 
 base_dir = File.dirname(__FILE__)
 
+general = "chupa-text-decomposer-libreoffice-general"
+gem general, path: File.join(base_dir, "..", general)
+
 local_gem_names = [
   "chupa-text",
   "chupa-text-decomposer-pdf",
 ]
 local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
+  local_dir = File.join(base_dir, "..", "..", name)
   if File.exist?(local_dir)
     gem name, :path => local_dir
   end

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-workbook/LICENSE.txt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-workbook/README.md (+8 -8) 54%
===================================================================
--- README.md    2018-07-18 09:19:51 +0900 (c636e67)
+++ chupa-text-decomposer-libreoffice-office-open-xml-workbook/README.md    2019-02-26 13:02:55 +0900 (9603351)
@@ -2,26 +2,26 @@
 
 ## Name
 
-chupa-text-decomposer-libreoffice
+chupa-text-decomposer-libreoffice-office-open-xml-workbook
 
 ## Description
 
-This is a ChupaText decomposer plugin for to extract text and
-meta-data from office files such as Microsoft Word file, Microsoft
-Excel file and OpenDocument Format file. It uses
+This is a ChupaText decomposer plugin to extract text and meta-data
+from Office Open XML Workbook file format file (`.xlsx` file used by
+Microsoft Excel). This plugin uses
 [LibreOffice](https://www.libreoffice.org/).
 
-You can use `libreoffice` decomposer.
+You can use `libreoffice-office-open-xml-workbook` decomposer.
 
 It depends on `pdf` decomposer. Because it converts a office file to
 PDF file and extracts text and meta-data by `pdf` decomposer.
 
 ## Install
 
-Install chupa-text-decomposer-libreoffice gem:
+Install chupa-text-decomposer-libreoffice-office-open-xml-workbook gem:
 
 ```
-% gem install chupa-text-decomposer-libreoffice
+% gem install chupa-text-decomposer-libreoffice-office-open-xml-workbook
 ```
 
 Install
@@ -30,7 +30,7 @@ Install
 Now, you can extract text and meta-data from office files:
 
 ```
-% chupa-text document.doc
+% chupa-text workbook.xlsx
 ```
 
 ## Author

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-workbook/Rakefile (+2 -2) 95%
===================================================================
--- Rakefile    2018-07-18 09:19:51 +0900 (7434781)
+++ chupa-text-decomposer-libreoffice-office-open-xml-workbook/Rakefile    2019-02-26 13:02:55 +0900 (f6510d1)
@@ -24,11 +24,11 @@ require "rubygems"
 require "bundler/gem_helper"
 require "packnga"
 
-base_dir = Pathname(__FILE__).dirname
+base_dir = Pathname(__dir__)
 
 helper = Bundler::GemHelper.new(base_dir.to_s)
 def helper.version_tag
-  version
+  "#{name}-#{version}"
 end
 
 helper.install

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-workbook/chupa-text-decomposer-libreoffice-office-open-xml-workbook.gemspec (+4 -7) 86%
===================================================================
--- chupa-text-decomposer-libreoffice.gemspec    2018-07-18 09:19:51 +0900 (f6ed86d)
+++ chupa-text-decomposer-libreoffice-office-open-xml-workbook/chupa-text-decomposer-libreoffice-office-open-xml-workbook.gemspec    2019-02-26 13:02:55 +0900 (dc6f019)
@@ -1,6 +1,6 @@
 # -*- ruby -*-
 #
-# Copyright (C) 2014-2017  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -21,8 +21,8 @@ clean_white_space = lambda do |entry|
 end
 
 Gem::Specification.new do |spec|
-  spec.name = "chupa-text-decomposer-libreoffice"
-  spec.version = "1.0.2"
+  spec.name = "chupa-text-decomposer-libreoffice-office-open-xml-workbook"
+  spec.version = "1.0.0"
   spec.homepage = "https://github.com/ranguba/chupa-text-decomposer-libreoffice"
   spec.authors = ["Kouhei Sutou"]
   spec.email = ["kou****@clear*****"]
@@ -39,10 +39,7 @@ Gem::Specification.new do |spec|
   spec.files += Dir.glob("doc/text/*")
   spec.files += Dir.glob("test/**/*")
 
-  spec.requirements << "LibreOffice"
-
-  spec.add_runtime_dependency("chupa-text", ">= 1.0.9")
-  spec.add_runtime_dependency("chupa-text-decomposer-pdf")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-general")
 
   spec.add_development_dependency("bundler")
   spec.add_development_dependency("rake")

  Added: chupa-text-decomposer-libreoffice-office-open-xml-workbook/doc/text/news.md (+5 -0) 100644
===================================================================
--- /dev/null
+++ chupa-text-decomposer-libreoffice-office-open-xml-workbook/doc/text/news.md    2019-02-26 13:02:55 +0900 (6c45d91)
@@ -0,0 +1,5 @@
+# News
+
+## 1.0.0: 2019-02-26
+
+The first release!!!

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-workbook/lib/chupa-text/decomposers/libreoffice-office-open-xml-workbook.rb (+16 -14) 57%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-office-open-xml-workbook/lib/chupa-text/decomposers/libreoffice-office-open-xml-workbook.rb    2019-02-26 13:02:55 +0900 (72891bb)
@@ -1,6 +1,4 @@
-# -*- mode: ruby; coding: utf-8 -*-
-#
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -16,19 +14,23 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-source "https://rubygems.org/"
+require "chupa-text/decomposers/libreoffice-general"
 
-gemspec
+module ChupaText
+  module Decomposers
+    class LibreOfficeOfficeOpenXMLWorkbook < LibreOfficeGeneral
+      registry.register("libreoffice-office-open-xml-workbook", self)
 
-base_dir = File.dirname(__FILE__)
+      def initialize(options)
+        super
+        @extension = "xlsx"
+        @mime_type = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
+      end
 
-local_gem_names = [
-  "chupa-text",
-  "chupa-text-decomposer-pdf",
-]
-local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
-  if File.exist?(local_dir)
-    gem name, :path => local_dir
+      private
+      def log_tag
+        super + "[office-open-xml-workbook]"
+      end
+    end
   end
 end

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-workbook/test/fixture/attributes.xlsx (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-workbook/test/fixture/multi-sheets.xlsx (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-workbook/test/fixture/one-sheet.xlsx (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-workbook/test/run-test.rb (+1 -1) 92%
===================================================================
--- test/run-test.rb    2018-07-18 09:19:51 +0900 (4ebafe2)
+++ chupa-text-decomposer-libreoffice-office-open-xml-workbook/test/run-test.rb    2019-02-26 13:02:55 +0900 (6ebf1c3)
@@ -26,6 +26,6 @@ require "chupa-text"
 
 ChupaText::Decomposers.load
 
-require_relative "helper"
+require_relative "../../chupa-text-decomposer-libreoffice-general/test/helper"
 
 exit(Test::Unit::AutoRunner.run(true))

  Copied: chupa-text-decomposer-libreoffice-office-open-xml-workbook/test/test-xlsx.rb (+4 -7) 93%
===================================================================
--- test/test-xlsx.rb    2018-07-18 09:19:51 +0900 (a9617a4)
+++ chupa-text-decomposer-libreoffice-office-open-xml-workbook/test/test-xlsx.rb    2019-02-26 13:02:55 +0900 (1342e34)
@@ -14,17 +14,14 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-require "pathname"
-
 class TestXlsx < Test::Unit::TestCase
-  include FixtureHelper
-
   def setup
-    setup_decomposer
+    @decomposer = ChupaText::Decomposers::LibreOfficeOfficeOpenXMLWorkbook.new({})
   end
 
   def fixture_path(*components)
-    super("xlsx", *components)
+    base_path = Pathname(__dir__) + "fixture"
+    base_path.join(*components)
   end
 
   sub_test_case("target?") do
@@ -37,7 +34,7 @@ class TestXlsx < Test::Unit::TestCase
       end
 
       def test_xlsx
-        assert_true(@decomposer.target?(create_data("document.xlsx")))
+        assert_true(@decomposer.target?(create_data("workbook.xlsx")))
       end
     end
 

  Copied: chupa-text-decomposer-libreoffice-opendocument-presentation/.gitignore (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-presentation/.yardopts (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-presentation/Gemfile (+5 -2) 82%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-opendocument-presentation/Gemfile    2019-02-26 13:02:55 +0900 (4c7a904)
@@ -1,6 +1,6 @@
 # -*- mode: ruby; coding: utf-8 -*-
 #
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -22,12 +22,15 @@ gemspec
 
 base_dir = File.dirname(__FILE__)
 
+general = "chupa-text-decomposer-libreoffice-general"
+gem general, path: File.join(base_dir, "..", general)
+
 local_gem_names = [
   "chupa-text",
   "chupa-text-decomposer-pdf",
 ]
 local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
+  local_dir = File.join(base_dir, "..", "..", name)
   if File.exist?(local_dir)
     gem name, :path => local_dir
   end

  Copied: chupa-text-decomposer-libreoffice-opendocument-presentation/LICENSE.txt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-presentation/README.md (+8 -9) 50%
===================================================================
--- README.md    2018-07-18 09:19:51 +0900 (c636e67)
+++ chupa-text-decomposer-libreoffice-opendocument-presentation/README.md    2019-02-26 13:02:55 +0900 (9634104)
@@ -2,26 +2,25 @@
 
 ## Name
 
-chupa-text-decomposer-libreoffice
+chupa-text-decomposer-libreoffice-opendocument-presentation
 
 ## Description
 
-This is a ChupaText decomposer plugin for to extract text and
-meta-data from office files such as Microsoft Word file, Microsoft
-Excel file and OpenDocument Format file. It uses
-[LibreOffice](https://www.libreoffice.org/).
+This is a ChupaText decomposer plugin to extract text and meta-data
+from OpenDocument Presentation file format file (`.odp` file). This
+plugin uses [LibreOffice](https://www.libreoffice.org/).
 
-You can use `libreoffice` decomposer.
+You can use `libreoffice-opendocument-presentation` decomposer.
 
 It depends on `pdf` decomposer. Because it converts a office file to
 PDF file and extracts text and meta-data by `pdf` decomposer.
 
 ## Install
 
-Install chupa-text-decomposer-libreoffice gem:
+Install chupa-text-decomposer-libreoffice-opendocument-presentation gem:
 
 ```
-% gem install chupa-text-decomposer-libreoffice
+% gem install chupa-text-decomposer-libreoffice-opendocument-presentation
 ```
 
 Install
@@ -30,7 +29,7 @@ Install
 Now, you can extract text and meta-data from office files:
 
 ```
-% chupa-text document.doc
+% chupa-text slide.odp
 ```
 
 ## Author

  Copied: chupa-text-decomposer-libreoffice-opendocument-presentation/Rakefile (+2 -2) 95%
===================================================================
--- Rakefile    2018-07-18 09:19:51 +0900 (7434781)
+++ chupa-text-decomposer-libreoffice-opendocument-presentation/Rakefile    2019-02-26 13:02:55 +0900 (f6510d1)
@@ -24,11 +24,11 @@ require "rubygems"
 require "bundler/gem_helper"
 require "packnga"
 
-base_dir = Pathname(__FILE__).dirname
+base_dir = Pathname(__dir__)
 
 helper = Bundler::GemHelper.new(base_dir.to_s)
 def helper.version_tag
-  version
+  "#{name}-#{version}"
 end
 
 helper.install

  Copied: chupa-text-decomposer-libreoffice-opendocument-presentation/chupa-text-decomposer-libreoffice-opendocument-presentation.gemspec (+4 -7) 86%
===================================================================
--- chupa-text-decomposer-libreoffice.gemspec    2018-07-18 09:19:51 +0900 (f6ed86d)
+++ chupa-text-decomposer-libreoffice-opendocument-presentation/chupa-text-decomposer-libreoffice-opendocument-presentation.gemspec    2019-02-26 13:02:55 +0900 (20fe43d)
@@ -1,6 +1,6 @@
 # -*- ruby -*-
 #
-# Copyright (C) 2014-2017  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -21,8 +21,8 @@ clean_white_space = lambda do |entry|
 end
 
 Gem::Specification.new do |spec|
-  spec.name = "chupa-text-decomposer-libreoffice"
-  spec.version = "1.0.2"
+  spec.name = "chupa-text-decomposer-libreoffice-opendocument-presentation"
+  spec.version = "1.0.0"
   spec.homepage = "https://github.com/ranguba/chupa-text-decomposer-libreoffice"
   spec.authors = ["Kouhei Sutou"]
   spec.email = ["kou****@clear*****"]
@@ -39,10 +39,7 @@ Gem::Specification.new do |spec|
   spec.files += Dir.glob("doc/text/*")
   spec.files += Dir.glob("test/**/*")
 
-  spec.requirements << "LibreOffice"
-
-  spec.add_runtime_dependency("chupa-text", ">= 1.0.9")
-  spec.add_runtime_dependency("chupa-text-decomposer-pdf")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-general")
 
   spec.add_development_dependency("bundler")
   spec.add_development_dependency("rake")

  Added: chupa-text-decomposer-libreoffice-opendocument-presentation/doc/text/news.md (+5 -0) 100644
===================================================================
--- /dev/null
+++ chupa-text-decomposer-libreoffice-opendocument-presentation/doc/text/news.md    2019-02-26 13:02:55 +0900 (6c45d91)
@@ -0,0 +1,5 @@
+# News
+
+## 1.0.0: 2019-02-26
+
+The first release!!!

  Copied: chupa-text-decomposer-libreoffice-opendocument-presentation/lib/chupa-text/decomposers/libreoffice-opendocument-presentation.rb (+16 -14) 58%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-opendocument-presentation/lib/chupa-text/decomposers/libreoffice-opendocument-presentation.rb    2019-02-26 13:02:55 +0900 (ff3e6a2)
@@ -1,6 +1,4 @@
-# -*- mode: ruby; coding: utf-8 -*-
-#
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -16,19 +14,23 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-source "https://rubygems.org/"
+require "chupa-text/decomposers/libreoffice-general"
 
-gemspec
+module ChupaText
+  module Decomposers
+    class LibreOfficeOpenDocumentPresentation < LibreOfficeGeneral
+      registry.register("libreoffice-opendocument-presentation", self)
 
-base_dir = File.dirname(__FILE__)
+      def initialize(options)
+        super
+        @extension = "odp"
+        @mime_type = "application/vnd.oasis.opendocument.presentation"
+      end
 
-local_gem_names = [
-  "chupa-text",
-  "chupa-text-decomposer-pdf",
-]
-local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
-  if File.exist?(local_dir)
-    gem name, :path => local_dir
+      private
+      def log_tag
+        super + "[opendocument-presentation]"
+      end
+    end
   end
 end

  Copied: chupa-text-decomposer-libreoffice-opendocument-presentation/test/fixture/attributes.odp (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-presentation/test/fixture/multi-slides.odp (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-presentation/test/fixture/one-slide.odp (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-presentation/test/run-test.rb (+1 -1) 92%
===================================================================
--- test/run-test.rb    2018-07-18 09:19:51 +0900 (4ebafe2)
+++ chupa-text-decomposer-libreoffice-opendocument-presentation/test/run-test.rb    2019-02-26 13:02:55 +0900 (6ebf1c3)
@@ -26,6 +26,6 @@ require "chupa-text"
 
 ChupaText::Decomposers.load
 
-require_relative "helper"
+require_relative "../../chupa-text-decomposer-libreoffice-general/test/helper"
 
 exit(Test::Unit::AutoRunner.run(true))

  Copied: chupa-text-decomposer-libreoffice-opendocument-presentation/test/test-odp.rb (+4 -7) 92%
===================================================================
--- test/test-odp.rb    2018-07-18 09:19:51 +0900 (3435b8f)
+++ chupa-text-decomposer-libreoffice-opendocument-presentation/test/test-odp.rb    2019-02-26 13:02:55 +0900 (1ba6948)
@@ -16,17 +16,14 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-require "pathname"
-
 class TestOdp < Test::Unit::TestCase
-  include FixtureHelper
-
   def setup
-    setup_decomposer
+    @decomposer = ChupaText::Decomposers::LibreOfficeOpenDocumentPresentation.new({})
   end
 
   def fixture_path(*components)
-    super("odp", *components)
+    base_path = Pathname(__dir__) + "fixture"
+    base_path.join(*components)
   end
 
   sub_test_case("target?") do
@@ -39,7 +36,7 @@ class TestOdp < Test::Unit::TestCase
       end
 
       def test_odp
-        assert_true(@decomposer.target?(create_data("document.odp")))
+        assert_true(@decomposer.target?(create_data("slide.odp")))
       end
     end
 

  Copied: chupa-text-decomposer-libreoffice-opendocument-spreadsheet/.gitignore (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-spreadsheet/.yardopts (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-spreadsheet/Gemfile (+5 -2) 82%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-opendocument-spreadsheet/Gemfile    2019-02-26 13:02:55 +0900 (4c7a904)
@@ -1,6 +1,6 @@
 # -*- mode: ruby; coding: utf-8 -*-
 #
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -22,12 +22,15 @@ gemspec
 
 base_dir = File.dirname(__FILE__)
 
+general = "chupa-text-decomposer-libreoffice-general"
+gem general, path: File.join(base_dir, "..", general)
+
 local_gem_names = [
   "chupa-text",
   "chupa-text-decomposer-pdf",
 ]
 local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
+  local_dir = File.join(base_dir, "..", "..", name)
   if File.exist?(local_dir)
     gem name, :path => local_dir
   end

  Copied: chupa-text-decomposer-libreoffice-opendocument-spreadsheet/LICENSE.txt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-spreadsheet/README.md (+8 -9) 50%
===================================================================
--- README.md    2018-07-18 09:19:51 +0900 (c636e67)
+++ chupa-text-decomposer-libreoffice-opendocument-spreadsheet/README.md    2019-02-26 13:02:55 +0900 (93279ae)
@@ -2,26 +2,25 @@
 
 ## Name
 
-chupa-text-decomposer-libreoffice
+chupa-text-decomposer-libreoffice-opendocument-spreadsheet
 
 ## Description
 
-This is a ChupaText decomposer plugin for to extract text and
-meta-data from office files such as Microsoft Word file, Microsoft
-Excel file and OpenDocument Format file. It uses
-[LibreOffice](https://www.libreoffice.org/).
+This is a ChupaText decomposer plugin to extract text and meta-data
+from OpenDocument Spreadsheet file format file (`.ods` file). This
+plugin uses [LibreOffice](https://www.libreoffice.org/).
 
-You can use `libreoffice` decomposer.
+You can use `libreoffice-opendocument-spreadsheet` decomposer.
 
 It depends on `pdf` decomposer. Because it converts a office file to
 PDF file and extracts text and meta-data by `pdf` decomposer.
 
 ## Install
 
-Install chupa-text-decomposer-libreoffice gem:
+Install chupa-text-decomposer-libreoffice-opendocument-spreadsheet gem:
 
 ```
-% gem install chupa-text-decomposer-libreoffice
+% gem install chupa-text-decomposer-libreoffice-opendocument-spreadsheet
 ```
 
 Install
@@ -30,7 +29,7 @@ Install
 Now, you can extract text and meta-data from office files:
 
 ```
-% chupa-text document.doc
+% chupa-text spreadsheet.ods
 ```
 
 ## Author

  Copied: chupa-text-decomposer-libreoffice-opendocument-spreadsheet/Rakefile (+2 -2) 95%
===================================================================
--- Rakefile    2018-07-18 09:19:51 +0900 (7434781)
+++ chupa-text-decomposer-libreoffice-opendocument-spreadsheet/Rakefile    2019-02-26 13:02:55 +0900 (f6510d1)
@@ -24,11 +24,11 @@ require "rubygems"
 require "bundler/gem_helper"
 require "packnga"
 
-base_dir = Pathname(__FILE__).dirname
+base_dir = Pathname(__dir__)
 
 helper = Bundler::GemHelper.new(base_dir.to_s)
 def helper.version_tag
-  version
+  "#{name}-#{version}"
 end
 
 helper.install

  Copied: chupa-text-decomposer-libreoffice-opendocument-spreadsheet/chupa-text-decomposer-libreoffice-opendocument-spreadsheet.gemspec (+4 -7) 86%
===================================================================
--- chupa-text-decomposer-libreoffice.gemspec    2018-07-18 09:19:51 +0900 (f6ed86d)
+++ chupa-text-decomposer-libreoffice-opendocument-spreadsheet/chupa-text-decomposer-libreoffice-opendocument-spreadsheet.gemspec    2019-02-26 13:02:55 +0900 (4c042d4)
@@ -1,6 +1,6 @@
 # -*- ruby -*-
 #
-# Copyright (C) 2014-2017  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -21,8 +21,8 @@ clean_white_space = lambda do |entry|
 end
 
 Gem::Specification.new do |spec|
-  spec.name = "chupa-text-decomposer-libreoffice"
-  spec.version = "1.0.2"
+  spec.name = "chupa-text-decomposer-libreoffice-word"
+  spec.version = "1.0.0"
   spec.homepage = "https://github.com/ranguba/chupa-text-decomposer-libreoffice"
   spec.authors = ["Kouhei Sutou"]
   spec.email = ["kou****@clear*****"]
@@ -39,10 +39,7 @@ Gem::Specification.new do |spec|
   spec.files += Dir.glob("doc/text/*")
   spec.files += Dir.glob("test/**/*")
 
-  spec.requirements << "LibreOffice"
-
-  spec.add_runtime_dependency("chupa-text", ">= 1.0.9")
-  spec.add_runtime_dependency("chupa-text-decomposer-pdf")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-general")
 
   spec.add_development_dependency("bundler")
   spec.add_development_dependency("rake")

  Added: chupa-text-decomposer-libreoffice-opendocument-spreadsheet/doc/text/news.md (+5 -0) 100644
===================================================================
--- /dev/null
+++ chupa-text-decomposer-libreoffice-opendocument-spreadsheet/doc/text/news.md    2019-02-26 13:02:55 +0900 (6c45d91)
@@ -0,0 +1,5 @@
+# News
+
+## 1.0.0: 2019-02-26
+
+The first release!!!

  Copied: chupa-text-decomposer-libreoffice-opendocument-spreadsheet/lib/chupa-text/decomposers/libreoffice-opendocument-spreadsheet.rb (+16 -14) 58%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-opendocument-spreadsheet/lib/chupa-text/decomposers/libreoffice-opendocument-spreadsheet.rb    2019-02-26 13:02:55 +0900 (23ca0a3)
@@ -1,6 +1,4 @@
-# -*- mode: ruby; coding: utf-8 -*-
-#
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -16,19 +14,23 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-source "https://rubygems.org/"
+require "chupa-text/decomposers/libreoffice-general"
 
-gemspec
+module ChupaText
+  module Decomposers
+    class LibreOfficeOpenDocumentSpreadsheet < LibreOfficeGeneral
+      registry.register("libreoffice-opendocument-spreadsheet", self)
 
-base_dir = File.dirname(__FILE__)
+      def initialize(options)
+        super
+        @extension = "ods"
+        @mime_type = "application/vnd.oasis.opendocument.spreadsheet"
+      end
 
-local_gem_names = [
-  "chupa-text",
-  "chupa-text-decomposer-pdf",
-]
-local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
-  if File.exist?(local_dir)
-    gem name, :path => local_dir
+      private
+      def log_tag
+        super + "[opendocument-spreadsheet]"
+      end
+    end
   end
 end

  Copied: chupa-text-decomposer-libreoffice-opendocument-spreadsheet/test/fixture/attributes.ods (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-spreadsheet/test/fixture/multi-sheets.ods (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-spreadsheet/test/fixture/one-sheet.ods (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-spreadsheet/test/run-test.rb (+1 -1) 92%
===================================================================
--- test/run-test.rb    2018-07-18 09:19:51 +0900 (4ebafe2)
+++ chupa-text-decomposer-libreoffice-opendocument-spreadsheet/test/run-test.rb    2019-02-26 13:02:55 +0900 (6ebf1c3)
@@ -26,6 +26,6 @@ require "chupa-text"
 
 ChupaText::Decomposers.load
 
-require_relative "helper"
+require_relative "../../chupa-text-decomposer-libreoffice-general/test/helper"
 
 exit(Test::Unit::AutoRunner.run(true))

  Copied: chupa-text-decomposer-libreoffice-opendocument-spreadsheet/test/test-ods.rb (+4 -7) 93%
===================================================================
--- test/test-ods.rb    2018-07-18 09:19:51 +0900 (ea41771)
+++ chupa-text-decomposer-libreoffice-opendocument-spreadsheet/test/test-ods.rb    2019-02-26 13:02:55 +0900 (b66f1bb)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -14,17 +14,14 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-require "pathname"
-
 class TestOds < Test::Unit::TestCase
-  include FixtureHelper
-
   def setup
-    setup_decomposer
+    @decomposer = ChupaText::Decomposers::LibreOfficeOpenDocumentSpreadsheet.new({})
   end
 
   def fixture_path(*components)
-    super("ods", *components)
+    base_path = Pathname(__dir__) + "fixture"
+    base_path.join(*components)
   end
 
   sub_test_case("target?") do

  Copied: chupa-text-decomposer-libreoffice-opendocument-text/.gitignore (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-text/.yardopts (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-text/Gemfile (+5 -2) 82%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-opendocument-text/Gemfile    2019-02-26 13:02:55 +0900 (4c7a904)
@@ -1,6 +1,6 @@
 # -*- mode: ruby; coding: utf-8 -*-
 #
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -22,12 +22,15 @@ gemspec
 
 base_dir = File.dirname(__FILE__)
 
+general = "chupa-text-decomposer-libreoffice-general"
+gem general, path: File.join(base_dir, "..", general)
+
 local_gem_names = [
   "chupa-text",
   "chupa-text-decomposer-pdf",
 ]
 local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
+  local_dir = File.join(base_dir, "..", "..", name)
   if File.exist?(local_dir)
     gem name, :path => local_dir
   end

  Copied: chupa-text-decomposer-libreoffice-opendocument-text/LICENSE.txt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-text/README.md (+8 -9) 52%
===================================================================
--- README.md    2018-07-18 09:19:51 +0900 (c636e67)
+++ chupa-text-decomposer-libreoffice-opendocument-text/README.md    2019-02-26 13:02:55 +0900 (ee58bcd)
@@ -2,26 +2,25 @@
 
 ## Name
 
-chupa-text-decomposer-libreoffice
+chupa-text-decomposer-libreoffice-opendocument-text
 
 ## Description
 
-This is a ChupaText decomposer plugin for to extract text and
-meta-data from office files such as Microsoft Word file, Microsoft
-Excel file and OpenDocument Format file. It uses
-[LibreOffice](https://www.libreoffice.org/).
+This is a ChupaText decomposer plugin to extract text and meta-data
+from OpenDocument Text file format file (`.odt` file). This plugin
+uses [LibreOffice](https://www.libreoffice.org/).
 
-You can use `libreoffice` decomposer.
+You can use `libreoffice-opendocument-text` decomposer.
 
 It depends on `pdf` decomposer. Because it converts a office file to
 PDF file and extracts text and meta-data by `pdf` decomposer.
 
 ## Install
 
-Install chupa-text-decomposer-libreoffice gem:
+Install chupa-text-decomposer-libreoffice-opendocument-text gem:
 
 ```
-% gem install chupa-text-decomposer-libreoffice
+% gem install chupa-text-decomposer-libreoffice-opendocument-text
 ```
 
 Install
@@ -30,7 +29,7 @@ Install
 Now, you can extract text and meta-data from office files:
 
 ```
-% chupa-text document.doc
+% chupa-text document.odt
 ```
 
 ## Author

  Copied: chupa-text-decomposer-libreoffice-opendocument-text/Rakefile (+2 -2) 95%
===================================================================
--- Rakefile    2018-07-18 09:19:51 +0900 (7434781)
+++ chupa-text-decomposer-libreoffice-opendocument-text/Rakefile    2019-02-26 13:02:55 +0900 (f6510d1)
@@ -24,11 +24,11 @@ require "rubygems"
 require "bundler/gem_helper"
 require "packnga"
 
-base_dir = Pathname(__FILE__).dirname
+base_dir = Pathname(__dir__)
 
 helper = Bundler::GemHelper.new(base_dir.to_s)
 def helper.version_tag
-  version
+  "#{name}-#{version}"
 end
 
 helper.install

  Copied: chupa-text-decomposer-libreoffice-opendocument-text/chupa-text-decomposer-libreoffice-opendocument-text.gemspec (+4 -7) 86%
===================================================================
--- chupa-text-decomposer-libreoffice.gemspec    2018-07-18 09:19:51 +0900 (f6ed86d)
+++ chupa-text-decomposer-libreoffice-opendocument-text/chupa-text-decomposer-libreoffice-opendocument-text.gemspec    2019-02-26 13:02:55 +0900 (87d2323)
@@ -1,6 +1,6 @@
 # -*- ruby -*-
 #
-# Copyright (C) 2014-2017  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -21,8 +21,8 @@ clean_white_space = lambda do |entry|
 end
 
 Gem::Specification.new do |spec|
-  spec.name = "chupa-text-decomposer-libreoffice"
-  spec.version = "1.0.2"
+  spec.name = "chupa-text-decomposer-libreoffice-opendocument-text"
+  spec.version = "1.0.0"
   spec.homepage = "https://github.com/ranguba/chupa-text-decomposer-libreoffice"
   spec.authors = ["Kouhei Sutou"]
   spec.email = ["kou****@clear*****"]
@@ -39,10 +39,7 @@ Gem::Specification.new do |spec|
   spec.files += Dir.glob("doc/text/*")
   spec.files += Dir.glob("test/**/*")
 
-  spec.requirements << "LibreOffice"
-
-  spec.add_runtime_dependency("chupa-text", ">= 1.0.9")
-  spec.add_runtime_dependency("chupa-text-decomposer-pdf")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-general")
 
   spec.add_development_dependency("bundler")
   spec.add_development_dependency("rake")

  Added: chupa-text-decomposer-libreoffice-opendocument-text/doc/text/news.md (+5 -0) 100644
===================================================================
--- /dev/null
+++ chupa-text-decomposer-libreoffice-opendocument-text/doc/text/news.md    2019-02-26 13:02:55 +0900 (6c45d91)
@@ -0,0 +1,5 @@
+# News
+
+## 1.0.0: 2019-02-26
+
+The first release!!!

  Copied: chupa-text-decomposer-libreoffice-opendocument-text/lib/chupa-text/decomposers/libreoffice-opendocument-text.rb (+16 -14) 59%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-opendocument-text/lib/chupa-text/decomposers/libreoffice-opendocument-text.rb    2019-02-26 13:02:55 +0900 (ba737d8)
@@ -1,6 +1,4 @@
-# -*- mode: ruby; coding: utf-8 -*-
-#
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -16,19 +14,23 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-source "https://rubygems.org/"
+require "chupa-text/decomposers/libreoffice-general"
 
-gemspec
+module ChupaText
+  module Decomposers
+    class LibreOfficeOpenDocumentText < LibreOfficeGeneral
+      registry.register("libreoffice-opendocument-text", self)
 
-base_dir = File.dirname(__FILE__)
+      def initialize(options)
+        super
+        @extension = "odt"
+        @mime_type = "application/vnd.oasis.opendocument.text"
+      end
 
-local_gem_names = [
-  "chupa-text",
-  "chupa-text-decomposer-pdf",
-]
-local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
-  if File.exist?(local_dir)
-    gem name, :path => local_dir
+      private
+      def log_tag
+        super + "[opendocument-text]"
+      end
+    end
   end
 end

  Copied: chupa-text-decomposer-libreoffice-opendocument-text/test/fixture/attributes.odt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-text/test/fixture/multi-pages.odt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-text/test/fixture/one-page.odt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-opendocument-text/test/run-test.rb (+1 -1) 92%
===================================================================
--- test/run-test.rb    2018-07-18 09:19:51 +0900 (4ebafe2)
+++ chupa-text-decomposer-libreoffice-opendocument-text/test/run-test.rb    2019-02-26 13:02:55 +0900 (6ebf1c3)
@@ -26,6 +26,6 @@ require "chupa-text"
 
 ChupaText::Decomposers.load
 
-require_relative "helper"
+require_relative "../../chupa-text-decomposer-libreoffice-general/test/helper"
 
 exit(Test::Unit::AutoRunner.run(true))

  Copied: chupa-text-decomposer-libreoffice-opendocument-text/test/test-odt.rb (+4 -7) 93%
===================================================================
--- test/test-odt.rb    2018-07-18 09:19:51 +0900 (5e98d76)
+++ chupa-text-decomposer-libreoffice-opendocument-text/test/test-odt.rb    2019-02-26 13:02:55 +0900 (3d3d3d1)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -14,17 +14,14 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-require "pathname"
-
 class TestOdt < Test::Unit::TestCase
-  include FixtureHelper
-
   def setup
-    setup_decomposer
+    @decomposer = ChupaText::Decomposers::LibreOfficeOpenDocumentText.new({})
   end
 
   def fixture_path(*components)
-    super("odt", *components)
+    base_path = Pathname(__dir__) + "fixture"
+    base_path.join(*components)
   end
 
   sub_test_case("target?") do

  Copied: chupa-text-decomposer-libreoffice-powerpoint/.gitignore (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-powerpoint/.yardopts (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-powerpoint/Gemfile (+5 -2) 82%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-powerpoint/Gemfile    2019-02-26 13:02:55 +0900 (4c7a904)
@@ -1,6 +1,6 @@
 # -*- mode: ruby; coding: utf-8 -*-
 #
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -22,12 +22,15 @@ gemspec
 
 base_dir = File.dirname(__FILE__)
 
+general = "chupa-text-decomposer-libreoffice-general"
+gem general, path: File.join(base_dir, "..", general)
+
 local_gem_names = [
   "chupa-text",
   "chupa-text-decomposer-pdf",
 ]
 local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
+  local_dir = File.join(base_dir, "..", "..", name)
   if File.exist?(local_dir)
     gem name, :path => local_dir
   end

  Copied: chupa-text-decomposer-libreoffice-powerpoint/LICENSE.txt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-powerpoint/README.md (+8 -9) 54%
===================================================================
--- README.md    2018-07-18 09:19:51 +0900 (c636e67)
+++ chupa-text-decomposer-libreoffice-powerpoint/README.md    2019-02-26 13:02:55 +0900 (2622192)
@@ -2,26 +2,25 @@
 
 ## Name
 
-chupa-text-decomposer-libreoffice
+chupa-text-decomposer-libreoffice-powerpoint
 
 ## Description
 
-This is a ChupaText decomposer plugin for to extract text and
-meta-data from office files such as Microsoft Word file, Microsoft
-Excel file and OpenDocument Format file. It uses
-[LibreOffice](https://www.libreoffice.org/).
+This is a ChupaText decomposer plugin to extract text and meta-data
+from Microsoft PowerPoint binary file format file (`.ppt` file). This
+plugin uses [LibreOffice](https://www.libreoffice.org/).
 
-You can use `libreoffice` decomposer.
+You can use `libreoffice-powerpoint` decomposer.
 
 It depends on `pdf` decomposer. Because it converts a office file to
 PDF file and extracts text and meta-data by `pdf` decomposer.
 
 ## Install
 
-Install chupa-text-decomposer-libreoffice gem:
+Install chupa-text-decomposer-libreoffice-powerpoint gem:
 
 ```
-% gem install chupa-text-decomposer-libreoffice
+% gem install chupa-text-decomposer-libreoffice-powerpoint
 ```
 
 Install
@@ -30,7 +29,7 @@ Install
 Now, you can extract text and meta-data from office files:
 
 ```
-% chupa-text document.doc
+% chupa-text slide.ppt
 ```
 
 ## Author

  Copied: chupa-text-decomposer-libreoffice-powerpoint/Rakefile (+2 -2) 95%
===================================================================
--- Rakefile    2018-07-18 09:19:51 +0900 (7434781)
+++ chupa-text-decomposer-libreoffice-powerpoint/Rakefile    2019-02-26 13:02:55 +0900 (f6510d1)
@@ -24,11 +24,11 @@ require "rubygems"
 require "bundler/gem_helper"
 require "packnga"
 
-base_dir = Pathname(__FILE__).dirname
+base_dir = Pathname(__dir__)
 
 helper = Bundler::GemHelper.new(base_dir.to_s)
 def helper.version_tag
-  version
+  "#{name}-#{version}"
 end
 
 helper.install

  Copied: chupa-text-decomposer-libreoffice-powerpoint/chupa-text-decomposer-libreoffice-powerpoint.gemspec (+4 -7) 86%
===================================================================
--- chupa-text-decomposer-libreoffice.gemspec    2018-07-18 09:19:51 +0900 (f6ed86d)
+++ chupa-text-decomposer-libreoffice-powerpoint/chupa-text-decomposer-libreoffice-powerpoint.gemspec    2019-02-26 13:02:55 +0900 (bd93da7)
@@ -1,6 +1,6 @@
 # -*- ruby -*-
 #
-# Copyright (C) 2014-2017  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -21,8 +21,8 @@ clean_white_space = lambda do |entry|
 end
 
 Gem::Specification.new do |spec|
-  spec.name = "chupa-text-decomposer-libreoffice"
-  spec.version = "1.0.2"
+  spec.name = "chupa-text-decomposer-libreoffice-powerpoint"
+  spec.version = "1.0.0"
   spec.homepage = "https://github.com/ranguba/chupa-text-decomposer-libreoffice"
   spec.authors = ["Kouhei Sutou"]
   spec.email = ["kou****@clear*****"]
@@ -39,10 +39,7 @@ Gem::Specification.new do |spec|
   spec.files += Dir.glob("doc/text/*")
   spec.files += Dir.glob("test/**/*")
 
-  spec.requirements << "LibreOffice"
-
-  spec.add_runtime_dependency("chupa-text", ">= 1.0.9")
-  spec.add_runtime_dependency("chupa-text-decomposer-pdf")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-general")
 
   spec.add_development_dependency("bundler")
   spec.add_development_dependency("rake")

  Added: chupa-text-decomposer-libreoffice-powerpoint/doc/text/news.md (+5 -0) 100644
===================================================================
--- /dev/null
+++ chupa-text-decomposer-libreoffice-powerpoint/doc/text/news.md    2019-02-26 13:02:55 +0900 (6c45d91)
@@ -0,0 +1,5 @@
+# News
+
+## 1.0.0: 2019-02-26
+
+The first release!!!

  Copied: chupa-text-decomposer-libreoffice-powerpoint/lib/chupa-text/decomposers/libreoffice-powerpoint.rb (+16 -14) 61%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-powerpoint/lib/chupa-text/decomposers/libreoffice-powerpoint.rb    2019-02-26 13:02:55 +0900 (b9dc785)
@@ -1,6 +1,4 @@
-# -*- mode: ruby; coding: utf-8 -*-
-#
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -16,19 +14,23 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-source "https://rubygems.org/"
+require "chupa-text/decomposers/libreoffice-general"
 
-gemspec
+module ChupaText
+  module Decomposers
+    class LibreOfficePowerPoint < LibreOfficeGeneral
+      registry.register("libreoffice-powerpoint", self)
 
-base_dir = File.dirname(__FILE__)
+      def initialize(options)
+        super
+        @extension = "ppt"
+        @mime_type = "application/vnd.ms-powerpoint"
+      end
 
-local_gem_names = [
-  "chupa-text",
-  "chupa-text-decomposer-pdf",
-]
-local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
-  if File.exist?(local_dir)
-    gem name, :path => local_dir
+      private
+      def log_tag
+        super + "[powerpoint]"
+      end
+    end
   end
 end

  Copied: chupa-text-decomposer-libreoffice-powerpoint/test/fixture/attributes.ppt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-powerpoint/test/fixture/multi-slides.ppt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-powerpoint/test/fixture/one-slide.ppt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-powerpoint/test/run-test.rb (+1 -1) 92%
===================================================================
--- test/run-test.rb    2018-07-18 09:19:51 +0900 (4ebafe2)
+++ chupa-text-decomposer-libreoffice-powerpoint/test/run-test.rb    2019-02-26 13:02:55 +0900 (6ebf1c3)
@@ -26,6 +26,6 @@ require "chupa-text"
 
 ChupaText::Decomposers.load
 
-require_relative "helper"
+require_relative "../../chupa-text-decomposer-libreoffice-general/test/helper"
 
 exit(Test::Unit::AutoRunner.run(true))

  Copied: chupa-text-decomposer-libreoffice-powerpoint/test/test-ppt.rb (+4 -9) 93%
===================================================================
--- test/test-ppt.rb    2018-07-18 09:19:51 +0900 (453fc4e)
+++ chupa-text-decomposer-libreoffice-powerpoint/test/test-ppt.rb    2019-02-26 13:02:55 +0900 (3f4be2a)
@@ -1,6 +1,4 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -16,17 +14,14 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-require "pathname"
-
 class TestPpt < Test::Unit::TestCase
-  include FixtureHelper
-
   def setup
-    setup_decomposer
+    @decomposer = ChupaText::Decomposers::LibreOfficePowerPoint.new({})
   end
 
   def fixture_path(*components)
-    super("ppt", *components)
+    base_path = Pathname(__dir__) + "fixture"
+    base_path.join(*components)
   end
 
   sub_test_case("target?") do

  Copied: chupa-text-decomposer-libreoffice-word/.gitignore (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-word/.yardopts (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-word/Gemfile (+5 -2) 82%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-word/Gemfile    2019-02-26 13:02:55 +0900 (4c7a904)
@@ -1,6 +1,6 @@
 # -*- mode: ruby; coding: utf-8 -*-
 #
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -22,12 +22,15 @@ gemspec
 
 base_dir = File.dirname(__FILE__)
 
+general = "chupa-text-decomposer-libreoffice-general"
+gem general, path: File.join(base_dir, "..", general)
+
 local_gem_names = [
   "chupa-text",
   "chupa-text-decomposer-pdf",
 ]
 local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
+  local_dir = File.join(base_dir, "..", "..", name)
   if File.exist?(local_dir)
     gem name, :path => local_dir
   end

  Copied: chupa-text-decomposer-libreoffice-word/LICENSE.txt (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-word/README.md (+7 -8) 57%
===================================================================
--- README.md    2018-07-18 09:19:51 +0900 (c636e67)
+++ chupa-text-decomposer-libreoffice-word/README.md    2019-02-26 13:02:55 +0900 (3f39a79)
@@ -2,26 +2,25 @@
 
 ## Name
 
-chupa-text-decomposer-libreoffice
+chupa-text-decomposer-libreoffice-word
 
 ## Description
 
-This is a ChupaText decomposer plugin for to extract text and
-meta-data from office files such as Microsoft Word file, Microsoft
-Excel file and OpenDocument Format file. It uses
-[LibreOffice](https://www.libreoffice.org/).
+This is a ChupaText decomposer plugin to extract text and meta-data
+from Microsoft Word binary file format file (`.doc` file). This plugin
+uses [LibreOffice](https://www.libreoffice.org/).
 
-You can use `libreoffice` decomposer.
+You can use `libreoffice-word` decomposer.
 
 It depends on `pdf` decomposer. Because it converts a office file to
 PDF file and extracts text and meta-data by `pdf` decomposer.
 
 ## Install
 
-Install chupa-text-decomposer-libreoffice gem:
+Install chupa-text-decomposer-libreoffice-word gem:
 
 ```
-% gem install chupa-text-decomposer-libreoffice
+% gem install chupa-text-decomposer-libreoffice-word
 ```
 
 Install

  Copied: chupa-text-decomposer-libreoffice-word/Rakefile (+2 -2) 95%
===================================================================
--- Rakefile    2018-07-18 09:19:51 +0900 (7434781)
+++ chupa-text-decomposer-libreoffice-word/Rakefile    2019-02-26 13:02:55 +0900 (f6510d1)
@@ -24,11 +24,11 @@ require "rubygems"
 require "bundler/gem_helper"
 require "packnga"
 
-base_dir = Pathname(__FILE__).dirname
+base_dir = Pathname(__dir__)
 
 helper = Bundler::GemHelper.new(base_dir.to_s)
 def helper.version_tag
-  version
+  "#{name}-#{version}"
 end
 
 helper.install

  Copied: chupa-text-decomposer-libreoffice-word/chupa-text-decomposer-libreoffice-word.gemspec (+4 -7) 86%
===================================================================
--- chupa-text-decomposer-libreoffice.gemspec    2018-07-18 09:19:51 +0900 (f6ed86d)
+++ chupa-text-decomposer-libreoffice-word/chupa-text-decomposer-libreoffice-word.gemspec    2019-02-26 13:02:55 +0900 (4c042d4)
@@ -1,6 +1,6 @@
 # -*- ruby -*-
 #
-# Copyright (C) 2014-2017  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -21,8 +21,8 @@ clean_white_space = lambda do |entry|
 end
 
 Gem::Specification.new do |spec|
-  spec.name = "chupa-text-decomposer-libreoffice"
-  spec.version = "1.0.2"
+  spec.name = "chupa-text-decomposer-libreoffice-word"
+  spec.version = "1.0.0"
   spec.homepage = "https://github.com/ranguba/chupa-text-decomposer-libreoffice"
   spec.authors = ["Kouhei Sutou"]
   spec.email = ["kou****@clear*****"]
@@ -39,10 +39,7 @@ Gem::Specification.new do |spec|
   spec.files += Dir.glob("doc/text/*")
   spec.files += Dir.glob("test/**/*")
 
-  spec.requirements << "LibreOffice"
-
-  spec.add_runtime_dependency("chupa-text", ">= 1.0.9")
-  spec.add_runtime_dependency("chupa-text-decomposer-pdf")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-general")
 
   spec.add_development_dependency("bundler")
   spec.add_development_dependency("rake")

  Added: chupa-text-decomposer-libreoffice-word/doc/text/news.md (+5 -0) 100644
===================================================================
--- /dev/null
+++ chupa-text-decomposer-libreoffice-word/doc/text/news.md    2019-02-26 13:02:55 +0900 (6c45d91)
@@ -0,0 +1,5 @@
+# News
+
+## 1.0.0: 2019-02-26
+
+The first release!!!

  Copied: chupa-text-decomposer-libreoffice-word/lib/chupa-text/decomposers/libreoffice-word.rb (+16 -14) 62%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice-word/lib/chupa-text/decomposers/libreoffice-word.rb    2019-02-26 13:02:55 +0900 (9d0a969)
@@ -1,6 +1,4 @@
-# -*- mode: ruby; coding: utf-8 -*-
-#
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -16,19 +14,23 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-source "https://rubygems.org/"
+require "chupa-text/decomposers/libreoffice-general"
 
-gemspec
+module ChupaText
+  module Decomposers
+    class LibreOfficeWord < LibreOfficeGeneral
+      registry.register("libreoffice-word", self)
 
-base_dir = File.dirname(__FILE__)
+      def initialize(options)
+        super
+        @extension = "doc"
+        @mime_type = "application/msword"
+      end
 
-local_gem_names = [
-  "chupa-text",
-  "chupa-text-decomposer-pdf",
-]
-local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
-  if File.exist?(local_dir)
-    gem name, :path => local_dir
+      private
+      def log_tag
+        super + "[word]"
+      end
+    end
   end
 end

  Copied: chupa-text-decomposer-libreoffice-word/test/fixture/attributes.doc (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-word/test/fixture/multi-pages.doc (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-word/test/fixture/one-page.doc (+0 -0) 100%
===================================================================

  Copied: chupa-text-decomposer-libreoffice-word/test/run-test.rb (+1 -1) 92%
===================================================================
--- test/run-test.rb    2018-07-18 09:19:51 +0900 (4ebafe2)
+++ chupa-text-decomposer-libreoffice-word/test/run-test.rb    2019-02-26 13:02:55 +0900 (6ebf1c3)
@@ -26,6 +26,6 @@ require "chupa-text"
 
 ChupaText::Decomposers.load
 
-require_relative "helper"
+require_relative "../../chupa-text-decomposer-libreoffice-general/test/helper"
 
 exit(Test::Unit::AutoRunner.run(true))

  Copied: chupa-text-decomposer-libreoffice-word/test/test-doc.rb (+4 -7) 93%
===================================================================
--- test/test-doc.rb    2018-07-18 09:19:51 +0900 (b51b052)
+++ chupa-text-decomposer-libreoffice-word/test/test-doc.rb    2019-02-26 13:02:55 +0900 (b5c8d01)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -14,17 +14,14 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-require "pathname"
-
 class TestDoc < Test::Unit::TestCase
-  include FixtureHelper
-
   def setup
-    setup_decomposer
+    @decomposer = ChupaText::Decomposers::LibreOfficeWord.new({})
   end
 
   def fixture_path(*components)
-    super("doc", *components)
+    base_path = Pathname(__dir__) + "fixture"
+    base_path.join(*components)
   end
 
   sub_test_case("target?") do

  Renamed: chupa-text-decomposer-libreoffice/.gitignore (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/.yardopts (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/Gemfile (+2 -2) 89%
===================================================================
--- Gemfile    2018-07-18 09:19:51 +0900 (9cefad1)
+++ chupa-text-decomposer-libreoffice/Gemfile    2019-02-26 13:02:55 +0900 (9ab1bf4)
@@ -1,6 +1,6 @@
 # -*- mode: ruby; coding: utf-8 -*-
 #
-# Copyright (C) 2014  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -27,7 +27,7 @@ local_gem_names = [
   "chupa-text-decomposer-pdf",
 ]
 local_gem_names.each do |name|
-  local_dir = File.join(base_dir, "..", name)
+  local_dir = File.join(base_dir, "..", "..", name)
   if File.exist?(local_dir)
     gem name, :path => local_dir
   end

  Renamed: chupa-text-decomposer-libreoffice/LICENSE.txt (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/README.md (+2 -2) 87%
===================================================================
--- README.md    2018-07-18 09:19:51 +0900 (c636e67)
+++ chupa-text-decomposer-libreoffice/README.md    2019-02-26 13:02:55 +0900 (5178a8e)
@@ -6,9 +6,9 @@ chupa-text-decomposer-libreoffice
 
 ## Description
 
-This is a ChupaText decomposer plugin for to extract text and
+This is a meta ChupaText decomposer plugin to extract text and
 meta-data from office files such as Microsoft Word file, Microsoft
-Excel file and OpenDocument Format file. It uses
+Excel file and OpenDocument Format file. This uses
 [LibreOffice](https://www.libreoffice.org/).
 
 You can use `libreoffice` decomposer.

  Copied: chupa-text-decomposer-libreoffice/Rakefile (+3 -3) 91%
===================================================================
--- Rakefile    2018-07-18 09:19:51 +0900 (7434781)
+++ chupa-text-decomposer-libreoffice/Rakefile    2019-02-26 13:02:55 +0900 (c4c361f)
@@ -1,6 +1,6 @@
 # -*- ruby -*-
 #
-# Copyright (C) 2014-2017  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -24,11 +24,11 @@ require "rubygems"
 require "bundler/gem_helper"
 require "packnga"
 
-base_dir = Pathname(__FILE__).dirname
+base_dir = Pathname(__dir__)
 
 helper = Bundler::GemHelper.new(base_dir.to_s)
 def helper.version_tag
-  version
+  "#{name}-#{version}"
 end
 
 helper.install

  Renamed: chupa-text-decomposer-libreoffice/chupa-text-decomposer-libreoffice.gemspec (+11 -6) 68%
===================================================================
--- chupa-text-decomposer-libreoffice.gemspec    2018-07-18 09:19:51 +0900 (f6ed86d)
+++ chupa-text-decomposer-libreoffice/chupa-text-decomposer-libreoffice.gemspec    2019-02-26 13:02:55 +0900 (1797c99)
@@ -1,6 +1,6 @@
 # -*- ruby -*-
 #
-# Copyright (C) 2014-2017  Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2014-2019  Kouhei Sutou <kou****@clear*****>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -22,7 +22,7 @@ end
 
 Gem::Specification.new do |spec|
   spec.name = "chupa-text-decomposer-libreoffice"
-  spec.version = "1.0.2"
+  spec.version = "1.0.3"
   spec.homepage = "https://github.com/ranguba/chupa-text-decomposer-libreoffice"
   spec.authors = ["Kouhei Sutou"]
   spec.email = ["kou****@clear*****"]
@@ -39,10 +39,15 @@ Gem::Specification.new do |spec|
   spec.files += Dir.glob("doc/text/*")
   spec.files += Dir.glob("test/**/*")
 
-  spec.requirements << "LibreOffice"
-
-  spec.add_runtime_dependency("chupa-text", ">= 1.0.9")
-  spec.add_runtime_dependency("chupa-text-decomposer-pdf")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-opendocument-text")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-opendocument-spreadsheet")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-opendocument-presentation")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-word")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-excel")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-powerpoint")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-office-open-xml-document")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-office-open-xml-workbook")
+  spec.add_runtime_dependency("chupa-text-decomposer-libreoffice-office-open-xml-presentation")
 
   spec.add_development_dependency("bundler")
   spec.add_development_dependency("rake")

  Renamed: chupa-text-decomposer-libreoffice/doc/text/news.md (+6 -0) 83%
===================================================================
--- doc/text/news.md    2018-07-18 09:19:51 +0900 (22ee69f)
+++ chupa-text-decomposer-libreoffice/doc/text/news.md    2019-02-26 13:02:55 +0900 (ae44acf)
@@ -1,5 +1,11 @@
 # News
 
+## 1.0.3: 2019-02-26
+
+### Improvements
+
+  * Split decomposers.
+
 ## 1.0.2: 2018-07-18
 
 ### Improvements

  Renamed: chupa-text-decomposer-libreoffice/lib/chupa-text/decomposers/libreoffice.rb (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/doc/attributes.doc (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/doc/multi-pages.doc (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/doc/one-page.doc (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/docx/attributes.docx (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/docx/multi-pages.docx (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/docx/one-page.docx (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/odp/attributes.odp (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/odp/multi-slides.odp (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/odp/one-slide.odp (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/ods/attributes.ods (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/ods/multi-sheets.ods (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/ods/one-sheet.ods (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/odt/attributes.odt (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/odt/multi-pages.odt (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/odt/one-page.odt (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/ppt/attributes.ppt (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/ppt/multi-slides.ppt (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/ppt/one-slide.ppt (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/pptx/attributes.pptx (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/pptx/multi-slides.pptx (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/pptx/one-slide.pptx (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/xls/attributes.xls (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/xls/multi-sheets.xls (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/xls/one-sheet.xls (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/xlsx/attributes.xlsx (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/xlsx/multi-sheets.xlsx (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/fixture/xlsx/one-sheet.xlsx (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/helper.rb (+1 -1) 96%
===================================================================
--- test/helper.rb    2018-07-18 09:19:51 +0900 (3da158d)
+++ chupa-text-decomposer-libreoffice/test/helper.rb    2019-02-26 13:02:55 +0900 (f2ce1ab)
@@ -20,7 +20,7 @@ module FixtureHelper
   end
 
   def fixture_path(*components)
-    base_path = Pathname(__FILE__).dirname + "fixture"
+    base_path = Pathname(__dir__) + "fixture"
     base_path.join(*components)
   end
 end

  Renamed: chupa-text-decomposer-libreoffice/test/run-test.rb (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/test-doc.rb (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/test-docx.rb (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/test-odp.rb (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/test-ods.rb (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/test-odt.rb (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/test-ppt.rb (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/test-pptx.rb (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/test-xls.rb (+0 -0) 100%
===================================================================

  Renamed: chupa-text-decomposer-libreoffice/test/test-xlsx.rb (+0 -0) 100%
===================================================================


More information about the Groonga-commit mailing list
Zurück zum Archiv-Index