[Groonga-commit] droonga/droonga-engine at 5f538e0 [master] Output list correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed May 14 16:05:23 JST 2014


YUKI Hiroshi	2014-05-14 16:05:23 +0900 (Wed, 14 May 2014)

  New Revision: 5f538e03370e1a041d59c66111e878a882764107
  https://github.com/droonga/droonga-engine/commit/5f538e03370e1a041d59c66111e878a882764107

  Message:
    Output list correctly

  Modified files:
    lib/droonga/serf_event_handler.rb

  Modified: lib/droonga/serf_event_handler.rb (+3 -1)
===================================================================
--- lib/droonga/serf_event_handler.rb    2014-05-14 16:00:49 +0900 (878c7d2)
+++ lib/droonga/serf_event_handler.rb    2014-05-14 16:05:23 +0900 (abcee99)
@@ -92,7 +92,9 @@ module Droonga
       file_contents = JSON.pretty_generate(nodes)
       if output_to_file?
         FileUtils.mkdir_p(list_file.parent.to_s)
-        list_file.write(file_contents)
+        File.open(list_file.to_s, "w") do |file
+          file.write(file_contents)
+        end
       else
         puts file_contents
       end
-------------- next part --------------
HTML����������������������������...
Download 



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