Sha256: 4b94fbd4434af0915e7a4860cdefd672cdd5817fd0907ddda783778e875af630

Contents?: true

Size: 530 Bytes

Versions: 10

Compression:

Stored size: 530 Bytes

Contents

# frozen_string_literal: true

loaded_avro_patches = begin
    require 'avro-patches'
    true
  rescue LoadError
    false
  end

if loaded_avro_patches
  require 'avromatic/patches/schema_validator_patch'
  avro_patches_version = Gem::Version.new(AvroPatches::VERSION)
  if avro_patches_version < Gem::Version.new('0.4.0')
    Avro::SchemaValidator.singleton_class.prepend(Avromatic::Patches::SchemaValidatorPatch)
  else
    Avro::SchemaValidator.singleton_class.prepend(Avromatic::Patches::SchemaValidatorPatchV040)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
avromatic-2.2.6 lib/avromatic/patches.rb
avromatic-2.2.5 lib/avromatic/patches.rb
avromatic-2.2.4 lib/avromatic/patches.rb
avromatic-2.2.3 lib/avromatic/patches.rb
avromatic-2.2.2 lib/avromatic/patches.rb
avromatic-2.2.1 lib/avromatic/patches.rb
avromatic-2.2.0 lib/avromatic/patches.rb
avromatic-2.1.0 lib/avromatic/patches.rb
avromatic-2.0.1 lib/avromatic/patches.rb
avromatic-2.0.0 lib/avromatic/patches.rb