fluent-plugin-terminal_notifier 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bdeb649b5f4c36f0269b6531c302a3ee3dce4b40
4
- data.tar.gz: 8f62098c98e519470d16f8e68433a4767635569d
3
+ metadata.gz: c36b95b036593821a070341e3f94ef813331c2e0
4
+ data.tar.gz: 515648bb4f7c87cb18c6c58a6e6d4f7ef49e07c0
5
5
  SHA512:
6
- metadata.gz: 29a8d8cf805fde09f4b26153c1e84b079d4b93abdf39271b0433334ffc8f1e366df22d1bea357692b209bb92dbcf4fee13ed5337bf44a6663c0ae1e1ff7d0fe4
7
- data.tar.gz: a6a04f1deb7944f807baa570d1a6f3872fde90caf2d31c159558316da5e11d9f2fac8fa56fa02c2039243a08aae58aaa9a056873183dbdb6a821be5d39d42b23
6
+ metadata.gz: c7fff62e0301d9e7172aed9aa1e43e00209394a7b10f51eb04a7c34c7bc18b8d3272d1b61747c478fec374fa8f424e00ce47852c44de03e99fb9eec0508aa936
7
+ data.tar.gz: 3c2f1472e494dbbe5850b265fb9a383b3ecc737fd23cfd6b3e95100812b9d965e99179d088853ce536f4a36b65d11ccf9261800298517ac270e3f111efa994b4
data/README.md CHANGED
@@ -37,8 +37,8 @@ Or install it yourself as:
37
37
  For example, add `terminal-notifier` configuration section like this:
38
38
 
39
39
  ```
40
- <match terminal-notifier.**>
41
- type terminal-notifier
40
+ <match terminal_notifier.**>
41
+ @type terminal_notifier
42
42
  title test
43
43
  sub_title sub
44
44
  </match>
@@ -49,8 +49,8 @@ Also you can specify app ID to activate like this:
49
49
  This example is activating Terminal.app.
50
50
 
51
51
  ```
52
- <match terminal-notifier.**>
53
- type terminal-notifier
52
+ <match terminal_notifier.**>
53
+ @type terminal_notifier
54
54
  title test
55
55
  sub_title sub
56
56
  activate com.apple.Terminal
@@ -71,11 +71,11 @@ In more detail about activatation, please refer to the [TerminalNotifier documen
71
71
 
72
72
  This is a filter version of terminal-notifier fluentd plugin.
73
73
 
74
- For example, add `terminal-notifier` configuration section like this:
74
+ For example, add `terminal_notifier` configuration section like this:
75
75
 
76
76
  ```
77
- <filter filter.terminal-notifier.**>
78
- type terminal-notifier
77
+ <filter filter.terminal_notifier.**>
78
+ @type terminal_notifier
79
79
  title filtered
80
80
  sub_title sub_filtered
81
81
  </filter>
@@ -86,8 +86,8 @@ Also you can specify app ID to activate like this:
86
86
  This example is activating Terminal.app.
87
87
 
88
88
  ```
89
- <filter filter.terminal-notifier.**>
90
- type terminal-notifier
89
+ <filter filter.terminal_notifier.**>
90
+ @type terminal_notifier
91
91
  title filtered
92
92
  sub_title sub_filtered
93
93
  activate com.apple.Terminal
@@ -1,31 +1,36 @@
1
1
  <source>
2
- type forward
2
+ @type forward
3
3
  port 24224
4
4
  bind 0.0.0.0
5
5
  </source>
6
6
 
7
- <match terminal-notifier.**>
8
- type copy
7
+ <match terminal_notifier.**>
8
+ @type copy
9
9
  <store>
10
- type terminal-notifier
10
+ type terminal_notifier
11
11
  title test
12
12
  sub_title sub
13
13
  </store>
14
14
  <store>
15
- type stdout
15
+ @type stdout
16
16
  </store>
17
17
  </match>
18
18
 
19
- <filter filter.terminal-notifier.**>
20
- type stdout
19
+ <filter filter.terminal_notifier.**>
20
+ @type stdout
21
21
  </filter>
22
22
 
23
- <filter filter.terminal-notifier.**>
24
- type terminal-notifier
23
+ <filter filter.terminal_notifier.**>
24
+ @type terminal_notifier
25
25
  title filtered_test
26
26
  sub_title filtered_sub
27
27
  </filter>
28
28
 
29
- <match filter.terminal-notifier.**>
30
- type null
29
+ <match filter.terminal_notifier.**>
30
+ @type null
31
31
  </match>
32
+
33
+ # for multi workers settings
34
+ # <system>
35
+ # workers 2
36
+ # </system>
@@ -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.1.0"
7
+ spec.version = "0.2.0"
8
8
  spec.authors = ["Hiroshi Hatake"]
9
9
  spec.email = ["cosmo0920.wp@gmail.com"]
10
10
 
@@ -5,7 +5,7 @@ module Fluent::Plugin
5
5
  class TerminalNotifierFilter < Filter
6
6
  include Fluent::NotifyUtil
7
7
 
8
- Fluent::Plugin.register_filter('terminal-notifier', self);
8
+ Fluent::Plugin.register_filter('terminal_notifier', self);
9
9
 
10
10
  DEFAULT_TITLE = "Fluentd Notification"
11
11
  DEFAULT_SUB_TITLE = "Fluentd Notification Sub Title"
@@ -5,7 +5,7 @@ module Fluent::Plugin
5
5
  class TerminalNotifierOutput < Output
6
6
  include Fluent::NotifyUtil
7
7
 
8
- Fluent::Plugin.register_output('terminal-notifier', self);
8
+ Fluent::Plugin.register_output('terminal_notifier', self);
9
9
 
10
10
  DEFAULT_TITLE = "Fluentd Notification"
11
11
  DEFAULT_SUB_TITLE = "Fluentd Notification Sub Title"
@@ -18,6 +18,10 @@ module Fluent::Plugin
18
18
  super
19
19
  end
20
20
 
21
+ def multi_workers_ready?
22
+ true
23
+ end
24
+
21
25
  def process(tag, es)
22
26
  es.each{|time,record|
23
27
  notify(time, record)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-terminal_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi Hatake
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-11 00:00:00.000000000 Z
11
+ date: 2017-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler