lib/avrolution/compatibility_breaks_file.rb in avrolution-0.6.1 vs lib/avrolution/compatibility_breaks_file.rb in avrolution-0.7.0

- old
+ new

@@ -1,9 +1,11 @@ +# frozen_string_literal: true + module Avrolution module CompatibilityBreaksFile - NONE = 'NONE'.freeze + NONE = 'NONE' class DuplicateEntryError < StandardError def initialize(key) super("duplicate entry for key #{key}") end @@ -17,10 +19,12 @@ fingerprint:, with_compatibility: NONE, after_compatibility: nil, logger: Avrolution.logger) - compatibility_break = Avrolution::CompatibilityBreak.new(name, fingerprint, with_compatibility, after_compatibility) + compatibility_break = Avrolution::CompatibilityBreak.new( + name, fingerprint, with_compatibility, after_compatibility + ) compatibility_break.validate! compatibility_breaks = load raise DuplicateEntryError.new([name, fingerprint]) if compatibility_breaks.key?(compatibility_break.key)