YUKI Hiroshi
null+****@clear*****
Thu May 7 12:30:23 JST 2015
YUKI Hiroshi 2015-05-07 12:30:23 +0900 (Thu, 07 May 2015) New Revision: b5cfd46baa4222ca229534450a17536c91ebe503 https://github.com/droonga/droonga-client-ruby/commit/b5cfd46baa4222ca229534450a17536c91ebe503 Message: Build path for Droonga commands correctly for HTTP protocol adapter Modified files: lib/droonga/client/connection/http.rb Modified: lib/droonga/client/connection/http.rb (+6 -1) =================================================================== --- lib/droonga/client/connection/http.rb 2015-05-07 12:24:47 +0900 (7f73d13) +++ lib/droonga/client/connection/http.rb 2015-05-07 12:30:23 +0900 (7aa6be5) @@ -174,7 +174,7 @@ module Droonga def build_path(message, parameters) type = message["type"] - base_path = message["path"] || "/#{type}" + base_path = message["path"] || build_droonga_path(type) if parameters.empty? base_path else @@ -182,6 +182,11 @@ module Droonga end end + def build_droonga_path(type) + type = type.gsub(".", "/") + "/droonga/#{type}" + end + def on_error(error) @on_error.call(error) if @on_error end -------------- next part -------------- HTML����������������������������...Download