avro_turf 1.2.0 → 1.3.0
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/avro_turf/confluent_schema_registry.rb +4 -0
- data/lib/avro_turf/messaging.rb +6 -0
- data/lib/avro_turf/version.rb +1 -1
- data/spec/confluent_schema_registry_spec.rb +12 -0
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccc550653b8422953e55c1319f37f478d1851afab78b54c716ba23fb0e59af17
|
4
|
+
data.tar.gz: a5f4721aa89807ee5b401c9a55d69d030cc2c0b7d54764b75e350f50aec9c118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e8e81e7e00c1fb40d43bc8ef03c64af8b4d79c921d5eaac9b32ea0039e4c877956612e98061948d7dbc0b88b320a96858b7d31d6f9f9b7bd30bead3da985035
|
7
|
+
data.tar.gz: 3301e480eb51017cfd58fad552afc2b7c60b44545518fcaa8f892f90c15c7c03eb176e56af1447692d660c912cba1b22a20044f15d23d7ba949af3d075eed23b
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,8 @@ class AvroTurf::ConfluentSchemaRegistry
|
|
7
7
|
url,
|
8
8
|
logger: Logger.new($stdout),
|
9
9
|
proxy: nil,
|
10
|
+
user: nil,
|
11
|
+
password: nil,
|
10
12
|
client_cert: nil,
|
11
13
|
client_key: nil,
|
12
14
|
client_key_pass: nil,
|
@@ -21,6 +23,8 @@ class AvroTurf::ConfluentSchemaRegistry
|
|
21
23
|
@connection = Excon.new(
|
22
24
|
url,
|
23
25
|
headers: headers,
|
26
|
+
user: user,
|
27
|
+
password: password,
|
24
28
|
client_cert: client_cert,
|
25
29
|
client_key: client_key,
|
26
30
|
client_key_pass: client_key_pass,
|
data/lib/avro_turf/messaging.rb
CHANGED
@@ -34,6 +34,8 @@ class AvroTurf
|
|
34
34
|
# namespace - The String default schema namespace.
|
35
35
|
# logger - The Logger that should be used to log information (optional).
|
36
36
|
# proxy - Forward the request via proxy (optional).
|
37
|
+
# user - User for basic auth (optional).
|
38
|
+
# password - Password for basic auth (optional).
|
37
39
|
# client_cert - Name of file containing client certificate (optional).
|
38
40
|
# client_key - Name of file containing client private key to go with client_cert (optional).
|
39
41
|
# client_key_pass - Password to go with client_key (optional).
|
@@ -47,6 +49,8 @@ class AvroTurf
|
|
47
49
|
namespace: nil,
|
48
50
|
logger: nil,
|
49
51
|
proxy: nil,
|
52
|
+
user: nil,
|
53
|
+
password: nil,
|
50
54
|
client_cert: nil,
|
51
55
|
client_key: nil,
|
52
56
|
client_key_pass: nil,
|
@@ -61,6 +65,8 @@ class AvroTurf
|
|
61
65
|
registry_url,
|
62
66
|
logger: @logger,
|
63
67
|
proxy: proxy,
|
68
|
+
user: user,
|
69
|
+
password: password,
|
64
70
|
client_cert: client_cert,
|
65
71
|
client_key: client_key,
|
66
72
|
client_key_pass: client_key_pass,
|
data/lib/avro_turf/version.rb
CHANGED
@@ -3,6 +3,8 @@ require 'avro_turf/confluent_schema_registry'
|
|
3
3
|
require 'avro_turf/test/fake_confluent_schema_registry_server'
|
4
4
|
|
5
5
|
describe AvroTurf::ConfluentSchemaRegistry do
|
6
|
+
let(:user) { "abc" }
|
7
|
+
let(:password) { "xxyyzz" }
|
6
8
|
let(:client_cert) { "test client cert" }
|
7
9
|
let(:client_key) { "test client key" }
|
8
10
|
let(:client_key_pass) { "test client key password" }
|
@@ -18,4 +20,14 @@ describe AvroTurf::ConfluentSchemaRegistry do
|
|
18
20
|
)
|
19
21
|
}
|
20
22
|
end
|
23
|
+
|
24
|
+
it_behaves_like "a confluent schema registry client" do
|
25
|
+
let(:registry) {
|
26
|
+
described_class.new(
|
27
|
+
registry_url,
|
28
|
+
user: user,
|
29
|
+
password: password,
|
30
|
+
)
|
31
|
+
}
|
32
|
+
end
|
21
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avro_turf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Schierbeck
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avro
|
@@ -156,7 +156,7 @@ dependencies:
|
|
156
156
|
- - ">="
|
157
157
|
- !ruby/object:Gem::Version
|
158
158
|
version: '0'
|
159
|
-
description:
|
159
|
+
description:
|
160
160
|
email:
|
161
161
|
- dasch@zendesk.com
|
162
162
|
executables: []
|
@@ -250,9 +250,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
250
250
|
- !ruby/object:Gem::Version
|
251
251
|
version: '0'
|
252
252
|
requirements: []
|
253
|
-
|
254
|
-
|
255
|
-
signing_key:
|
253
|
+
rubygems_version: 3.1.2
|
254
|
+
signing_key:
|
256
255
|
specification_version: 4
|
257
256
|
summary: A library that makes it easier to use the Avro serialization format from
|
258
257
|
Ruby
|