avro_schema_registry-client 0.5.0 → 0.6.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/.circleci/config.yml +10 -8
- data/.github/CODEOWNERS +1 -1
- data/CHANGELOG.md +4 -0
- data/avro_schema_registry-client.gemspec +1 -3
- data/lib/avro_schema_registry/test/fake_server.rb +3 -3
- data/lib/avro_schema_registry/version.rb +1 -1
- metadata +5 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be51e8333ad1b76b2fd6ca655c22a4729b9acb37a47cd2e297ad889c515e0daa
|
|
4
|
+
data.tar.gz: 7e100df423ebb418cfb9c4fae1ae3194bf6214063c73107f8affb64a5ba01e48
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 269c639afc60f51382c0a50c9754759e184daf43ab3827d915c52c5d81bdfaed0d8c4e8306ca06370ba0abcaba65704bb56c9fc3e4350cc3c391870ebe12740e
|
|
7
|
+
data.tar.gz: 85b02d705d4c674b63adc9cb49ca73cf7f1ab6196eafad9caee533c944bbc9bf2a696569eb7fa012ba6ad387d276f9e70bb64565e3f3f8e90fdd2105c9ec1d28
|
data/.circleci/config.yml
CHANGED
|
@@ -2,14 +2,14 @@ version: 2.1
|
|
|
2
2
|
jobs:
|
|
3
3
|
lint:
|
|
4
4
|
docker:
|
|
5
|
-
- image:
|
|
5
|
+
- image: cimg/ruby:2.7.7
|
|
6
6
|
working_directory: ~/avro_schema_registry-client
|
|
7
7
|
steps:
|
|
8
8
|
- checkout
|
|
9
9
|
- restore_cache:
|
|
10
10
|
keys:
|
|
11
|
-
- v1-gems-ruby-2.7.
|
|
12
|
-
- v1-gems-ruby-2.7.
|
|
11
|
+
- v1-gems-ruby-2.7.7-{{ checksum "avro_schema_registry-client.gemspec" }}-{{ checksum "Gemfile" }}
|
|
12
|
+
- v1-gems-ruby-2.7.7-
|
|
13
13
|
- run:
|
|
14
14
|
name: Install Gems
|
|
15
15
|
command: |
|
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
bundle clean
|
|
19
19
|
fi
|
|
20
20
|
- save_cache:
|
|
21
|
-
key: v1-gems-ruby-2.7.
|
|
21
|
+
key: v1-gems-ruby-2.7.7-{{ checksum "avro_schema_registry-client.gemspec" }}-{{ checksum "Gemfile" }}
|
|
22
22
|
paths:
|
|
23
23
|
- "vendor/bundle"
|
|
24
24
|
- "gemfiles/vendor/bundle"
|
|
@@ -30,7 +30,7 @@ jobs:
|
|
|
30
30
|
ruby_version:
|
|
31
31
|
type: string
|
|
32
32
|
docker:
|
|
33
|
-
- image:
|
|
33
|
+
- image: cimg/ruby:<< parameters.ruby_version >>
|
|
34
34
|
environment:
|
|
35
35
|
CIRCLE_TEST_REPORTS: "test-results"
|
|
36
36
|
working_directory: ~/avro_schema_registry-client
|
|
@@ -66,6 +66,8 @@ workflows:
|
|
|
66
66
|
matrix:
|
|
67
67
|
parameters:
|
|
68
68
|
ruby_version:
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
69
|
+
- 2.7.7
|
|
70
|
+
- 3.0.5
|
|
71
|
+
- 3.1.3
|
|
72
|
+
- 3.2.0
|
|
73
|
+
- 3.3.0
|
data/.github/CODEOWNERS
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
* @
|
|
1
|
+
* @salsify/pim-core-backend
|
data/CHANGELOG.md
CHANGED
|
@@ -39,9 +39,7 @@ Gem::Specification.new do |spec|
|
|
|
39
39
|
spec.add_development_dependency 'salsify_rubocop', '~> 1.27.1'
|
|
40
40
|
spec.add_development_dependency 'simplecov'
|
|
41
41
|
spec.add_development_dependency 'webmock'
|
|
42
|
-
# For AvroSchemaRegistry::FakeServer
|
|
43
|
-
spec.add_development_dependency 'sinatra'
|
|
44
42
|
|
|
45
43
|
spec.add_runtime_dependency 'avro-resolution_canonical_form', '>= 0.2.0'
|
|
46
|
-
spec.add_runtime_dependency 'avro_turf', '>=
|
|
44
|
+
spec.add_runtime_dependency 'avro_turf', '>= 1.20.1'
|
|
47
45
|
end
|
|
@@ -7,16 +7,16 @@ module AvroSchemaRegistry
|
|
|
7
7
|
class FakeServer < FakeConfluentSchemaRegistryServer
|
|
8
8
|
get '/subjects/:subject/fingerprints/:fingerprint' do
|
|
9
9
|
subject = params[:subject]
|
|
10
|
-
halt(404, SCHEMA_NOT_FOUND) unless SUBJECTS
|
|
10
|
+
halt(404, SCHEMA_NOT_FOUND) unless SUBJECTS[DEFAULT_CONTEXT]&.key?(subject)
|
|
11
11
|
|
|
12
12
|
fingerprint = params[:fingerprint]
|
|
13
13
|
fingerprint = fingerprint.to_i.to_s(16) if /^\d+$/.match?(fingerprint)
|
|
14
14
|
|
|
15
|
-
schema_id = SCHEMAS.find_index do |schema|
|
|
15
|
+
schema_id = SCHEMAS[DEFAULT_CONTEXT].find_index do |schema|
|
|
16
16
|
Avro::Schema.parse(schema).sha256_resolution_fingerprint.to_s(16) == fingerprint
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
halt(404, SCHEMA_NOT_FOUND) unless schema_id && SUBJECTS
|
|
19
|
+
halt(404, SCHEMA_NOT_FOUND) unless schema_id && SUBJECTS.dig(DEFAULT_CONTEXT, subject)&.include?(schema_id)
|
|
20
20
|
|
|
21
21
|
{ id: schema_id }.to_json
|
|
22
22
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: avro_schema_registry-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Salsify, Inc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-03-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -122,20 +122,6 @@ dependencies:
|
|
|
122
122
|
- - ">="
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
124
|
version: '0'
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
name: sinatra
|
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
|
128
|
-
requirements:
|
|
129
|
-
- - ">="
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: '0'
|
|
132
|
-
type: :development
|
|
133
|
-
prerelease: false
|
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - ">="
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: '0'
|
|
139
125
|
- !ruby/object:Gem::Dependency
|
|
140
126
|
name: avro-resolution_canonical_form
|
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -156,14 +142,14 @@ dependencies:
|
|
|
156
142
|
requirements:
|
|
157
143
|
- - ">="
|
|
158
144
|
- !ruby/object:Gem::Version
|
|
159
|
-
version:
|
|
145
|
+
version: 1.20.1
|
|
160
146
|
type: :runtime
|
|
161
147
|
prerelease: false
|
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
163
149
|
requirements:
|
|
164
150
|
- - ">="
|
|
165
151
|
- !ruby/object:Gem::Version
|
|
166
|
-
version:
|
|
152
|
+
version: 1.20.1
|
|
167
153
|
description: Client for the avro-schema-registry app
|
|
168
154
|
email:
|
|
169
155
|
- engineering@salsify.com
|
|
@@ -213,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
213
199
|
- !ruby/object:Gem::Version
|
|
214
200
|
version: '0'
|
|
215
201
|
requirements: []
|
|
216
|
-
rubygems_version: 3.
|
|
202
|
+
rubygems_version: 3.4.1
|
|
217
203
|
signing_key:
|
|
218
204
|
specification_version: 4
|
|
219
205
|
summary: Client for the avro-schema-registry app
|