lib/metacrunch/job/dsl.rb in metacrunch-4.0.3 vs lib/metacrunch/job/dsl.rb in metacrunch-4.1.0
- old
+ new
@@ -20,11 +20,11 @@
def post_process(callable)
@_job.post_process = callable
end
- def transformation(callable, buffer_size: nil)
- @_job.add_transformation(callable, buffer_size: buffer_size)
+ def transformation(callable, buffer_size: nil, buffer: nil)
+ @_job.add_transformation(callable, buffer_size: buffer_size, buffer: buffer)
end
def options(require_args: false, &block)
if block_given?
@_options = Options.new(require_args: require_args, &block).options