avro_turf 1.15.0 → 1.16.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/.github/workflows/ruby.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/README.md +5 -1
- data/avro_turf.gemspec +1 -1
- data/lib/avro_turf/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2345cdad9c7472c5fd79aa3710150c40095ff2b970b28ea17b3db8b951fd143f
|
4
|
+
data.tar.gz: 264fbec47c582106134b51fc80823f93a82c9f1053a2d61e8899eac72a27256f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f17112a66c063514d56c7a4a5d785fa61e1c2079b7a02eede619b1b030997ba689b897ac8fc55f355fc781a1fd48dd77c545315478155b70853a0263fd571ac
|
7
|
+
data.tar.gz: 9d34639b83ee204e15143cc073aacd24157556eaede70e855384ba43ec769c6ed12505ffa2cf6d17ae6e216095c0ad097ace8af42579efaec4fc34ad92c482fe
|
data/.github/workflows/ruby.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -175,11 +175,15 @@ avro = AvroTurf::Messaging.new(registry_url: "http://my-registry:8081/")
|
|
175
175
|
data = avro.encode({ "title" => "hello, world" }, schema_name: "greeting")
|
176
176
|
|
177
177
|
# If you don't want to automatically register new schemas, you can pass explicitly
|
178
|
-
# subject and version to specify which schema should be used for encoding.
|
178
|
+
# both subject and version to specify which schema should be used for encoding.
|
179
179
|
# It will fetch that schema from the registry and cache it. Subsequent instances
|
180
180
|
# of the same schema version will be served by the cache.
|
181
181
|
data = avro.encode({ "title" => "hello, world" }, subject: 'greeting', version: 1)
|
182
182
|
|
183
|
+
# If you want to use a specific local schema, but register it with a different name in the
|
184
|
+
# registry, then provide a subject and a schema_name, but not a version
|
185
|
+
data = avro.encode({ "title" => "hello, world" }, subject: "greeting-value", schema_name: "greeting")
|
186
|
+
|
183
187
|
# You can also pass explicitly schema_id to specify which schema
|
184
188
|
# should be used for encoding.
|
185
189
|
# It will fetch that schema from the registry and cache it. Subsequent instances
|
data/avro_turf.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "avro", ">= 1.11.3", "< 1.
|
22
|
+
spec.add_dependency "avro", ">= 1.11.3", "< 1.13"
|
23
23
|
spec.add_dependency "excon", "~> 0.104"
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler", "~> 2.0"
|
data/lib/avro_turf/version.rb
CHANGED
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.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Schierbeck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avro
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 1.11.3
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '1.
|
22
|
+
version: '1.13'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 1.11.3
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '1.
|
32
|
+
version: '1.13'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: excon
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|