lib/eco/api/session/batch/job.rb in eco-helpers-2.5.10 vs lib/eco/api/session/batch/job.rb in eco-helpers-2.6.0
- old
+ new
@@ -103,11 +103,11 @@
else
unless !entry
unless unique && @queue_hash.key?(entry)
@queue_hash[entry] = true
@queue.push(entry)
- @callbacks[entry] = Proc.new if block_given?
+ @callbacks[entry] = block if block_given?
end
end
end
self
end
@@ -228,16 +228,16 @@
[].tap do |msg|
subjobs.map {|subjob| msg << subjob.summary}
end.join("\n")
end
- def as_update(data, *args)
+ def as_update(data, **kargs)
if data.is_a?(Array)
data.map do |e|
- feedback.as_update(e, *args)
+ feedback.as_update(e, **kargs)
end.compact.select {|e| e && !e.empty?}
else
- feedback.as_update(data, *args)
+ feedback.as_update(data, **kargs)
end
end
# Method to generate the base of people that will be present in the queue
# @note