fluent-plugin-mail 0.2.4 → 0.2.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: 481b1b97a2f2766802bcbd11bb3eb4d351e59fc6
4
- data.tar.gz: 68d5a406f5cba6041b7086ced8234d40050685cf
3
+ metadata.gz: ce1428de5b8be38c7464d257acd907a57384eb7d
4
+ data.tar.gz: fed5e53b42c11b651559518f9680dde038b3c575
5
5
  SHA512:
6
- metadata.gz: d934bc3e3e385f876ef068a213738f28a752046a24922bb76f69ba684d820a138f23d7daedc2d134815586165aeaf7b3447740878f206617f31ce700d983de5e
7
- data.tar.gz: fb72bf8db210ef6e3606583b5446a1a5b284c77349e9167e7f04f115ccdaa0306c8358388cae11959b2ca419404b320fa9d39702915fef81cc2e6d6213a1a9c3
6
+ metadata.gz: cd49b7942e142649291f7b33cdaff7e6d0bae71aa49d875b270ae3d0dd03c0b69d6769186ae5b66089a39c38476e90e60c0d4879c97929c681a8e5e340139cac
7
+ data.tar.gz: 3d4281ab00c49b97a49ec2000d8a3e7aecf3e83fed8a3163a331cc481b82458ddd3c95648696e248f0b9e919738793c57e19766d5d2e044c861467d589bb4dca
data/.travis.yml CHANGED
@@ -1,10 +1,8 @@
1
1
  rvm:
2
- - 1.9.3
3
- - 2.0.0
4
- - 2.1.*
5
2
  - 2.2.*
3
+ - 2.3.*
4
+ - 2.4.*
6
5
  gemfile:
7
6
  - Gemfile
8
7
  - Gemfile.fluentd.lt.0.12
9
-
10
8
  before_install: gem update bundler
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.2.5 (2017-11-25)
2
+
3
+ Enhancements:
4
+
5
+ * Add `authtype` option (thanks to Ruilin Huang @hrl)
6
+
1
7
  # 0.2.4
2
8
 
3
9
  Enhancements:
data/README.md CHANGED
@@ -144,7 +144,7 @@ configure td-agent.conf for single node
144
144
  </match>
145
145
 
146
146
 
147
- ### MulatiNode's syslog check
147
+ ### MultiNode's syslog check
148
148
 
149
149
  use config_expander(https://github.com/tagomoris/fluent-plugin-config-expander)
150
150
 
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
12
12
  gem.name = "fluent-plugin-mail"
13
13
  gem.require_paths = ["lib"]
14
- gem.version = '0.2.4'
14
+ gem.version = '0.2.5'
15
15
  gem.license = "Apache-2.0"
16
16
 
17
17
  gem.add_runtime_dependency "fluentd"
@@ -36,6 +36,8 @@ class Fluent::MailOutput < Fluent::Output
36
36
  config_param :user, :string, :default => nil
37
37
  desc "Password for SMTP Auth"
38
38
  config_param :password, :string, :default => nil, :secret => true
39
+ desc "Type for SMTP Auth such as 'plain', 'login', and 'cram_md5'"
40
+ config_param :authtype, :string, :default => 'plain'
39
41
  desc "MAIL FROM this value"
40
42
  config_param :from, :string, :default => 'localhost@localdomain'
41
43
  desc "Mail destination (To)"
@@ -212,10 +214,10 @@ class Fluent::MailOutput < Fluent::Output
212
214
  smtp = Net::SMTP.new(@host, @port)
213
215
 
214
216
  if @user and @password
215
- smtp_auth_option = [@domain, @user, @password, :plain]
217
+ smtp_auth_option = [@domain, @user, @password, @authtype.to_sym]
216
218
  smtp.enable_starttls if @enable_starttls_auto
217
219
  smtp.enable_tls if @enable_tls
218
- smtp.start(@domain,@user,@password,:plain)
220
+ smtp.start(@domain, @user, @password, @authtype.to_sym)
219
221
  else
220
222
  smtp.start
221
223
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-mail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuichi UEMURA
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-07 00:00:00.000000000 Z
12
+ date: 2017-11-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project:
98
- rubygems_version: 2.5.1
98
+ rubygems_version: 2.6.13
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: output plugin for Mail