[Groonga-commit] droonga/droonga-engine at 3c9fbc5 [master] Strip whitespaces only for string

Back to archive index

SHIMODA Piro Hiroshi null+****@clear*****
Mon Oct 6 12:43:09 JST 2014


SHIMODA "Piro" Hiroshi	2014-10-06 12:43:09 +0900 (Mon, 06 Oct 2014)

  New Revision: 3c9fbc522b1e2ac545dc0aca90dde362429cb871
  https://github.com/droonga/droonga-engine/commit/3c9fbc522b1e2ac545dc0aca90dde362429cb871

  Message:
    Strip whitespaces only for string

  Modified files:
    bin/droonga-engine-configure

  Modified: bin/droonga-engine-configure (+5 -1)
===================================================================
--- bin/droonga-engine-configure    2014-10-06 12:38:06 +0900 (53a3aed)
+++ bin/droonga-engine-configure    2014-10-06 12:43:09 +0900 (f3c0a7a)
@@ -60,7 +60,11 @@ def input(message, default_value=nil)
   print "#{message} [#{default_value}]: "
   response = gets.strip
   if response.empty?
-    default_value.strip
+    if default_value.is_a?(String)
+      default_value.strip
+    else
+      default_value
+    end
   else
     response
   end
-------------- next part --------------
HTML����������������������������...
Download 



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