[Groonga-commit] ranguba/groonga-client at e3e02a0 [master] Don't change options destructly

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Mar 24 18:32:42 JST 2014


Kouhei Sutou	2014-03-24 18:32:42 +0900 (Mon, 24 Mar 2014)

  New Revision: e3e02a058973b3815894161c459041e06d25c2f5
  https://github.com/ranguba/groonga-client/commit/e3e02a058973b3815894161c459041e06d25c2f5

  Message:
    Don't change options destructly

  Modified files:
    lib/groonga/client.rb

  Modified: lib/groonga/client.rb (+2 -1)
===================================================================
--- lib/groonga/client.rb    2014-03-16 00:13:53 +0900 (4512d70)
+++ lib/groonga/client.rb    2014-03-24 18:32:42 +0900 (3cd0097)
@@ -61,7 +61,8 @@ module Groonga
     end
 
     # @macro initialize_options
-    def initialize(options)
+    def initialize(options={})
+      options = options.dup
       protocol = options.delete(:protocol) || :gqtp
 
       @connection = nil
-------------- next part --------------
HTML����������������������������...
Download 



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