fluent-plugin-mattermost 0.2.1 → 0.2.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb5bc91515a590fa4df017f10fa3c0d44013f9ab43fc2f6ce650f26a0b4987d9
4
- data.tar.gz: 66e1426bf96790847bf41036ca12b5d3100d52a491ec74f9399e64b068a212ba
3
+ metadata.gz: 630290ebea4e6616f66e6a563c555d539e2e158e3e76586c9b81261f14f879e4
4
+ data.tar.gz: d7400ecdfb29dee1af6c351f09310493d4a29ed69647acfe9ab9d056db46aa4c
5
5
  SHA512:
6
- metadata.gz: 2f7c099d2fcb5d4682e3dd334a98c91c32707bb5df0fb60df71d0dbcd8374f7069fbce2f1f8370c8f90e8f3f645bd3f974512e19dad256edace2b6fdaac66b97
7
- data.tar.gz: d34df3431bc1ba45dbf181f3989c84240af9f759525392b1daaa03fd6c65db25b9a2c787a4aee8f05fecd7561843cc8d3f74119515217fca2a3172d43ac5a06f
6
+ metadata.gz: d5ae7e48b3990735336ebc856812bc60a76bd5035e0da78f41c478e83e1c31a3f840d84f87c8040eaf5e6c19a2fe06f51682c6de756b6454fd992a816affbb5e
7
+ data.tar.gz: e35383422cf50d50bad30d4566a56f35e08d3b92b3a7a7a7aa7552e7bf09dab5822c7735c4e377131e2f1ac923376a033c7e204133c1be6f5bda7f9a84607a3b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ### [0.2.2](https://github.com/levigo-systems/fluent-plugin-mattermost/compare/v0.2.1...v0.2.2) (2022-02-23)
4
+
5
+
6
+ ### Features
7
+
8
+ * added a new option to set ca_path manually ([aabd610](https://github.com/levigo-systems/fluent-plugin-mattermost/commit/aabd6101c811ac6a6d78f2c2105e83b10833779f))
9
+
3
10
  ### [0.2.1](https://github.com/levigo-systems/fluent-plugin-mattermost/compare/v0.2.0...v0.2.1) (2022-02-11)
4
11
 
5
12
 
data/README.md CHANGED
@@ -30,6 +30,7 @@ Link for
30
30
  message_title mattermost
31
31
  message %s
32
32
  enable_tls true
33
+ ca_path /etc/ssl/certs/
33
34
  </match>
34
35
  ```
35
36
 
@@ -43,6 +44,7 @@ Link for
43
44
  |message_title|title you want to add to the message|string|fluent_title_default
44
45
  |message|The message you want to send, can be a static message, which you add at this point, or you can receive the fluent infos with the %s|string|nil
45
46
  |enable_tls|you can set the communication channel if it uses tls|bool|true|
47
+ |ca_path|you can set the path of the certificates|string|nil|
46
48
 
47
49
  ## Copyright
48
50
 
@@ -24,6 +24,8 @@ module Fluent
24
24
 
25
25
  config_param :enable_tls, :bool, default: true
26
26
 
27
+ config_param :ca_path, :string, default: nil
28
+
27
29
  def configure(conf)
28
30
  super
29
31
  end
@@ -53,6 +55,9 @@ module Fluent
53
55
 
54
56
  https = Net::HTTP.new(url.host, url.port)
55
57
  https.use_ssl = @enable_tls
58
+ if !@ca_path.nil? and @enable_tls == true
59
+ https.ca_path = @ca_path
60
+ end
56
61
 
57
62
  request = Net::HTTP::Post.new(url)
58
63
  request["Content-Type"] = "application/json"
@@ -1,3 +1,3 @@
1
1
  module Release
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-mattermost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierluigi Minardi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-11 00:00:00.000000000 Z
11
+ date: 2022-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler