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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fb4a66df9f48748c3acbedab0915dfba8f4a257
4
- data.tar.gz: 3beb51c6bc9be5041e1c3ca28a1e34b23e09ec46
3
+ metadata.gz: 84dd64ebbce56d0161a06afdaad0f7b0b0e92ca8
4
+ data.tar.gz: 26fbf27b85376d6145fb9c8417f0f78799f24245
5
5
  SHA512:
6
- metadata.gz: 6bcdb05e89e5f84c07ee8d6e34da33c9bf6be22ad15fa614b93f6c5dba4e3b84a43d6ea7e189aeabf663cd8d4ee2c56f921958ba85dd1c9445d30beb34a33bca
7
- data.tar.gz: d4e79e72bb217ce3559c991feff51b1e33fce365011028fb83b6fca2edcc74fc7195ec1d4922224177bc06fbcfd73c6affb824a0191c4fa25c9b519a0733e67f
6
+ metadata.gz: b6b1da613ef72f3a6ed6eb71c2848cc372263fded0a08a12cd9d2e221713b33195081e9a483471364bb37a91577b13983c2a7e72cac2eb917f369c22b079e8d2
7
+ data.tar.gz: 7b379e8fbce5ac4d77409f3a8e502bd62e8d03d944754f39ef4949f43f31dfd1c5ae210949ffa94964ae8ca79ed77c8fdec854f9be4a4b419cf4cc3fe5830035
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Fluent::Plugin::Mail
1
+ # Fluent::Plugin::Mail, a plugin for [Fluentd](http://fluentd.org)
2
2
 
3
3
 
4
4
  ## Installation
@@ -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.4'
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
- $log.warn "out_mail: failed to send notice to #{@host}:#{@port}, subject: #{subject}, message: #{msg}"
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
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: 2013-10-27 00:00:00.000000000 Z
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.1.10
90
+ rubygems_version: 2.0.3
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: output plugin for Mail