lib/milestoner/configuration/transformers/gems/label.rb in milestoner-17.11.0 vs lib/milestoner/configuration/transformers/gems/label.rb in milestoner-18.0.0

- old
+ new

@@ -17,12 +17,15 @@ @path = path super(**) end def call attributes - attributes.fetch(key) { spec_loader.call(path).label } - .then { |value| value unless value == "Undefined" } - .then { |value| Success attributes.merge!(key => value) } + attributes.fetch key do + value = spec_loader.call(path).label + attributes.merge! key => value unless value == "Undefined" + end + + Success attributes end private attr_reader :key, :path