lib/rocket_job/batch/io.rb in rocketjob-5.2.0 vs lib/rocket_job/batch/io.rb in rocketjob-5.3.0

- old
+ new

@@ -16,11 +16,11 @@ def input(category = :main) unless input_categories.include?(category) || (category == :main) raise "Category #{category.inspect}, must be registered in input_categories: #{input_categories.inspect}" end - (@inputs ||= {})[category] ||= RocketJob::Sliced::Input.new(rocket_job_io_slice_arguments("inputs", category)) + (@inputs ||= {})[category] ||= RocketJob::Sliced::Input.new(**rocket_job_io_slice_arguments("inputs", category)) end # Returns [RocketJob::Sliced::Output] output collection for holding output slices # Returns nil if no output is being collected # @@ -32,10 +32,10 @@ def output(category = :main) unless output_categories.include?(category) || (category == :main) raise "Category #{category.inspect}, must be registered in output_categories: #{output_categories.inspect}" end - (@outputs ||= {})[category] ||= RocketJob::Sliced::Output.new(rocket_job_io_slice_arguments("outputs", category)) + (@outputs ||= {})[category] ||= RocketJob::Sliced::Output.new(**rocket_job_io_slice_arguments("outputs", category)) end # Upload the supplied file, io, IOStreams::Path, or IOStreams::Stream. # # Returns [Integer] the number of records uploaded.