[Groonga-commit] ranguba/chupa-text-decomposer-libreoffice at 3d1e609 [master] Use more meaningful name

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jul 11 15:38:34 JST 2017


Kouhei Sutou	2017-07-11 15:38:34 +0900 (Tue, 11 Jul 2017)

  New Revision: 3d1e609f456e448027f8c53b33a6269bc6f7e8d7
  https://github.com/ranguba/chupa-text-decomposer-libreoffice/commit/3d1e609f456e448027f8c53b33a6269bc6f7e8d7

  Message:
    Use more meaningful name

  Modified files:
    lib/chupa-text/decomposers/libreoffice.rb

  Modified: lib/chupa-text/decomposers/libreoffice.rb (+4 -4)
===================================================================
--- lib/chupa-text/decomposers/libreoffice.rb    2017-07-10 13:49:07 +0900 (dd4a575)
+++ lib/chupa-text/decomposers/libreoffice.rb    2017-07-11 15:38:34 +0900 (54a0595)
@@ -98,7 +98,7 @@ module ChupaText
       def convert_to_pdf(data)
         Dir.mktmpdir do |temporary_directory|
           output = Tempfile.new("chupa-text-decomposer-libreoffice-output")
-          error = Tempfile.new("chupa-text-decomposer-libreoffice-error")
+          error_output = Tempfile.new("chupa-text-decomposer-libreoffice-error")
           succeeded =****@comma*****("--headless",
                                    "--nologo",
                                    "--convert-to", "pdf",
@@ -107,7 +107,7 @@ module ChupaText
                                    {
                                      :spawn_options => {
                                        :out => output.path,
-                                       :err => error.path,
+                                       :err => error_output.path,
                                      },
                                    })
           unless succeeded
@@ -116,7 +116,7 @@ module ChupaText
               [
                 tag,
                 "output: <#{output.read}>",
-                "error: <#{error.read}>",
+                "error: <#{error_output.read}>",
               ].join("\n")
             end
             return nil
@@ -128,7 +128,7 @@ module ChupaText
               message = [
                 "#{tag}: LibreOffice may be running",
                 "output: <#{output.read}>",
-                "error: <#{error.read}>",
+                "error: <#{error_output.read}>",
               ].join("\n")
             end
             return nil
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index