YUKI Hiroshi
null+****@clear*****
Fri Apr 10 12:33:31 JST 2015
YUKI Hiroshi 2015-04-10 12:33:31 +0900 (Fri, 10 Apr 2015) New Revision: 3bb61df1e8713396ead9029ecae94bd2dcbb505d https://github.com/droonga/drndump/commit/3bb61df1e8713396ead9029ecae94bd2dcbb505d Message: Dumper's arguments is not optional Modified files: lib/drndump/command.rb lib/drndump/dumper.rb Modified: lib/drndump/command.rb (+2 -2) =================================================================== --- lib/drndump/command.rb 2015-04-10 12:31:10 +0900 (940d37b) +++ lib/drndump/command.rb 2015-04-10 12:33:31 +0900 (ad5e63e) @@ -105,7 +105,7 @@ module Drndump parser end - def dumper_options + def dumper_params { :host => @host, :port => @port, @@ -116,7 +116,7 @@ module Drndump end def dump - @dumper = Dumper.new(dumper_options) + @dumper = Dumper.new(dumper_params) client_options = { :backend => :coolio, :loop => @loop, Modified: lib/drndump/dumper.rb (+6 -6) =================================================================== --- lib/drndump/dumper.rb 2015-04-10 12:31:10 +0900 (17cce25) +++ lib/drndump/dumper.rb 2015-04-10 12:33:31 +0900 (8a00638) @@ -22,13 +22,13 @@ module Drndump attr_reader :error_message def initialize(params) - @host = params[:host] || "localhost" - @port = params[:port] || 10031 - @tag = params[:tag] || "droonga" - @dataset = params[:dataset] || "Default" + @host = params[:host] + @port = params[:port] + @tag = params[:tag] + @dataset = params[:dataset] - @receiver_host = params[:receiver_host] || Socket.gethostname - @receiver_port = params[:receiver_port] || 0 + @receiver_host = params[:receiver_host] + @receiver_port = params[:receiver_port] @error_message = nil end -------------- next part -------------- HTML����������������������������... Télécharger