Kouhei Sutou
null+****@clear*****
Thu Nov 21 11:17:49 JST 2013
Kouhei Sutou 2013-11-21 11:17:49 +0900 (Thu, 21 Nov 2013) New Revision: f26bc8585af526489fec07b8847ea2ae4ae79d21 https://github.com/droonga/fluent-plugin-droonga/commit/f26bc8585af526489fec07b8847ea2ae4ae79d21 Message: Use "." to reference class method instead of "::" Modified files: lib/droonga/dispatcher.rb Modified: lib/droonga/dispatcher.rb (+3 -3) =================================================================== --- lib/droonga/dispatcher.rb 2013-11-20 19:11:32 +0900 (9c2e97a) +++ lib/droonga/dispatcher.rb 2013-11-21 11:17:49 +0900 (4b8a07c) @@ -26,7 +26,7 @@ module Droonga attr_reader :collectors def initialize(worker, name) @engines = {} - Droonga::catalog.get_engines(name).each do |name, options| + Droonga.catalog.get_engines(name).each do |name, options| engine = Droonga::Engine.new(options.merge(:standalone => true, :with_server => false)) engine.start @@ -37,7 +37,7 @@ module Droonga @collectors = {} @current_id = 0 @local = Regexp.new("^#{@name}") - plugins = ["collector"] + (Droonga::catalog.option("plugins")||[]) + ["adapter"] + plugins = ["collector"] + (Droonga.catalog.option("plugins")||[]) + ["adapter"] plugins.each do |plugin| @worker.add_handler(plugin) end @@ -171,7 +171,7 @@ module Droonga dataset = component["dataset"] routes = if dataset - Droonga::catalog.get_routes(dataset, component) + Droonga.catalog.get_routes(dataset, component) else local end -------------- next part -------------- HTML����������������������������...Download