fluent-plugin-notifier 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 573ec621ba8c492afd1c95961123fea54e12554a
4
+ data.tar.gz: aca45dd2287392d7299b2d7022cb0742de9a5708
5
+ SHA512:
6
+ metadata.gz: 1ba1f5f6093db46923ddd7be47e8f59dd1e4a8ee73f0e770d0d5c29cc0b86136ccc8e3ae7907cf91f939e9842fbc187da257e9ada284bed20c9caf04f561e4e0
7
+ data.tar.gz: 9ed52c03e0836f346f76625c1c4fbc3724e0eafcd96f339019f66ca85327b7b024dfd99d901b56b7488a3c6c962d3f52e14719945b2c4b06da0bb06014dd6e63
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ### NotifierOutput
6
6
 
7
- Plugin to emit notifications for messages, with numbers over/under threshold, or specified pattern strings.
7
+ [Fluentd](http://fluentd.org) plugin to emit notifications for messages, with numbers over/under threshold, or specified pattern strings.
8
8
 
9
9
  ## Configuration
10
10
 
@@ -1,12 +1,13 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = "fluent-plugin-notifier"
4
- gem.version = "0.2.1"
4
+ gem.version = "0.2.2"
5
5
  gem.authors = ["TAGOMORI Satoshi"]
6
6
  gem.email = ["tagomoris@gmail.com"]
7
7
  gem.summary = %q{check matched messages and emit alert message}
8
8
  gem.description = %q{check matched messages and emit alert message with throttling by conditions...}
9
9
  gem.homepage = "https://github.com/tagomoris/fluent-plugin-notifier"
10
+ gem.license = "APLv2"
10
11
 
11
12
  gem.files = `git ls-files`.split($\)
12
13
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -9,7 +9,7 @@ class Fluent::NotifierOutput < Fluent::Output
9
9
  config_param :default_tag, :string, :default => 'notification'
10
10
  config_param :default_tag_warn, :string, :default => nil
11
11
  config_param :default_tag_crit, :string, :default => nil
12
-
12
+
13
13
  config_param :default_interval_1st, :time, :default => 60
14
14
  config_param :default_repetitions_1st, :integer, :default => 5
15
15
  config_param :default_interval_2nd, :time, :default => 300
@@ -19,7 +19,7 @@ class Fluent::NotifierOutput < Fluent::Output
19
19
  config_param :input_tag_remove_prefix, :string, :default => nil
20
20
 
21
21
  attr_accessor :tests, :defs, :states, :match_cache, :negative_cache
22
-
22
+
23
23
  ### output
24
24
  # {
25
25
  # 'pattern' => 'http_status_errors',
@@ -74,6 +74,11 @@ class Fluent::NotifierOutput < Fluent::Output
74
74
  # </def>
75
75
  # </match>
76
76
 
77
+ # Define `log` method for v0.10.42 or earlier
78
+ unless method_defined?(:log)
79
+ define_method("log") { $log }
80
+ end
81
+
77
82
  def configure(conf)
78
83
  super
79
84
 
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
5
- prerelease:
4
+ version: 0.2.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - TAGOMORI Satoshi
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-08 00:00:00.000000000 Z
11
+ date: 2014-03-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: fluentd
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: check matched messages and emit alert message with throttling by conditions...
@@ -50,7 +45,8 @@ executables: []
50
45
  extensions: []
51
46
  extra_rdoc_files: []
52
47
  files:
53
- - .gitignore
48
+ - ".gitignore"
49
+ - ".travis.yml"
54
50
  - Gemfile
55
51
  - LICENSE.txt
56
52
  - README.md
@@ -63,28 +59,28 @@ files:
63
59
  - test/plugin/test_state.rb
64
60
  - test/plugin/test_test.rb
65
61
  homepage: https://github.com/tagomoris/fluent-plugin-notifier
66
- licenses: []
62
+ licenses:
63
+ - APLv2
64
+ metadata: {}
67
65
  post_install_message:
68
66
  rdoc_options: []
69
67
  require_paths:
70
68
  - lib
71
69
  required_ruby_version: !ruby/object:Gem::Requirement
72
- none: false
73
70
  requirements:
74
- - - ! '>='
71
+ - - ">="
75
72
  - !ruby/object:Gem::Version
76
73
  version: '0'
77
74
  required_rubygems_version: !ruby/object:Gem::Requirement
78
- none: false
79
75
  requirements:
80
- - - ! '>='
76
+ - - ">="
81
77
  - !ruby/object:Gem::Version
82
78
  version: '0'
83
79
  requirements: []
84
80
  rubyforge_project:
85
- rubygems_version: 1.8.23
81
+ rubygems_version: 2.2.2
86
82
  signing_key:
87
- specification_version: 3
83
+ specification_version: 4
88
84
  summary: check matched messages and emit alert message
89
85
  test_files:
90
86
  - test/helper.rb