Kouhei Sutou
null+****@clear*****
Wed Apr 3 19:01:17 JST 2013
Kouhei Sutou 2013-04-03 19:01:17 +0900 (Wed, 03 Apr 2013) New Revision: 6564a39c83900b8bb5819dd3fe928c879c078f9a https://github.com/groonga/fluent-plugin-droonga/commit/6564a39c83900b8bb5819dd3fe928c879c078f9a Message: Simplify There is Groonga::Context#create_database convenience method. Modified files: lib/fluent/plugin/out_droonga.rb Modified: lib/fluent/plugin/out_droonga.rb (+1 -1) =================================================================== --- lib/fluent/plugin/out_droonga.rb 2013-04-03 18:55:37 +0900 (2ac4734) +++ lib/fluent/plugin/out_droonga.rb 2013-04-03 19:01:17 +0900 (2f77341) @@ -83,7 +83,7 @@ module Fluent return if File.exist?(@database) FileUtils.mkdir_p(File.dirname(@database)) context = Groonga::Context.new - Groonga::Database.create(:context => context, :path => @database) do + context.create_database(@database) do end context.close end -------------- next part -------------- HTML����������������������������...Download