Hiroshi Hatake
null+****@clear*****
Fri Sep 15 16:48:59 JST 2017
Hiroshi Hatake 2017-09-15 16:48:59 +0900 (Fri, 15 Sep 2017) New Revision: 173324addf8d06c7f08159ca9bba33c5cdad3594 https://github.com/groonga/fluent-plugin-groonga-log/commit/173324addf8d06c7f08159ca9bba33c5cdad3594 Merged 084168f: Merge pull request #1 from cosmo0920/tweak-name-and-returns Message: Use GroongaLogParser instead of Groonga_logParser in class name Modified files: lib/fluent/plugin/parser_groonga_log.rb test/plugin/test_parser_groonga_log.rb Modified: lib/fluent/plugin/parser_groonga_log.rb (+1 -1) =================================================================== --- lib/fluent/plugin/parser_groonga_log.rb 2017-09-15 16:39:04 +0900 (c75bebf) +++ lib/fluent/plugin/parser_groonga_log.rb 2017-09-15 16:48:59 +0900 (61838bc) @@ -17,7 +17,7 @@ require "fluent/plugin/parser" module Fluent module Plugin - class Groonga_logParser < Fluent::Plugin::Parser + class GroongaLogParser < Fluent::Plugin::Parser Fluent::Plugin.register_parser("groonga_log", self) REGEXP = /\A(?<year>\d{4})-(?<month>\d\d)-(?<day>\d\d) (?<hour>\d\d):(?<minutes>\d\d):(?<seconds>\d\d)\.(?<micro_seconds>\d+)\|(?<log_level>.)\|(?<context_id>.+?)\|(?<message>.*)/ Modified: test/plugin/test_parser_groonga_log.rb (+2 -2) =================================================================== --- test/plugin/test_parser_groonga_log.rb 2017-09-15 16:39:04 +0900 (cd511c0) +++ test/plugin/test_parser_groonga_log.rb 2017-09-15 16:48:59 +0900 (f754aea) @@ -1,7 +1,7 @@ require "helper" require "fluent/plugin/parser_groonga_log.rb" -class Groonga_logParserTest < Test::Unit::TestCase +class GroongaLogParserTest < Test::Unit::TestCase def setup Fluent::Test.setup @parser = create_driver({}) @@ -33,6 +33,6 @@ class Groonga_logParserTest < Test::Unit::TestCase private def create_driver(conf) - Fluent::Test::Driver::Parser.new(Fluent::Plugin::Groonga_logParser).configure(conf) + Fluent::Test::Driver::Parser.new(Fluent::Plugin::GroongaLogParser).configure(conf) end end -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20170915/9d07a254/attachment-0001.htm