class Milestoner::Configuration::Transformers::Gems::Name
Conditionally updates project name based on specification name.
def call content
def call content content.fetch(key) { spec_loader.call(path).name } .then { |value| Success content.merge!(key => value) } end
def initialize(key = :project_name, path: "#{Pathname.pwd.basename}.gemspec", **)
def initialize(key = :project_name, path: "#{Pathname.pwd.basename}.gemspec", **) @key = key @path = path super(**) end