lib/milestoner/configuration/transformers/gems/name.rb in milestoner-17.6.0 vs lib/milestoner/configuration/transformers/gems/name.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,12 +16,12 @@
@key = key
@path = path
super(**)
end
- def call content
- content.fetch(key) { spec_loader.call(path).name }
- .then { |value| Success content.merge!(key => value) }
+ def call attributes
+ attributes.fetch(key) { spec_loader.call(path).name }
+ .then { |value| Success attributes.merge!(key => value) }
end
private
attr_reader :key, :path