lib/tocer/rake/tasks.rb in tocer-12.2.0 vs lib/tocer/rake/tasks.rb in tocer-13.0.0

- old
+ new

@@ -11,18 +11,18 @@ include ::Rake::DSL using Refinements::Structs def self.setup = new.install - def initialize configuration: CLI::Configuration::Loader.new.call, runner: Runner.new + def initialize configuration = Configuration::Loader.call, runner: Runner.new @configuration = configuration @runner = runner end def install desc "Add/Update Table of Contents (README)" task :toc, %i[label includes] do |_task, arguments| - runner.call(**configuration.merge(**arguments.to_h).to_h) + runner.call configuration.merge(**arguments.to_h) end end private