YUKI Hiroshi
null+****@clear*****
Thu Sep 12 12:27:44 JST 2013
YUKI Hiroshi 2013-09-12 12:27:44 +0900 (Thu, 12 Sep 2013) New Revision: 976de08b3e907f7043f69bf1495809d605f25952 https://github.com/droonga/fluent-plugin-droonga/commit/976de08b3e907f7043f69bf1495809d605f25952 Message: Use more natural name formatted_date(...) => format_date(...) Modified files: lib/groonga_command_converter.rb Modified: lib/groonga_command_converter.rb (+2 -2) =================================================================== --- lib/groonga_command_converter.rb 2013-09-12 12:27:26 +0900 (0cb1275) +++ lib/groonga_command_converter.rb 2013-09-12 12:27:44 +0900 (66db742) @@ -54,7 +54,7 @@ module Droonga { :id => id, - :date => formatted_date(@options[:date]), + :date => format_date(@options[:date]), :replyTo => @options[:reply_to], :statusCode => @options[:status_code] || STATUS_OK, :dataset => @options[:dataset], @@ -70,7 +70,7 @@ module Droonga Digest::SHA1.hexdigest("#{now_msec}:#{random_string}") end - def formatted_date(time) + def format_date(time) time ||= Time.now time.iso8601 end -------------- next part -------------- HTML����������������������������...Download