Daijiro MORI
null+****@clear*****
Mon Sep 9 13:08:33 JST 2013
Daijiro MORI 2013-09-09 13:08:33 +0900 (Mon, 09 Sep 2013) New Revision: a3d2538517963cedcc07012218871032ee9930b7 https://github.com/droonga/fluent-plugin-droonga/commit/a3d2538517963cedcc07012218871032ee9930b7 Message: Allow options to be undefined. Modified files: lib/droonga/catalog.rb Modified: lib/droonga/catalog.rb (+2 -1) =================================================================== --- lib/droonga/catalog.rb 2013-09-08 20:44:21 +0900 (9d2ab09) +++ lib/droonga/catalog.rb 2013-09-09 13:08:33 +0900 (5e85df0) @@ -48,10 +48,11 @@ module Droonga end dataset["continuum"] = continuum.sort do |a, b| a[0] - b[0]; end end + @options = @catalog["options"] || {} end def option(name) - @catalog["options"][name] + @options[name] end def get_engines(name) -------------- next part -------------- HTML����������������������������...Download