fluent-plugin-http-client 0.2.0 → 0.2.1

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: 6835c3077afc12efd4afd6157bafc3d208cc96798279108d29f4c5772fd0526c
4
- data.tar.gz: 45b78f747dddbfc5865f5ee95c9434372be5498f733cbc3bf3549b0a4a090efd
3
+ metadata.gz: 68f891862d8ed0d65bee31528b8ea940360140f5f364c00b5ffb0e8d5028a00e
4
+ data.tar.gz: c46abc77c9c14ef2c8d882d87ad5e9ed6fa44526a8285149d39d61bf9c6f5f63
5
5
  SHA512:
6
- metadata.gz: 5907e703bf09ac542540773a4e5e9d296156350faf306df6d19ebfcec75a1651c278a59d30aa63d583dc605727d556d0df6f5bab8f473e98f8f16d56a0822894
7
- data.tar.gz: 35d19dc658bdab22d22a485be85959ef34f38b0cbe3d95f555f641163c5950bb1ebcc9b2c8f74992c00dabb55ff34a733a14e7b3941d406f7f2047e1524f23e0
6
+ metadata.gz: 7fffd4e41722471f9008c51295a0cb37ec00983288c2f30703ba66addbdfb177064da9bf224902a3aa1792f8b8ec124aea6fe4cd63cf71b0069c9afd7b18dabd
7
+ data.tar.gz: b5e58dadf0a8de160a46558840bad56f606d29caa63b27e8dd08d8739376962f950fe56de7481b18e9996289349e7aaf287d9eb72225be320cce9ab2f025c42f
data/example/cmd.sh ADDED
@@ -0,0 +1 @@
1
+ bundle exec fluentd -c fluentd.conf
data/example/fluentd.conf CHANGED
@@ -7,6 +7,7 @@
7
7
  tag request
8
8
  </source>
9
9
 
10
+
10
11
  <match request>
11
12
  @type stdout
12
13
  </match>
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module HttpClient
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
6
6
  end
7
7
  end
@@ -107,17 +107,17 @@ module Fluent
107
107
  response = @client.send(@http_method)
108
108
 
109
109
  {
110
- status: response.status,
111
- success: response.success?,
112
- response: response.body
110
+ 'status' => response.status,
111
+ 'success' => response.success?,
112
+ 'response' => response.body
113
113
  }
114
114
  end
115
115
 
116
116
  def parse_exception(exception)
117
117
  {
118
- status: -1,
119
- success: false,
120
- error: exception.to_s
118
+ 'status' => -1,
119
+ 'success' => false,
120
+ 'error' => exception.to_s
121
121
  }
122
122
  end
123
123
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-http-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Tych
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-23 00:00:00.000000000 Z
11
+ date: 2022-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bump
@@ -257,6 +257,7 @@ files:
257
257
  - LICENSE.txt
258
258
  - README.md
259
259
  - Rakefile
260
+ - example/cmd.sh
260
261
  - example/fluentd.conf
261
262
  - fluent-plugin-http-client.gemspec
262
263
  - lib/fluent/plugin/http_client/version.rb