[Groonga-commit] groonga/fluent-plugin-droonga at 539d768 [master] Use snake_case for method name

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jun 19 17:11:26 JST 2013


Kouhei Sutou	2013-06-19 17:11:26 +0900 (Wed, 19 Jun 2013)

  New Revision: 539d768911bab369752b19428eb116e5f2bc014c
  https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c

  Message:
    Use snake_case for method name

  Modified files:
    lib/droonga/plugin/handler_search.rb

  Modified: lib/droonga/plugin/handler_search.rb (+3 -3)
===================================================================
--- lib/droonga/plugin/handler_search.rb    2013-06-19 17:09:27 +0900 (bddbb17)
+++ lib/droonga/plugin/handler_search.rb    2013-06-19 17:11:26 +0900 (02d1fbd)
@@ -183,7 +183,7 @@ module Droonga
         end
       end
 
-      def parseOrderKeys(keys)
+      def parse_order_keys(keys)
         keys.collect do |key|
           if key =~ /^-/
             [$POSTMATCH, :descending]
@@ -208,11 +208,11 @@ module Droonga
         @count =****@resul*****
         if @query["sortBy"]
           if @query["sortBy"].is_a? Array
-            keys = parseOrderKeys(@query["sortBy"])
+            keys = parse_order_keys(@query["sortBy"])
             offset = 0
             limit = -1
           elsif @query["sortBy"].is_a? Hash
-            keys = parseOrderKeys(@query["sortBy"]["keys"])
+            keys = parse_order_keys(@query["sortBy"]["keys"])
             offset = @query["sortBy"]["offset"]
             limit = @query["sortBy"]["limit"]
           else
-------------- next part --------------
HTML����������������������������...
Download 



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