lib/pipeline/base.rb in tracksperanto-1.1.0 vs lib/pipeline/base.rb in tracksperanto-1.1.1

- old
+ new

@@ -35,9 +35,13 @@ # # :yields: percent_complete, status_message def run_export(tracker_data_blob, parser, processor) points, keyframes, percent_complete = 0, 0, 0.0 yield(percent_complete, "Starting the parse routine") if block_given? + parser.progress_block = lambda do | message | + yield(percent_complete, message) if block_given? + end + trackers = parser.parse(tracker_data_blob) yield(percent_complete = 20.0, "Starting export for #{trackers.length} trackers") if block_given? percent_per_tracker = 80.0 / trackers.length \ No newline at end of file