Daijiro MORI
null+****@clear*****
Tue Apr 23 13:08:15 JST 2013
Daijiro MORI 2013-04-23 13:08:15 +0900 (Tue, 23 Apr 2013) New Revision: 697b1f70ce3f55071c1f220a58ab8fd1ea78d452 https://github.com/groonga/fluent-plugin-droonga/commit/697b1f70ce3f55071c1f220a58ab8fd1ea78d452 Message: Pass the rest of tag elements as "arguments" when the type comes from the tag. Modified files: lib/droonga/worker.rb Modified: lib/droonga/worker.rb (+2 -1) =================================================================== --- lib/droonga/worker.rb 2013-04-21 18:36:16 +0900 (988441f) +++ lib/droonga/worker.rb 2013-04-23 13:08:15 +0900 (7371387) @@ -129,12 +129,13 @@ module Droonga def parse_message(message) @message = message tag, time, record = message - prefix, type = tag.split(/\./) + prefix, type, *arguments = tag.split(/\./) if type.nil? || type.empty? || type == 'message' @envelope = record else @envelope = { "type" => type, + "arguments" => arguments, "body" => record } end -------------- next part -------------- HTML����������������������������... Download