avro_turf 1.2.0 → 1.3.0

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: 8fc2d29f1112e649cc2cd5ec96f2126a0ea5fa8f46ebee01d908cdceeac8da0d
4
- data.tar.gz: e1989abd9d9b0e5db24f360e96e7bce7ce18e5f488cc794d25a2b3fae6102e66
3
+ metadata.gz: ccc550653b8422953e55c1319f37f478d1851afab78b54c716ba23fb0e59af17
4
+ data.tar.gz: a5f4721aa89807ee5b401c9a55d69d030cc2c0b7d54764b75e350f50aec9c118
5
5
  SHA512:
6
- metadata.gz: f562a66ba746d2c0e4bee8b8f3a0e7fcf65900f261eca444986c8ff6c68231e67aa9c4dc659213721d0d09c65fd9273e12e158938c0773baa48cf86598d6bef9
7
- data.tar.gz: 53e3640900a3b64038fe063f5dadab2049417490be1833bb5f17124307abe628af64ea0c68b5bdc2bd4ef2f6e58bbfac287696eaf5ece9a35ddb7c2ab8e5127e
6
+ metadata.gz: 8e8e81e7e00c1fb40d43bc8ef03c64af8b4d79c921d5eaac9b32ea0039e4c877956612e98061948d7dbc0b88b320a96858b7d31d6f9f9b7bd30bead3da985035
7
+ data.tar.gz: 3301e480eb51017cfd58fad552afc2b7c60b44545518fcaa8f892f90c15c7c03eb176e56af1447692d660c912cba1b22a20044f15d23d7ba949af3d075eed23b
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## v1.3.0
6
+
7
+ - Add support for plain user/password auth to ConfluentSchemaRegistry (#120)
8
+
5
9
  ## v1.2.0
6
10
 
7
11
  - Expose `fetch_schema`, `fetch_schema_by_id` and `register_schema` schema in `Messaging` interface (#117, #119)
@@ -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,
@@ -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,
@@ -1,3 +1,3 @@
1
1
  class AvroTurf
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
@@ -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.2.0
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-08-10 00:00:00.000000000 Z
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
- rubyforge_project:
254
- rubygems_version: 2.7.6
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