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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4db5711b3d59cd5a279a39e80e9f3088c80aa8fe
4
- data.tar.gz: f374f06bfdeff84e1ff5c7bcf22460764581719d
3
+ metadata.gz: bdeb649b5f4c36f0269b6531c302a3ee3dce4b40
4
+ data.tar.gz: 8f62098c98e519470d16f8e68433a4767635569d
5
5
  SHA512:
6
- metadata.gz: c38a8bed34a2b8c5709a492df0d47bf4dea70f67e8b7d934a04268ed80730033623b1f8129fe1b5e8e9c5d0e54dc6154b5c9f139f1bf09aa5719013c81afddb8
7
- data.tar.gz: 7c4097817a6e980910947ed2164fe996a18f994b8c48b7a35bc70f4b6a046b55091f9d796e84b1fd47104c48b6246ac9bbc466476d0b9fef01dafa193b0c9725
6
+ metadata.gz: 29a8d8cf805fde09f4b26153c1e84b079d4b93abdf39271b0433334ffc8f1e366df22d1bea357692b209bb92dbcf4fee13ed5337bf44a6663c0ae1e1ff7d0fe4
7
+ data.tar.gz: a6a04f1deb7944f807baa570d1a6f3872fde90caf2d31c159558316da5e11d9f2fac8fa56fa02c2039243a08aae58aaa9a056873183dbdb6a821be5d39d42b23
data/.travis.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
3
  - 2.1
5
4
  - 2.2
5
+ - 2.3.1
6
6
  gemfile:
7
7
  - Gemfile
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.3"
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", "~> 0.12.0"
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
- module Fluent
1
+ require 'fluent/plugin/filter'
2
+ require_relative './notify_util'
3
+
4
+ module Fluent::Plugin
2
5
  class TerminalNotifierFilter < Filter
3
- require_relative './notify_util'
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
- module Fluent
1
+ require 'fluent/plugin/output'
2
+ require_relative './notify_util'
3
+
4
+ module Fluent::Plugin
2
5
  class TerminalNotifierOutput < Output
3
- require_relative './notify_util'
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 emit(tag, es, chain)
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.3
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: 0.12.0
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: 0.12.0
74
+ version: '2'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: terminal-notifier
71
77
  requirement: !ruby/object:Gem::Requirement