[Groonga-commit] droonga/droonga-engine at 57fc234 [master] Run external commands safely

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Nov 21 19:36:49 JST 2014


YUKI Hiroshi	2014-11-21 19:36:49 +0900 (Fri, 21 Nov 2014)

  New Revision: 57fc2344845cff604017779672e856ee4cfd5abb
  https://github.com/droonga/droonga-engine/commit/57fc2344845cff604017779672e856ee4cfd5abb

  Message:
    Run external commands safely

  Modified files:
    lib/droonga/data_absorber.rb

  Modified: lib/droonga/data_absorber.rb (+3 -3)
===================================================================
--- lib/droonga/data_absorber.rb    2014-11-21 19:36:26 +0900 (4f47d9f)
+++ lib/droonga/data_absorber.rb    2014-11-21 19:36:49 +0900 (c0b1947)
@@ -100,7 +100,7 @@ module Droonga
       options += ["--dataset", @params[:dataset]] if @params[:dataset]
       options += ["--receiver-host", @params[:destination_host]]
       options += ["--receiver-port", @params[:receiver_port].to_s] if @params[:receiver_port]
-      options
+      options.collect(&:to_s)
     end
 
     def droonga_request_options
@@ -110,7 +110,7 @@ module Droonga
       options += ["--tag", @params[:tag]] if @params[:tag]
       options += ["--receiver-host", @params[:destination_host]]
       options += ["--receiver-port", @params[:receiver_port].to_s] if @params[:receiver_port]
-      options
+      options.collect(&:to_s)
     end
 
     def droonga_send_options
@@ -131,7 +131,7 @@ module Droonga
       #XXX We should restrict the traffic to avoid overflowing!
       options += ["--messages-per-second", @params[:messages_per_second]]
   
-      options
+      options.collect(&:to_s)
     end
 
     def client_options(client)
-------------- next part --------------
HTML����������������������������...
Download 



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