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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b361914bf3a0900924b82bebf5d61f155834f08ce43b2ba110cf6f7a86e976f5
4
- data.tar.gz: f3ffe6b3820088e478e047df3ac639f8bc331b7baa829f6069911b0a2b1180da
3
+ metadata.gz: 2345cdad9c7472c5fd79aa3710150c40095ff2b970b28ea17b3db8b951fd143f
4
+ data.tar.gz: 264fbec47c582106134b51fc80823f93a82c9f1053a2d61e8899eac72a27256f
5
5
  SHA512:
6
- metadata.gz: f6c4eac8425408913411ab45e25fbbdf94f30c2fd28a273f288dc0bc671d0dd4f65302c880d5eafb4cf7a42bb4c91fd4b9871768644e7fb7ee9344363b1d53ca
7
- data.tar.gz: '09590e6ab35dbf5099b2fdb3ac800d3e0b78c6b62b0ecfc18ddee5b0cdf98523edbe3c85bd00a1e6730b6c15caad3d65fef9137e67c440d6904d90e79b16738f'
6
+ metadata.gz: 2f17112a66c063514d56c7a4a5d785fa61e1c2079b7a02eede619b1b030997ba689b897ac8fc55f355fc781a1fd48dd77c545315478155b70853a0263fd571ac
7
+ data.tar.gz: 9d34639b83ee204e15143cc073aacd24157556eaede70e855384ba43ec769c6ed12505ffa2cf6d17ae6e216095c0ad097ace8af42579efaec4fc34ad92c482fe
@@ -9,7 +9,7 @@ jobs:
9
9
  strategy:
10
10
  fail-fast: false
11
11
  matrix:
12
- ruby: [2.6, 2.7, "3.0", 3.1, 3.2]
12
+ ruby: [3.0, 3.1, 3.2, 3.3]
13
13
 
14
14
  steps:
15
15
  - uses: actions/checkout@v3
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## v1.16.0
6
+
7
+ - Add compatibility with Avro v1.12.x.
8
+
5
9
  ## v1.15.0
6
10
 
7
11
  - Use `default_namespace` from exception to load nested schemas from the correct namespace. (#203)
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.12"
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"
@@ -1,3 +1,3 @@
1
1
  class AvroTurf
2
- VERSION = "1.15.0"
2
+ VERSION = "1.16.0"
3
3
  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.15.0
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: 2023-12-14 00:00:00.000000000 Z
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.12'
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.12'
32
+ version: '1.13'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: excon
35
35
  requirement: !ruby/object:Gem::Requirement