Kosuke Asami
null+****@clear*****
Mon Jul 22 16:58:53 JST 2013
Kosuke Asami 2013-07-22 16:58:53 +0900 (Mon, 22 Jul 2013) New Revision: 921f911deed6dc3dbfc463246021e3b3817ac290 https://github.com/groonga/fluent-plugin-droonga/commit/921f911deed6dc3dbfc463246021e3b3817ac290 Message: adapter: transfer a block to proxy Modified files: lib/droonga/adapter.rb test/test_adapter.rb Modified: lib/droonga/adapter.rb (+2 -2) =================================================================== --- lib/droonga/adapter.rb 2013-07-22 16:50:24 +0900 (1c73ac6) +++ lib/droonga/adapter.rb 2013-07-22 16:58:53 +0900 (840e003) @@ -42,8 +42,8 @@ module Droonga __send__(self.class.method_name(command), request) end - def post(request) - @proxy.post(request) + def post(request, &block) + @proxy.post(request, &block) end end end Modified: test/test_adapter.rb (+2 -1) =================================================================== --- test/test_adapter.rb 2013-07-22 16:50:24 +0900 (9a6b4e5) +++ test/test_adapter.rb 2013-07-22 16:58:53 +0900 (bebbb5e) @@ -40,7 +40,8 @@ class AdapterTest < Test::Unit::TestCase def test_post request = nil - mock(@proxy).post(:search) + response = nil + mock(@proxy).post(:search).yields(response) @groonga_adapter.adapt(:select, request) end end -------------- next part -------------- HTML����������������������������...Download