YUKI Hiroshi
null+****@clear*****
Fri May 29 17:32:52 JST 2015
YUKI Hiroshi 2015-05-29 17:32:52 +0900 (Fri, 29 May 2015) New Revision: 37de4c8e130bdf68576cbe919595f62c8a210332 https://github.com/droonga/grn2drn/commit/37de4c8e130bdf68576cbe919595f62c8a210332 Message: Don't set nil as the replyTo field Modified files: lib/grn2drn/command-converter.rb Modified: lib/grn2drn/command-converter.rb (+3 -2) =================================================================== --- lib/grn2drn/command-converter.rb 2015-05-29 17:30:15 +0900 (57a78e7) +++ lib/grn2drn/command-converter.rb 2015-05-29 17:32:52 +0900 (c1ec6aa) @@ -62,14 +62,15 @@ module Grn2Drn @count += 1 end - { + message = { "id" => id, "date" => format_date(@options[:date] || Time.now), - "replyTo" => @options[:reply_to], "dataset" => @options[:dataset], "type" => type, "body" => body, } + message["replyTo"] = @options[:reply_to] if @options[:reply_to] + message end def new_unique_id -------------- next part -------------- HTML����������������������������... ダウンロード