[Groonga-commit] ranguba/chupa-text at 57c9a4b [master] Use empty Hash for the default options

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jan 3 16:02:31 JST 2014


Kouhei Sutou	2014-01-03 16:02:31 +0900 (Fri, 03 Jan 2014)

  New Revision: 57c9a4bc67265756b5224f387d921fb1e49e6232
  https://github.com/ranguba/chupa-text/commit/57c9a4bc67265756b5224f387d921fb1e49e6232

  Message:
    Use empty Hash for the default options

  Modified files:
    lib/chupa-text/decomposers.rb

  Modified: lib/chupa-text/decomposers.rb (+1 -1)
===================================================================
--- lib/chupa-text/decomposers.rb    2014-01-03 16:01:54 +0900 (c87eca7)
+++ lib/chupa-text/decomposers.rb    2014-01-03 16:02:31 +0900 (8cc1c2e)
@@ -34,7 +34,7 @@ module ChupaText
         enabled_names = resolve_names(registry, configuration.names)
         enabled_names.collect do |enabled_name|
           decomposer_class = registry.find(enabled_name)
-          options = configuration.options[name]
+          options = configuration.options[name] || {}
           decomposer_class.new(options)
         end
       end
-------------- next part --------------
HTML����������������������������...
Download 



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