[Groonga-commit] groonga/grntest [master] converted_values -> named_arguments

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 6日 (水) 16:02:59 JST


Haruka Yoshihara	2012-06-06 16:02:59 +0900 (Wed, 06 Jun 2012)

  New Revision: 9e252d015be0a873d32f089704a3d9a7cff2f874

  Log:
    converted_values -> named_arguments

  Modified files:
    lib/groonga/tester.rb

  Modified: lib/groonga/tester.rb (+8 -8)
===================================================================
--- lib/groonga/tester.rb    2012-06-06 15:54:27 +0900 (457a265)
+++ lib/groonga/tester.rb    2012-06-06 16:02:59 +0900 (afff4a9)
@@ -633,13 +633,13 @@ module Groonga
         end
         arguments.concat(["--values", load_values]) unless load_values.empty?
 
-        converted_values = convert_arguments(command, arguments)
-        build_url(command, converted_values)
+        named_arguments = convert_to_named_arguments(command, arguments)
+        build_url(command, named_arguments)
       end
 
       private
-      def convert_arguments(command, arguments)
-        converted_values = {}
+      def convert_to_named_arguments(command, arguments)
+        named_arguments = {}
         last_argument = ""
 
         last_parameter = ""
@@ -656,10 +656,10 @@ module Groonga
           end
 
           value = argument
-          converted_values = converted_values.merge(query_parameter => value)
+          named_arguments = named_arguments.merge(query_parameter => value)
           last_argument = ""
         end
-        converted_values
+        named_arguments
       end
 
       def arguments_name(command)
@@ -685,9 +685,9 @@ module Groonga
         end
       end
 
-      def build_url(command, arguments)
+      def build_url(command, named_arguments)
         url = "/d/#{command}"
-        query = Rack::Utils.build_query(arguments)
+        query = Rack::Utils.build_query(named_arguments)
         url << "?#{query}" unless query.empty?
         url
       end




Groonga-commit メーリングリストの案内
Back to archive index