fluent-plugin-terminal_notifier 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +9 -0
- data/fluent-plugin-terminal_notifier.gemspec +2 -2
- data/lib/fluent/plugin/filter_terminal_notifier.rb +6 -4
- data/lib/fluent/plugin/out_terminal_notifier.rb +7 -6
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdeb649b5f4c36f0269b6531c302a3ee3dce4b40
|
4
|
+
data.tar.gz: 8f62098c98e519470d16f8e68433a4767635569d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29a8d8cf805fde09f4b26153c1e84b079d4b93abdf39271b0433334ffc8f1e366df22d1bea357692b209bb92dbcf4fee13ed5337bf44a6663c0ae1e1ff7d0fe4
|
7
|
+
data.tar.gz: a6a04f1deb7944f807baa570d1a6f3872fde90caf2d31c159558316da5e11d9f2fac8fa56fa02c2039243a08aae58aaa9a056873183dbdb6a821be5d39d42b23
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -4,6 +4,15 @@
|
|
4
4
|
|
5
5
|
A fluentd plugin to notify notification center with terminal-notifier.
|
6
6
|
|
7
|
+
## Notice
|
8
|
+
|
9
|
+
0.1.0 had been dropped support Fluentd v0.12.
|
10
|
+
If you want to use this plugin with Fluentd v0.12, please add version constraint in your Gemfile like as:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
gem "fluent-plugin-formatter_simple_tsv", "~> 0.0.3"
|
14
|
+
```
|
15
|
+
|
7
16
|
## Installation
|
8
17
|
|
9
18
|
Add this line to your application's Gemfile:
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "fluent-plugin-terminal_notifier"
|
7
|
-
spec.version = "0.0
|
7
|
+
spec.version = "0.1.0"
|
8
8
|
spec.authors = ["Hiroshi Hatake"]
|
9
9
|
spec.email = ["cosmo0920.wp@gmail.com"]
|
10
10
|
|
@@ -29,6 +29,6 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency "bundler"
|
30
30
|
spec.add_development_dependency "rake", "~> 11.0"
|
31
31
|
spec.add_development_dependency "test-unit", "~> 3.2"
|
32
|
-
spec.add_runtime_dependency "fluentd", "
|
32
|
+
spec.add_runtime_dependency "fluentd", [">= 0.14.0", "< 2"]
|
33
33
|
spec.add_runtime_dependency "terminal-notifier", "~> 1.6"
|
34
34
|
end
|
@@ -1,9 +1,11 @@
|
|
1
|
-
|
1
|
+
require 'fluent/plugin/filter'
|
2
|
+
require_relative './notify_util'
|
3
|
+
|
4
|
+
module Fluent::Plugin
|
2
5
|
class TerminalNotifierFilter < Filter
|
3
|
-
|
4
|
-
include NotifyUtil
|
6
|
+
include Fluent::NotifyUtil
|
5
7
|
|
6
|
-
Plugin.register_filter('terminal-notifier', self);
|
8
|
+
Fluent::Plugin.register_filter('terminal-notifier', self);
|
7
9
|
|
8
10
|
DEFAULT_TITLE = "Fluentd Notification"
|
9
11
|
DEFAULT_SUB_TITLE = "Fluentd Notification Sub Title"
|
@@ -1,9 +1,11 @@
|
|
1
|
-
|
1
|
+
require 'fluent/plugin/output'
|
2
|
+
require_relative './notify_util'
|
3
|
+
|
4
|
+
module Fluent::Plugin
|
2
5
|
class TerminalNotifierOutput < Output
|
3
|
-
|
4
|
-
include NotifyUtil
|
6
|
+
include Fluent::NotifyUtil
|
5
7
|
|
6
|
-
Plugin.register_output('terminal-notifier', self);
|
8
|
+
Fluent::Plugin.register_output('terminal-notifier', self);
|
7
9
|
|
8
10
|
DEFAULT_TITLE = "Fluentd Notification"
|
9
11
|
DEFAULT_SUB_TITLE = "Fluentd Notification Sub Title"
|
@@ -16,11 +18,10 @@ module Fluent
|
|
16
18
|
super
|
17
19
|
end
|
18
20
|
|
19
|
-
def
|
21
|
+
def process(tag, es)
|
20
22
|
es.each{|time,record|
|
21
23
|
notify(time, record)
|
22
24
|
}
|
23
|
-
chain.next
|
24
25
|
end
|
25
26
|
end
|
26
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-terminal_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi Hatake
|
@@ -56,16 +56,22 @@ dependencies:
|
|
56
56
|
name: fluentd
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.14.0
|
62
|
+
- - "<"
|
60
63
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
64
|
+
version: '2'
|
62
65
|
type: :runtime
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- - "
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: 0.14.0
|
72
|
+
- - "<"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
74
|
+
version: '2'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: terminal-notifier
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|