Sha256: 7468f754fd762da199b7a85ab8c4c1819eb8f60d67c9d8231ea3dc5a3c4d16a6
Contents?: true
Size: 966 Bytes
Versions: 3
Compression:
Stored size: 966 Bytes
Contents
require 'avro-patches/version' # Calling require 'avro' leads to deprecation notices because requiring # 'avro/ipc' calls methods that this gem patches. # # Replicate the require statements from avro.rb so that we can insert # patches into the load order: require 'multi_json' require 'set' require 'digest/md5' require 'net/http' require 'stringio' require 'zlib' module Avro class AvroError < StandardError; end class AvroTypeError < Avro::AvroError def initialize(schm=nil, datum=nil, msg=nil) msg ||= "Not a #{schm.to_s}: #{datum}" super(msg) end end end require 'avro/schema' require 'avro/io' require 'avro/schema_normalization' # insert avro-patches require 'avro-patches/ensure_encoding' require 'avro-patches/schema_validator' require 'avro-patches/logical_types' require 'avro-patches/schema_compatibility' # Remaining requires from the official avro gem require 'avro/data_file' require 'avro/protocol' require 'avro/ipc'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
avro-patches-0.3.4 | lib/avro-patches.rb |
avro-patches-0.3.3 | lib/avro-patches.rb |
avro-patches-0.3.2 | lib/avro-patches.rb |