lib/avrolution/compatibility_check.rb in avrolution-0.4.3 vs lib/avrolution/compatibility_check.rb in avrolution-0.4.4

- old
+ new

@@ -9,10 +9,11 @@ attr_reader :incompatible_schemas NONE = 'NONE'.freeze FULL = 'FULL'.freeze + BOTH = 'BOTH'.freeze BACKWARD = 'BACKWARD'.freeze FORWARD = 'FORWARD'.freeze private_attr_reader :schema_registry, :compatibility_breaks, :logger @@ -95,9 +96,10 @@ logger.info("... Compatibility with last version: #{compatibility_with_last}") logger.info(Diffy::Diff.new(last_json, json, context: 3).to_s) unless compatibility_with_last == FULL compatibility = schema_registry.subject_config(fullname)['compatibility'] || schema_registry.global_config['compatibility'] + compatibility = FULL if compatibility == BOTH logger.info("... Current compatibility level: #{compatibility}") logger.info( "\n To allow a compatibility break, run:\n" \ " rake avro:add_compatibility_break name=#{fullname} fingerprint=#{fingerprint} with_compatibility=#{compatibility_with_last} [after_compatibility=<LEVEL>]\n" )