fluent-plugin-growl 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_growl.rb +5 -8
- metadata +7 -7
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ begin
|
|
12
12
|
gemspec.homepage = "https://github.com/takei-yuya/fluent-plugin-growl"
|
13
13
|
gemspec.has_rdoc = false
|
14
14
|
gemspec.require_paths = ["lib"]
|
15
|
-
gemspec.add_dependency "
|
15
|
+
gemspec.add_dependency "fluentd", "~> 0.10.0"
|
16
16
|
gemspec.add_dependency "ruby-growl", "~> 3.0"
|
17
17
|
gemspec.test_files = Dir["test/**/*.rb"]
|
18
18
|
gemspec.files = Dir["bin/**/*", "lib/**/*", "test/**/*.rb"] + %w[VERSION AUTHORS Rakefile]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
@@ -13,11 +13,9 @@ module Fluent
|
|
13
13
|
DEFAULT_NOTIFICATION_NAME = "Fluent Defalt Notification"
|
14
14
|
DEFAULT_TITLE = "Fluent Notification"
|
15
15
|
|
16
|
-
def initialize
|
17
|
-
@growl
|
18
|
-
end
|
19
|
-
|
20
16
|
def configure(conf)
|
17
|
+
super
|
18
|
+
|
21
19
|
server = conf['server'] || DEFAULT_SERVER
|
22
20
|
password = conf['password'] || DEFAULT_PASSWORD
|
23
21
|
appname = conf['appname'] || DEFAULT_APPNAME
|
@@ -43,10 +41,9 @@ module Fluent
|
|
43
41
|
end
|
44
42
|
|
45
43
|
def emit(tag, es, chain)
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
notifyname = e.record["notify"] || DEFAULT_NOTIFICATION_NAME
|
44
|
+
title = record["title"] || DEFAULT_TITLE
|
45
|
+
message = record["message"] || "#{record.to_json} at #{Time.at(time).localtime}"
|
46
|
+
notifyname = record["notify"] || DEFAULT_NOTIFICATION_NAME
|
50
47
|
notify = @notifies[notifyname]
|
51
48
|
unless notify
|
52
49
|
# TODO: ConfigError?
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- TAKEI Yuya
|
@@ -14,11 +14,11 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-10-
|
17
|
+
date: 2011-10-16 00:00:00 +09:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
21
|
+
name: fluentd
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
@@ -27,9 +27,9 @@ dependencies:
|
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
segments:
|
29
29
|
- 0
|
30
|
-
-
|
31
|
-
-
|
32
|
-
version: 0.
|
30
|
+
- 10
|
31
|
+
- 0
|
32
|
+
version: 0.10.0
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|