Kouhei Sutou
null+****@clear*****
Sun Nov 25 22:55:47 JST 2012
Kouhei Sutou 2012-11-25 22:55:47 +0900 (Sun, 25 Nov 2012) New Revision: c75f787dd4315dab924932b86c504788788f7268 https://github.com/groonga/fluent-plugin-groonga/commit/c75f787dd4315dab924932b86c504788788f7268 Log: parameters -> arguments Modified files: lib/fluent/plugin/out_groonga.rb Modified: lib/fluent/plugin/out_groonga.rb (+5 -5) =================================================================== --- lib/fluent/plugin/out_groonga.rb 2012-11-25 22:52:53 +0900 (b3d1a95) +++ lib/fluent/plugin/out_groonga.rb 2012-11-25 22:55:47 +0900 (cd031a1) @@ -148,17 +148,17 @@ module Fluent Process.waitpid(@pid) end - def send(command, parameters={}) + def send(command, arguments={}) body = nil if command == "load" - body = parameters.delete("data") + body = arguments.delete("data") end - url_encoded_parameters = parameters.collect do |key, value| + url_encoded_arguments = arguments.collect do |key, value| "#{CGI.escape(key)}=#{CGI.escape(value)}" end path = "/d/#{command}" - unless url_encoded_parameters.empty? - path << "?#{url_encoded_parameters.join('&')}" + unless url_encoded_arguments.empty? + path << "?#{url_encoded_arguments.join('&')}" end @input[1].write("#{path}\n") if body -------------- next part -------------- HTML����������������������������...Download