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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d814646f59ffb169d2ea3048d231aa770eca7028c38b5bd58e3b950a6adb6ab1
4
- data.tar.gz: 03f0d5138de802a0e99e340294a2fe2c5efdcfe2c7e7888e572343192a711326
3
+ metadata.gz: 6618d3e9884d9b348147b57d84d2c13554ae87b323e1aa784cb5c3bf062e3ae7
4
+ data.tar.gz: a58e2cdd0e07ac75f929a74263d96e0848a5f2cab12e090d3b7aa7c04b9e50da
5
5
  SHA512:
6
- metadata.gz: c2145817a737547e7038f043492695a73e75f89f05ce0ddad6e16a25c342ab43fed011343b140e529021263fbef7cb8732e78ef00ab55a36d4f8f9b73997dccc
7
- data.tar.gz: ab99fae8b777bf91239acb91d1ea6ad77f173d6a97c1fc0476b730c5ec622ec9d2464810f73cd24450740bb8e5a21feb36643fed4acf951b65ab1e81b9f0d354
6
+ metadata.gz: 936fce15231ac524bc19bb872e4591137a0139d6b858d77f96499b7b2041942206e3d39f758d0d49f1723ad435bc42262390ad2a7a1ed3a3d04ce2b1a52c03cd
7
+ data.tar.gz: 7fcebcb3aadf1d406e51a05d303490ebae5758f6df70bc777200aade4b2cf01c9aeb68b6610519f864e1a27fdd21b042910194de7e600ef005c8c4132876c647
Binary file
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 == HTTPS_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 = JSON_MIME_TYPE
125
- request['User-Agent'] = 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 => invalid_uri_error
142
- raise Fluent::ConfigError, invalid_uri_error
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.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
- date: 2018-02-01 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDGjCCAgKgAwIBAgIBATANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA9lZmly
14
+ L0RDPXNveWxlbnQwHhcNMjAwMzA3MDEzNzUwWhcNMjEwMzA3MDEzNzUwWjAaMRgw
15
+ FgYDVQQDDA9lZmlyL0RDPXNveWxlbnQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
16
+ ggEKAoIBAQC2DMbzgA39U+3VTMjXn+0jnOQyLdmXQ5EXgSLKCgBLIcFTc9J47Th0
17
+ 7Yb/f4RzWh49/EkDBiDtLqFeKBYsj3q0e8tRCAs32NtVyl/4FDyJvWsK3R2tcXOV
18
+ qxs48J3CgG+rFLOcMC9YF4FPTkz4p3EYGFVjZTbiqyVVuIZzWtrwdZesBVgpBRyN
19
+ 8sEyNoi8vcDiOmEwf9/TVMTDf/wu6a+i3LNVGYWlvgMJRssaAnj/IbFFtPTz30Hx
20
+ eTUdfJu8YbwRspfFzcJGLf32E7vXfmHHqNzqjh4zD9sVpvTHbqLLsgVa+nYHPHAe
21
+ dzSZ5gZjG1oZ7hZDCJoEPj0oCHT0qkuXAgMBAAGjazBpMAkGA1UdEwQCMAAwCwYD
22
+ VR0PBAQDAgSwMB0GA1UdDgQWBBSsvp1HAfA+QTjOg/ehyhv7adp0FjAXBgNVHREE
23
+ EDAOgQxlZmlyQHNveWxlbnQwFwYDVR0SBBAwDoEMZWZpckBzb3lsZW50MA0GCSqG
24
+ SIb3DQEBCwUAA4IBAQBsJ7htnm3RB5xQwzC2agRAgG2ax5uaD6lCEPWshGJbfT6v
25
+ jaRrwrPSbaxBTD2v8QpXJe/fALJKWHUbNZilZU2t7HyQkfSyVQyLYcjo7lWFoHA1
26
+ z0YB3dCGcMkvLa7r73ynEtYbnYfesbXVlcRJG7SgJqWvZMnj1HnYfBevlcjSBFy2
27
+ 5xZKSwreHM+va8McxpEZmG3ecdefRQ1u+xZabamN2hhel3nKF1BUBqgxYWXYRkZP
28
+ VIAqJBK/gwFlRxVYjmi2w4Ouc4wL8HtX104yQqOuD9gVPN6PJecue66As7i2I/2q
29
+ EARmnubhy24GUdxEooHV6pOs1mLLRuFepMgBnHfs
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.10'
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.10'
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: '11.3'
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: '11.3'
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.51'
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.51'
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: '0'
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
- rubyforge_project:
153
- rubygems_version: 2.7.3
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: []
@@ -0,0 +1 @@
1
+ '? tXs�����y�=�oUMI���]r`�B�*%'.���� <���Բ��D��Η̃l^