YUKI Hiroshi
null+****@clear*****
Thu Sep 12 12:29:36 JST 2013
YUKI Hiroshi 2013-09-12 12:29:36 +0900 (Thu, 12 Sep 2013) New Revision: 1cdb535e581c188f78ffc410d91a8fa3aba8322c https://github.com/droonga/fluent-plugin-droonga/commit/1cdb535e581c188f78ffc410d91a8fa3aba8322c Message: Prepare default date (time) outside of the "format_date" method Modified files: lib/groonga_command_converter.rb Modified: lib/groonga_command_converter.rb (+1 -2) =================================================================== --- lib/groonga_command_converter.rb 2013-09-12 12:27:44 +0900 (66db742) +++ lib/groonga_command_converter.rb 2013-09-12 12:29:36 +0900 (b30762e) @@ -54,7 +54,7 @@ module Droonga { :id => id, - :date => format_date(@options[:date]), + :date => format_date(@options[:date] || Time.now), :replyTo => @options[:reply_to], :statusCode => @options[:status_code] || STATUS_OK, :dataset => @options[:dataset], @@ -71,7 +71,6 @@ module Droonga end def format_date(time) - time ||= Time.now time.iso8601 end -------------- next part -------------- HTML����������������������������...Download