[Groonga-commit] groonga/groonga-command at d6efaac [master] Use array_value

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Dec 8 21:37:21 JST 2016


Kouhei Sutou	2016-12-08 21:37:21 +0900 (Thu, 08 Dec 2016)

  New Revision: d6efaac6a64b4fb0a586d44faa792c921ca3ec41
  https://github.com/groonga/groonga-command/commit/d6efaac6a64b4fb0a586d44faa792c921ca3ec41

  Message:
    Use array_value

  Modified files:
    lib/groonga/command/column-create.rb
    lib/groonga/command/tokenize.rb

  Modified: lib/groonga/command/column-create.rb (+1 -1)
===================================================================
--- lib/groonga/command/column-create.rb    2016-12-08 21:36:48 +0900 (a55e504)
+++ lib/groonga/command/column-create.rb    2016-12-08 21:37:21 +0900 (227c41d)
@@ -108,7 +108,7 @@ module Groonga
       #
       # @since 1.0.7
       def sources
-        @sources ||= (self[:source] || "").split(/\s*,\s*/)
+        @sources ||= array_value(:source)
       end
     end
   end

  Modified: lib/groonga/command/tokenize.rb (+1 -1)
===================================================================
--- lib/groonga/command/tokenize.rb    2016-12-08 21:36:48 +0900 (4c53937)
+++ lib/groonga/command/tokenize.rb    2016-12-08 21:37:21 +0900 (e130aa7)
@@ -85,7 +85,7 @@ module Groonga
       #
       # @since 1.1.0
       def token_filters
-        @token_filters ||= (self[:token_filters] || "").split(/\s*,\s*/)
+        @token_filters ||= array_value(:token_filters)
       end
     end
   end
-------------- next part --------------
HTML����������������������������...
Download 



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