YUKI Hiroshi
null+****@clear*****
Mon Jan 20 14:13:05 JST 2014
YUKI Hiroshi 2014-01-20 14:13:05 +0900 (Mon, 20 Jan 2014) New Revision: 3e466918733e23eeb52fa4de6583d2197bf8013a https://github.com/droonga/droonga-client-ruby/commit/3e466918733e23eeb52fa4de6583d2197bf8013a Message: Revert "Accept message loaded from JSON with :symbolize_names => true" This reverts commit b951ea59b1ad87e8c5d4585cd6770b729e6ccfec. In the Droonga project, resources from JSON always should use string keys. Modified files: lib/droonga/client/connection/http.rb Modified: lib/droonga/client/connection/http.rb (+3 -3) =================================================================== --- lib/droonga/client/connection/http.rb 2014-01-20 13:34:47 +0900 (dd276f3) +++ lib/droonga/client/connection/http.rb 2014-01-20 14:13:05 +0900 (da78efe) @@ -125,7 +125,7 @@ module Droonga http.open_timeout = open_timeout http.read_timeout = read_timeout http.start do - path = message["path"] || message[:path] || build_path(message) + path = message["path"] || build_path(message) # we should support not only GET but POST also... get = Net::HTTP::Get.new(path, build_headers(message)) http.request(get) do |response| @@ -142,8 +142,8 @@ module Droonga private def build_path(message) - type = message["type"] || message[:type] - body = message["body"] || message[:body] || {} + type = message["type"] + body = message["body"] || {} base_path = "/#{type}" if body.empty? base_path -------------- next part -------------- HTML����������������������������...Download