lib/deimos/avro_data_coder.rb in deimos-ruby-1.3.0.pre.beta5 vs lib/deimos/avro_data_coder.rb in deimos-ruby-1.4.0.pre.beta1
- old
+ new
@@ -10,11 +10,11 @@
# @param schema_store [AvroTurf::SchemaStore]
def initialize(schema:, namespace:, schema_store: nil)
@schema = schema
@namespace = namespace
@schema_store = schema_store ||
- AvroTurf::SchemaStore.new(path: Deimos.config.schema_path)
+ AvroTurf::SchemaStore.new(path: Deimos.config.schema.path)
end
# @param schema [String]
# @return [Avro::Schema]
def avro_schema(schema=nil)
@@ -25,21 +25,21 @@
private
# @return [AvroTurf]
def avro_turf
@avro_turf ||= AvroTurf.new(
- schemas_path: Deimos.config.schema_path,
+ schemas_path: Deimos.config.schema.path,
schema_store: @schema_store
)
@avro_turf
end
# @return [AvroTurf::Messaging]
def avro_turf_messaging
@avro_turf_messaging ||= AvroTurf::Messaging.new(
schema_store: @schema_store,
- registry_url: Deimos.config.schema_registry_url,
- schemas_path: Deimos.config.schema_path,
+ registry_url: Deimos.config.schema.registry_url,
+ schemas_path: Deimos.config.schema.path,
namespace: @namespace
)
end
# Generate a key schema from the given value schema and key ID. This