Kouhei Sutou
null+****@clear*****
Wed Oct 5 19:08:54 JST 2016
Kouhei Sutou 2016-10-05 19:08:54 +0900 (Wed, 05 Oct 2016) New Revision: 3a61d47ab8c3498a0985d09d6fa2bcec3cfd7ea1 https://github.com/ranguba/groonga-client/commit/3a61d47ab8c3498a0985d09d6fa2bcec3cfd7ea1 Message: Accept client.select(:symbol_key => "value") again Modified files: lib/groonga/client.rb test/test-command.rb Modified: lib/groonga/client.rb (+5 -1) =================================================================== --- lib/groonga/client.rb 2016-10-05 19:03:55 +0900 (bfe42cc) +++ lib/groonga/client.rb 2016-10-05 19:08:54 +0900 (c4997b8) @@ -178,7 +178,11 @@ module Groonga def method_missing(name, *args, **kwargs, &block) if groonga_command_name?(name) - execute(name, *args, &block) + if kwargs.empty? + execute(name, *args, &block) + else + execute(name, *args, **kwargs, &block) + end else super end Modified: test/test-command.rb (+1 -1) =================================================================== --- test/test-command.rb 2016-10-05 19:03:55 +0900 (b9a0675) +++ test/test-command.rb 2016-10-05 19:08:54 +0900 (aa28630) @@ -51,7 +51,7 @@ class TestCommand < Test::Unit::TestCase def test_table_list response = Object.new - mock(@client).execute(:table_list, {}) do + mock(@client).execute(:table_list) do response end @client.table_list -------------- next part -------------- HTML����������������������������...Download