Skip to content

Commit

Permalink
parser: Fix missing require. fix #1458
Browse files Browse the repository at this point in the history
  • Loading branch information
repeatedly committed Feb 9, 2017
1 parent ee32aef commit 868a6a5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/parser_apache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

require 'fluent/plugin/parser'
require 'fluent/plugin/parser_regexp'

module Fluent
module Plugin
Expand Down
2 changes: 1 addition & 1 deletion lib/fluent/plugin/parser_apache_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

require 'fluent/plugin/parser'
require 'fluent/plugin/parser_regexp'

module Fluent
module Plugin
Expand Down
2 changes: 1 addition & 1 deletion lib/fluent/plugin/parser_nginx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

require 'fluent/plugin/parser'
require 'fluent/plugin/parser_regexp'

module Fluent
module Plugin
Expand Down
18 changes: 18 additions & 0 deletions lib/fluent/plugin/parser_regexp.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
#
# Fluentd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require 'fluent/plugin/parser'

module Fluent
module Plugin
class RegexpParser < Parser
Expand Down

0 comments on commit 868a6a5

Please sign in to comment.