[Groonga-commit] droonga/droonga-client-ruby at f9b2c86 [master] Change request-response type method name again

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jan 17 18:14:26 JST 2014


Kouhei Sutou	2014-01-17 18:14:26 +0900 (Fri, 17 Jan 2014)

  New Revision: f9b2c860ca56c71453dd00209e3599dca4ceb899
  https://github.com/droonga/droonga-client-ruby/commit/f9b2c860ca56c71453dd00209e3599dca4ceb899

  Message:
    Change request-response type method name again
    
    reciprocate ->
    request

  Modified files:
    lib/droonga/client.rb
    lib/droonga/client/connection/droonga_protocol.rb

  Modified: lib/droonga/client.rb (+3 -3)
===================================================================
--- lib/droonga/client.rb    2014-01-17 18:13:38 +0900 (081f371)
+++ lib/droonga/client.rb    2014-01-17 18:14:26 +0900 (0ca4223)
@@ -63,8 +63,8 @@ module Droonga
       @connection = Connection::DroongaProtocol.new(options)
     end
 
-    def reciprocate(message, options={}, &block)
-      @connection.reciprocate(message, &block)
+    def request(message, options={}, &block)
+      @connection.request(message, &block)
     end
 
     def subscribe(message, options={}, &block)
@@ -72,7 +72,7 @@ module Droonga
     end
 
     def search(body, options={}, &block)
-      reciprocate({
+      request({
                     "id"   => Time.now.to_f.to_s,
                     "date" => Time.now,
                     "type" => "search",

  Modified: lib/droonga/client/connection/droonga_protocol.rb (+3 -3)
===================================================================
--- lib/droonga/client/connection/droonga_protocol.rb    2014-01-17 18:13:38 +0900 (0d48f73)
+++ lib/droonga/client/connection/droonga_protocol.rb    2014-01-17 18:14:26 +0900 (0a50f48)
@@ -50,7 +50,7 @@ module Droonga
         # Sends a request message and receives one or more response
         # messages.
         #
-        # @overload reciprocate(message, options={})
+        # @overload request(message, options={})
         #   This is synchronously version.
         #
         #   @param message [Hash] Request message.
@@ -59,7 +59,7 @@ module Droonga
         #
         #   @return [Object] The response. TODO: WRITE ME
         #
-        # @overload reciprocate(message, options={}, &block)
+        # @overload request(message, options={}, &block)
         #   This is asynchronously version.
         #
         #   @param message [Hash] Request message.
@@ -71,7 +71,7 @@ module Droonga
         #      The response.
         #
         #   @return [Request] The request object.
-        def reciprocate(message, options={}, &block)
+        def request(message, options={}, &block)
           receiver = create_receiver
           message = message.dup
           message["replyTo"] = "#{receiver.host}:#{receiver.port}/droonga"
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index