sk-fluent-plugin-azureeventhubs 0.0.19 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/aync-fluent-plugin-azureeventhubs.gemspec +1 -1
- data/lib/fluent/plugin/azureeventhubs/http.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4806bb101969b8f798ce67ae0bfb5e96ff817df6b5db80e80347793f89420756
|
4
|
+
data.tar.gz: 31995025f20cfb1aaef6669c517c75ca1acc7cbc876e036b750ffe9ef693f6be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaeec216c6c0f9ba2eaf455c0ba6af3d98393de87035095d6b23db143105d6f7bf9888b9c2caa6a9ffde2a3d6b63a91e4fa3c2f508681d5b43592fd313e2d593
|
7
|
+
data.tar.gz: 8c6e44ec005a7a1c2bf9b933855258154cdcb8a82e14d46382f4363e2c0d6fa4d8cde58866d945fec8fa085a512a50c019a44d520675a3cbfe45d99d1cc3cef3
|
data/Gemfile.lock
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
spec.name = "sk-fluent-plugin-azureeventhubs"
|
18
|
-
spec.version = "0.0.
|
18
|
+
spec.version = "0.0.21"
|
19
19
|
spec.required_ruby_version = ">= 2.1.0"
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.7"
|
@@ -4,7 +4,6 @@ class AzureEventHubsHttpSender
|
|
4
4
|
require 'openssl'
|
5
5
|
require 'base64'
|
6
6
|
require 'rest-client'
|
7
|
-
require 'json'
|
8
7
|
require 'cgi'
|
9
8
|
require 'time'
|
10
9
|
@connection_string = connection_string
|
@@ -47,8 +46,9 @@ class AzureEventHubsHttpSender
|
|
47
46
|
end
|
48
47
|
|
49
48
|
def send_w_properties(payload, properties)
|
49
|
+
require 'yajl'
|
50
50
|
token = generate_sas_token(@uri.to_s)
|
51
|
-
RestClient.post("#{@uri.to_s}?timeout=10&api-version=2014-01", payload
|
51
|
+
RestClient.post("#{@uri.to_s}?timeout=10&api-version=2014-01", Yajl::Encoder.encode(payload),
|
52
52
|
{ 'Content-Type' => 'application/atom+xml;type=entry;charset=utf-8',
|
53
53
|
'Authorization' => token
|
54
54
|
})
|