YUKI Hiroshi
null+****@clear*****
Thu May 7 12:42:23 JST 2015
YUKI Hiroshi 2015-05-07 12:42:23 +0900 (Thu, 07 May 2015) New Revision: 2873ac6b0a9f308a38eb4f1d7aa175baa16dae67 https://github.com/droonga/droonga-client-ruby/commit/2873ac6b0a9f308a38eb4f1d7aa175baa16dae67 Message: Do nothing if no block is given for the "send" method Modified files: lib/droonga/client/connection/droonga-protocol/coolio.rb lib/droonga/client/connection/http.rb Modified: lib/droonga/client/connection/droonga-protocol/coolio.rb (+1 -1) =================================================================== --- lib/droonga/client/connection/droonga-protocol/coolio.rb 2015-05-07 12:38:31 +0900 (cb7d2db) +++ lib/droonga/client/connection/droonga-protocol/coolio.rb 2015-05-07 12:42:23 +0900 (abff516) @@ -302,7 +302,7 @@ module Droonga port =****@sende*****[1] detail = message error = ConnectionError.new(host, port, detail) - yield(error) + yield(error) if block_given? end end Modified: lib/droonga/client/connection/http.rb (+1 -1) =================================================================== --- lib/droonga/client/connection/http.rb 2015-05-07 12:38:31 +0900 (7aa6be5) +++ lib/droonga/client/connection/http.rb 2015-05-07 12:42:23 +0900 (880e7a9) @@ -142,7 +142,7 @@ module Droonga request = build_request(message) http.start do http.request(request) do |response| - yield(response) + yield(response) if block_given? end end end -------------- next part -------------- HTML����������������������������...Download