lib/gemsmith/cli/actions/publish.rb in gemsmith-20.2.0 vs lib/gemsmith/cli/actions/publish.rb in gemsmith-20.2.1
- old
+ new
@@ -25,11 +25,11 @@
super(**)
@publisher = publisher
@loader = loader
end
- def call name = default
- case publisher.call loader.call("#{name}.gemspec")
+ 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." }
end
end