fluent-plugin-http 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/fluent/plugin/out_http.rb +6 -14
- metadata +44 -39
- metadata.gz.sig +1 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6618d3e9884d9b348147b57d84d2c13554ae87b323e1aa784cb5c3bf062e3ae7
|
4
|
+
data.tar.gz: a58e2cdd0e07ac75f929a74263d96e0848a5f2cab12e090d3b7aa7c04b9e50da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 936fce15231ac524bc19bb872e4591137a0139d6b858d77f96499b7b2041942206e3d39f758d0d49f1723ad435bc42262390ad2a7a1ed3a3d04ce2b1a52c03cd
|
7
|
+
data.tar.gz: 7fcebcb3aadf1d406e51a05d303490ebae5758f6df70bc777200aade4b2cf01c9aeb68b6610519f864e1a27fdd21b042910194de7e600ef005c8c4132876c647
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
@@ -87,25 +87,17 @@ module Fluent
|
|
87
87
|
response = connect.request(post_records)
|
88
88
|
|
89
89
|
return if accept_status_code.include?(response.code)
|
90
|
+
|
90
91
|
raise ResponseError.error(post_records, response)
|
91
92
|
end
|
92
93
|
|
93
94
|
private
|
94
95
|
|
95
|
-
JSON_MIME_TYPE = 'application/json'.freeze
|
96
|
-
private_constant :JSON_MIME_TYPE
|
97
|
-
|
98
|
-
USER_AGENT = 'FluentPluginHTTP'.freeze
|
99
|
-
private_constant :USER_AGENT
|
100
|
-
|
101
|
-
HTTPS_SCHEME = 'https'.freeze
|
102
|
-
private_constant :HTTPS_SCHEME
|
103
|
-
|
104
96
|
def connect
|
105
97
|
@http ||= Net::HTTP.start(
|
106
98
|
url.host,
|
107
99
|
url.port,
|
108
|
-
use_ssl: url.scheme ==
|
100
|
+
use_ssl: url.scheme == 'https',
|
109
101
|
keep_alive_timeout: keep_alive_timeout
|
110
102
|
)
|
111
103
|
end
|
@@ -121,8 +113,8 @@ module Fluent
|
|
121
113
|
Net::HTTP::Post.new(url).tap do |request|
|
122
114
|
request.body = Oj.dump(records)
|
123
115
|
|
124
|
-
request.content_type =
|
125
|
-
request['User-Agent'] =
|
116
|
+
request.content_type = 'application/json'
|
117
|
+
request['User-Agent'] = 'FluentPluginHTTP'
|
126
118
|
|
127
119
|
if authorization_token
|
128
120
|
request['Authorization'] = "Token token=#{authorization_token}"
|
@@ -138,8 +130,8 @@ module Fluent
|
|
138
130
|
|
139
131
|
raise Fluent::ConfigError,
|
140
132
|
"Unacceptable URL scheme, expected HTTP or HTTPs: #{test_url}"
|
141
|
-
rescue URI::InvalidURIError =>
|
142
|
-
raise Fluent::ConfigError,
|
133
|
+
rescue URI::InvalidURIError => e
|
134
|
+
raise Fluent::ConfigError, e
|
143
135
|
end
|
144
136
|
|
145
137
|
def validate_accept_status_code(status_codes)
|
metadata
CHANGED
@@ -1,14 +1,34 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDGjCCAgKgAwIBAgIBATANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA9lZmly
|
14
|
+
L0RDPXNveWxlbnQwHhcNMjAwMzA3MDEzNzUwWhcNMjEwMzA3MDEzNzUwWjAaMRgw
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uFepMgBnHfs
|
30
|
+
-----END CERTIFICATE-----
|
31
|
+
date: 2021-01-01 00:00:00.000000000 Z
|
12
32
|
dependencies:
|
13
33
|
- !ruby/object:Gem::Dependency
|
14
34
|
name: fluentd
|
@@ -38,62 +58,48 @@ dependencies:
|
|
38
58
|
- - "~>"
|
39
59
|
- !ruby/object:Gem::Version
|
40
60
|
version: '3.3'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.7'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.7'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: pry
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
|
-
- - "
|
65
|
+
- - ">="
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0
|
67
|
+
version: '0'
|
62
68
|
type: :development
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
|
-
- - "
|
72
|
+
- - ">="
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0
|
74
|
+
version: '0'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: rake
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
|
-
- - "
|
79
|
+
- - ">="
|
74
80
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
81
|
+
version: '0'
|
76
82
|
type: :development
|
77
83
|
prerelease: false
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
|
-
- - "
|
86
|
+
- - ">="
|
81
87
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
88
|
+
version: '0'
|
83
89
|
- !ruby/object:Gem::Dependency
|
84
90
|
name: rubocop
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|
86
92
|
requirements:
|
87
|
-
- - "
|
93
|
+
- - ">="
|
88
94
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0
|
95
|
+
version: '0'
|
90
96
|
type: :development
|
91
97
|
prerelease: false
|
92
98
|
version_requirements: !ruby/object:Gem::Requirement
|
93
99
|
requirements:
|
94
|
-
- - "
|
100
|
+
- - ">="
|
95
101
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0
|
102
|
+
version: '0'
|
97
103
|
- !ruby/object:Gem::Dependency
|
98
104
|
name: test-unit
|
99
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,36 +128,35 @@ dependencies:
|
|
122
128
|
- - "~>"
|
123
129
|
- !ruby/object:Gem::Version
|
124
130
|
version: '2.1'
|
125
|
-
description:
|
126
|
-
email:
|
131
|
+
description:
|
132
|
+
email:
|
127
133
|
executables: []
|
128
134
|
extensions: []
|
129
135
|
extra_rdoc_files: []
|
130
136
|
files:
|
131
137
|
- lib/fluent/plugin/http/error.rb
|
132
138
|
- lib/fluent/plugin/out_http.rb
|
133
|
-
homepage:
|
139
|
+
homepage: https://github.com/soylent/fluent-plugin-http
|
134
140
|
licenses:
|
135
141
|
- Apache-2.0
|
136
142
|
metadata: {}
|
137
|
-
post_install_message:
|
143
|
+
post_install_message:
|
138
144
|
rdoc_options: []
|
139
145
|
require_paths:
|
140
146
|
- lib
|
141
147
|
required_ruby_version: !ruby/object:Gem::Requirement
|
142
148
|
requirements:
|
143
|
-
- - "
|
149
|
+
- - "~>"
|
144
150
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
151
|
+
version: '2.1'
|
146
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
153
|
requirements:
|
148
154
|
- - ">="
|
149
155
|
- !ruby/object:Gem::Version
|
150
156
|
version: '0'
|
151
157
|
requirements: []
|
152
|
-
|
153
|
-
|
154
|
-
signing_key:
|
158
|
+
rubygems_version: 3.1.4
|
159
|
+
signing_key:
|
155
160
|
specification_version: 4
|
156
161
|
summary: Fluentd output plugin that sends event records via HTTP
|
157
162
|
test_files: []
|
metadata.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
'?tXs�����y�=�oUMI���]r`�B�*%'.����<���Բ��D��Η̃l^
|