fluent-plugin-mail 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/fluent-plugin-mail.gemspec +1 -1
- data/lib/fluent/plugin/out_mail.rb +6 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84dd64ebbce56d0161a06afdaad0f7b0b0e92ca8
|
4
|
+
data.tar.gz: 26fbf27b85376d6145fb9c8417f0f78799f24245
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6b1da613ef72f3a6ed6eb71c2848cc372263fded0a08a12cd9d2e221713b33195081e9a483471364bb37a91577b13983c2a7e72cac2eb917f369c22b079e8d2
|
7
|
+
data.tar.gz: 7b379e8fbce5ac4d77409f3a8e502bd62e8d03d944754f39ef4949f43f31dfd1c5ae210949ffa94964ae8ca79ed77c8fdec854f9be4a4b419cf4cc3fe5830035
|
data/README.md
CHANGED
data/fluent-plugin-mail.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
13
13
|
gem.name = "fluent-plugin-mail"
|
14
14
|
gem.require_paths = ["lib"]
|
15
|
-
gem.version = '0.0.
|
15
|
+
gem.version = '0.0.5'
|
16
16
|
gem.add_development_dependency "fluentd"
|
17
17
|
gem.add_development_dependency "rake"
|
18
18
|
gem.add_runtime_dependency "fluentd"
|
@@ -1,6 +1,11 @@
|
|
1
1
|
class Fluent::MailOutput < Fluent::Output
|
2
2
|
Fluent::Plugin.register_output('mail', self)
|
3
3
|
|
4
|
+
# Define `log` method for v0.10.42 or earlier
|
5
|
+
unless method_defined?(:log)
|
6
|
+
define_method("log") { $log }
|
7
|
+
end
|
8
|
+
|
4
9
|
config_param :out_keys, :string, :default => ""
|
5
10
|
config_param :message, :string, :default => nil
|
6
11
|
config_param :message_out_keys, :string, :default => ""
|
@@ -88,7 +93,7 @@ class Fluent::MailOutput < Fluent::Output
|
|
88
93
|
begin
|
89
94
|
res = sendmail(subject, msg)
|
90
95
|
rescue
|
91
|
-
|
96
|
+
log.warn "out_mail: failed to send notice to #{@host}:#{@port}, subject: #{subject}, message: #{msg}"
|
92
97
|
end
|
93
98
|
end
|
94
99
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-mail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuichi UEMURA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
89
|
rubyforge_project: fluent-plugin-mail
|
90
|
-
rubygems_version: 2.
|
90
|
+
rubygems_version: 2.0.3
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: output plugin for Mail
|