Kouhei Sutou
null+****@clear*****
Mon Feb 3 12:24:41 JST 2014
Kouhei Sutou 2014-02-03 12:24:41 +0900 (Mon, 03 Feb 2014) New Revision: 02b8c11169e05b6bfeb153e950487990f82fd848 https://github.com/droonga/fluent-plugin-droonga/commit/02b8c11169e05b6bfeb153e950487990f82fd848 Message: Fix a bug that wrong type is used It is enbugged by :patterns -> :pattern change. Sorry... Modified files: lib/droonga/plugin_registerable.rb Modified: lib/droonga/plugin_registerable.rb (+2 -1) =================================================================== --- lib/droonga/plugin_registerable.rb 2014-02-03 12:18:20 +0900 (210953c) +++ lib/droonga/plugin_registerable.rb 2014-02-03 12:24:41 +0900 (72055f8) @@ -41,10 +41,11 @@ module Droonga def command(method_name_or_map, options={}) if method_name_or_map.is_a?(Hash) type, method_name = method_name_or_map.to_a.first + options[:pattern] ||= ["type", :equal, type.to_s] else method_name = method_name_or_map + options[:pattern] ||= ["type", :equal, method_name.to_s] end - options[:pattern] ||= ["type", :equal, method_name.to_s] command = Command.new(method_name, options) @command_repository.register(command) end -------------- next part -------------- HTML����������������������������...Download