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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8804cb557ca9c4e16ffc22fe8de2c7e91b20c63bc8ba3ccc439e2891e463cb38
4
- data.tar.gz: 511b69a9797a0dab27313837d347db8512434c851492b21e7618aa34e50cbe7f
3
+ metadata.gz: 124c809b0bcf3463852b754fb01cf2b75e4d90547a934d8932a27f52a3264b69
4
+ data.tar.gz: e293185ed5b05dd1aaf6837dc9a64748cd0d26fbba8ab5fc0a4b608cca7ab244
5
5
  SHA512:
6
- metadata.gz: 8469a31eb4739efb59f849dadb7dd321820ab6df351a556f95a85b87279abc3a5ff1e70501178e58205e11b7774ea8f54d46faf807f05ab254085707b9a1897a
7
- data.tar.gz: 39304274da622e79f450025c558187df06d7d8e3961965225c94df5c58bb57c9cf924faf16e1e15db8ffe710cbee3747a7703e0b0eb2b5ee1ddf9d0cef5efa0c
6
+ metadata.gz: 677e4fc7525cea9ac5309b891bb88b60c2421ee58add86d90efa3fa0731199b6cbb2f0bb2b7db42c9237f54a36fb5dda49de649fb5d40810d73f1c7084d9e290
7
+ data.tar.gz: e0bcfcd4f139ad961ae0af5ecac5eba24d6cfaab866487bd8c06918158d7e0f8307b33fc550cd35c2a75cc93fa75851c038a85a2f27f8eed123bf16219d07105
data/lib/avro/VERSION.txt CHANGED
@@ -1 +1 @@
1
- 1.11.2
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.2
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-06-26 00:00:00.000000000 Z
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.2/
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: