[Groonga-commit] droonga/droonga-client-ruby at f8a9ddf [master] Accept specified protocol correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu May 7 18:11:12 JST 2015


YUKI Hiroshi	2015-05-07 18:11:12 +0900 (Thu, 07 May 2015)

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

  Message:
    Accept specified protocol correctly

  Modified files:
    bin/droonga-send

  Modified: bin/droonga-send (+3 -3)
===================================================================
--- bin/droonga-send    2015-05-07 16:53:48 +0900 (933f6ac)
+++ bin/droonga-send    2015-05-07 18:11:12 +0900 (0d90b2b)
@@ -49,18 +49,18 @@ def parse_server(server, options)
   if protocol and host =~ /\A[0-9]+\z/ and port.nil?
     # "host:port" case can be detected as "protocol:host" wrongly.
     port     = host
-    host     = protocol.downcase.to_sym
+    host     = protocol
     protocol = nil
   end
 
-  protocol ||= options.default_protocol
+  protocol ||= options.default_protocol.to_s
   port     ||= options.default_port
   tag      ||= options.default_tag
 
   {
     :host     => host,
     :port     => Integer(port),
-    :protocol => protocol,
+    :protocol => protocol.downcase.to_sym,
     :tag      => tag,
     :default_dataset => options.default_dataset,
     :default_target_role => options.default_target_role,
-------------- next part --------------
HTML����������������������������...
Download 



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