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