lib/milestoner/configuration/transformers/gems/label.rb in milestoner-17.6.0 vs lib/milestoner/configuration/transformers/gems/label.rb in milestoner-17.9.0

- old
+ new

@@ -1,10 +1,9 @@ # frozen_string_literal: true require "dry/monads" require "pathname" -require "spek" module Milestoner module Configuration module Transformers module Gems @@ -17,13 +16,13 @@ @key = key @path = path super(**) end - def call content - content.fetch(key) { spec_loader.call(path).label } - .then { |value| value unless value == "Undefined" } - .then { |value| Success content.merge!(key => value) } + def call attributes + attributes.fetch(key) { spec_loader.call(path).label } + .then { |value| value unless value == "Undefined" } + .then { |value| Success attributes.merge!(key => value) } end private attr_reader :key, :path