lib/gemsmith/cli/actions/publish.rb in gemsmith-21.10.0 vs lib/gemsmith/cli/actions/publish.rb in gemsmith-22.0.0

- old
+ new

@@ -28,19 +28,19 @@ end def call name = nil case publisher.call loader.call("#{name || default}.gemspec") in Success(spec) then logger.info { "Published: #{spec.package_name}." } - in Failure(message) then log_error { message } - else log_error { "Unable to handle publish action." } + in Failure(message) then log_error message + else log_error "Publish failed, unable to parse result." end end private attr_reader :publisher, :loader - def log_error(&) = logger.error(&) + def log_error(message) = logger.error { message } end end end end