We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2791a53 commit b874a39Copy full SHA for b874a39
1 file changed
lib/scientist/experiment.rb
@@ -329,6 +329,11 @@ def generate_result(name)
329
330
private
331
332
+ # In order to support marshaling, we have to make the procs marshalable. Some
333
+ # CI providers attempt to marshal Scientist mismatch errors so that they can
334
+ # be sent out to different places (logs, etc.) The mismatch errors contain
335
+ # code from the experiment. This code contains Procs - which can't be
336
+ # marshaled until we run the following code.
337
def marshalize(block)
338
unless block.respond_to?(:_dump) || block.respond_to?(:_dump_data)
339
def block._dump(_)
0 commit comments