avro 1.11.2 → 1.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avro/VERSION.txt +1 -1
- data/lib/avro/schema.rb +4 -2
- data/test/test_schema.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 124c809b0bcf3463852b754fb01cf2b75e4d90547a934d8932a27f52a3264b69
|
4
|
+
data.tar.gz: e293185ed5b05dd1aaf6837dc9a64748cd0d26fbba8ab5fc0a4b608cca7ab244
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 677e4fc7525cea9ac5309b891bb88b60c2421ee58add86d90efa3fa0731199b6cbb2f0bb2b7db42c9237f54a36fb5dda49de649fb5d40810d73f1c7084d9e290
|
7
|
+
data.tar.gz: e0bcfcd4f139ad961ae0af5ecac5eba24d6cfaab866487bd8c06918158d7e0f8307b33fc550cd35c2a75cc93fa75851c038a85a2f27f8eed123bf16219d07105
|
data/lib/avro/VERSION.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.11.
|
1
|
+
1.11.3
|
data/lib/avro/schema.rb
CHANGED
@@ -111,7 +111,7 @@ module Avro
|
|
111
111
|
elsif PRIMITIVE_TYPES.include? json_obj
|
112
112
|
return PrimitiveSchema.new(json_obj)
|
113
113
|
else
|
114
|
-
raise UnknownSchemaError.new(json_obj)
|
114
|
+
raise UnknownSchemaError.new(json_obj, default_namespace)
|
115
115
|
end
|
116
116
|
end
|
117
117
|
|
@@ -621,9 +621,11 @@ module Avro
|
|
621
621
|
|
622
622
|
class UnknownSchemaError < SchemaParseError
|
623
623
|
attr_reader :type_name
|
624
|
+
attr_reader :default_namespace
|
624
625
|
|
625
|
-
def initialize(type)
|
626
|
+
def initialize(type, default_namespace)
|
626
627
|
@type_name = type
|
628
|
+
@default_namespace = default_namespace
|
627
629
|
super("#{type.inspect} is not a schema we know about.")
|
628
630
|
end
|
629
631
|
end
|
data/test/test_schema.rb
CHANGED
@@ -176,6 +176,8 @@ class TestSchema < Test::Unit::TestCase
|
|
176
176
|
end
|
177
177
|
|
178
178
|
assert_equal '"MissingType" is not a schema we know about.', error.message
|
179
|
+
assert_equal "MissingType", error.type_name
|
180
|
+
assert_equal "my.name.space", error.default_namespace
|
179
181
|
end
|
180
182
|
|
181
183
|
def test_invalid_name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Apache Software Foundation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -72,7 +72,7 @@ metadata:
|
|
72
72
|
homepage_uri: https://avro.apache.org/
|
73
73
|
bug_tracker_uri: https://issues.apache.org/jira/browse/AVRO
|
74
74
|
source_code_uri: https://github.com/apache/avro
|
75
|
-
documentation_uri: https://avro.apache.org/docs/1.11.
|
75
|
+
documentation_uri: https://avro.apache.org/docs/1.11.3/
|
76
76
|
rubygems_mfa_required: 'true'
|
77
77
|
post_install_message:
|
78
78
|
rdoc_options:
|