[Groonga-commit] droonga/droonga-engine at b159a63 [buffered-forward] Remove too many "." for filename

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Dec 18 19:15:06 JST 2014


YUKI Hiroshi	2014-12-18 19:15:06 +0900 (Thu, 18 Dec 2014)

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

  Message:
    Remove too many "." for filename

  Modified files:
    lib/droonga/forward_buffer.rb

  Modified: lib/droonga/forward_buffer.rb (+2 -2)
===================================================================
--- lib/droonga/forward_buffer.rb    2014-12-18 19:10:21 +0900 (8b1d479)
+++ lib/droonga/forward_buffer.rb    2014-12-18 19:15:06 +0900 (280671b)
@@ -67,7 +67,7 @@ module Droonga
     private
     def output(buffered_message_path)
       buffered_message_path = Pathname(buffered_message_path)
-      time_stamp = buffered_message_path.basename(".#{SUFFIX}")
+      time_stamp = buffered_message_path.basename(SUFFIX)
       file_contents = buffered_message_path.read
       buffered_message = JSON.parse(file_contents)
       @forwarder.output(buffered_message["receiver"],
@@ -79,7 +79,7 @@ module Droonga
     end
 
     def file_path(time_stamp=Time.now)
-      @data_directory + "#{time_stamp.iso8601(6)}.#{SUFFIX}"
+      @data_directory + "#{time_stamp.iso8601(6)}#{SUFFIX}"
     end
 
     def log_tag
-------------- next part --------------
HTML����������������������������...
다운로드 



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