Masafumi Yokoyama
null+****@clear*****
Mon Feb 17 21:15:02 JST 2014
Masafumi Yokoyama 2014-02-17 21:15:02 +0900 (Mon, 17 Feb 2014) New Revision: 5bd8d6e3d8aef087d3deae3227bafa2fd75a1da5 https://github.com/ranguba/chupa-text-decomposer-libreoffice/commit/5bd8d6e3d8aef087d3deae3227bafa2fd75a1da5 Merged e815217: Merge pull request #1 from myokoym/expand-candidate-for-windows Message: Expand candidate for Windows Because usually don't add LibreOffice executable file (soffice.exe) to the environment variable in Windows. Modified files: lib/chupa-text/decomposers/libreoffice.rb Modified: lib/chupa-text/decomposers/libreoffice.rb (+2 -1) =================================================================== --- lib/chupa-text/decomposers/libreoffice.rb 2014-02-17 00:03:23 +0900 (d254451) +++ lib/chupa-text/decomposers/libreoffice.rb 2014-02-17 21:15:02 +0900 (b98f1e1) @@ -82,7 +82,8 @@ module ChupaText end def expand_candidate(candidate) - Dir.glob("/opt/libreoffice*/program/#{candidate}").first + Dir.glob("/opt/libreoffice*/program/#{candidate}").first or + Dir.glob("C:/Program Files*/libreoffice*/program/#{candidate}.exe").first end def convert_to_pdf(data) -------------- next part -------------- HTML����������������������������... 下載