Daijiro MORI
null+****@clear*****
Wed May 8 20:40:05 JST 2013
Daijiro MORI 2013-05-08 20:40:05 +0900 (Wed, 08 May 2013) New Revision: 36dfaee6149f10c89085ee1da3b266b7cce6b1e6 https://github.com/groonga/fluent-plugin-droonga/commit/36dfaee6149f10c89085ee1da3b266b7cce6b1e6 Message: Assume the keys of message are not symbols but strings. Modified files: lib/droonga/plugin/handler_merge.rb Modified: lib/droonga/plugin/handler_merge.rb (+3 -3) =================================================================== --- lib/droonga/plugin/handler_merge.rb 2013-05-08 20:29:34 +0900 (41ca9f4) +++ lib/droonga/plugin/handler_merge.rb 2013-05-08 20:40:05 +0900 (93c10dc) @@ -91,7 +91,7 @@ module Droonga path = policy["path"] case policy["procedure"] when "sum" - last = path[-1].intern + last = path[-1] _a, _b = fetch_element(path[0..-2], a, b) _a[last] += _b[last] when "sort" @@ -103,8 +103,8 @@ module Droonga def fetch_element(path, a, b) path.each do |index| - a = a[index]||a[index.intern] - b = b[index]||b[index.intern] + a = a[index]||a[index] + b = b[index]||b[index] end [a, b] end -------------- next part -------------- HTML����������������������������... Télécharger