class Milestoner::Configuration::Transformers::Gems::Description
Conditionally updates project description based on specification summary.
Attributes
Public Class Methods
Source
# File lib/milestoner/configuration/transformers/gems/description.rb, line 15 def initialize(key = :project_description, path: "#{Pathname.pwd.basename}.gemspec", **) super(**) @key = key @path = path end
Calls superclass method
Public Instance Methods
Source
# File lib/milestoner/configuration/transformers/gems/description.rb, line 21 def call attributes attributes.fetch key do value = spec_loader.call(path).summary attributes.merge! key => value if value end Success attributes end