rbbt-util 5.21.83 → 5.21.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rbbt/workflow.rb +12 -8
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a9203165804c6c7d43397d02aada2d6b9c99649
4
- data.tar.gz: f8e2c8ed913e3a01cb27bbc8d2d9751a213ca78e
3
+ metadata.gz: a49d93fb2f43d54bb645860d3cebbe8b963a49ef
4
+ data.tar.gz: cdadbfaa80ca05d96d2bea551d46778baa22adf8
5
5
  SHA512:
6
- metadata.gz: 54ab5caf41e7e0b8e3b6d98cd0016f043161e137c3cf78596cc94239797a41d09fdb23fc41d0851e42c250c0422560c850b2c6b18679ad7cb859cfc2441bd20c
7
- data.tar.gz: 0057b7bf24c1506791b26b071ea94f5366f242b405464a6fc24c3c4e0307650fbb71fee4c3534f68c383a5bb8b942fc22db9cad929834df63937207a7b5630d3
6
+ metadata.gz: 513419ec73b7769efd06ee338e8630cb811ee1640c43108d3d5b961e97057de8855109389696c432363eaaabe1982ae6d4e0d1b103f91865f5656dcb08b34d7e
7
+ data.tar.gz: 1d7329702b78feaa162d9d457f266afb4d5f48727987ebeb38ee1ac3156068d846e019bd48692cd5e9a00239722726bd48340995fbcf5beacd2c1d09bfcf138d
data/lib/rbbt/workflow.rb CHANGED
@@ -350,6 +350,15 @@ module Workflow
350
350
  job
351
351
  end
352
352
 
353
+ def set_step_dependencies(step)
354
+ if step.info.include? :dependencies
355
+ step.dependencies = step.info[:dependencies].collect do |task, job, path|
356
+ next if job.nil?
357
+ load_step(path)
358
+ end
359
+ end
360
+ end
361
+
353
362
  def get_job_step(step_path, task = nil, input_values = nil, dependencies = nil)
354
363
  step_path = step_path.call if Proc === step_path
355
364
  persist = input_values.nil? ? false : true
@@ -357,13 +366,14 @@ module Workflow
357
366
  key = Path === step_path ? step_path.find : step_path
358
367
  step = Step.new step_path, task, input_values, dependencies
359
368
 
360
-
361
369
  step.extend step_module
362
370
 
363
371
  step.task ||= task
364
372
  step.inputs ||= input_values
365
373
  step.dependencies = dependencies if dependencies and (step.dependencies.nil? or step.dependencies.length < dependencies.length)
366
374
 
375
+ set_step_dependencies(step)
376
+
367
377
  step
368
378
  end
369
379
 
@@ -372,13 +382,7 @@ module Workflow
372
382
  task = task_for path
373
383
  return remote_tasks[task].load_id(id) if remote_tasks and remote_tasks.include? task
374
384
  step = Step.new path, tasks[task.to_sym]
375
- step.info
376
- if step.info.include? :dependencies
377
- step.dependencies = step.info[:dependencies].collect do |task, job, path|
378
- next if job.nil?
379
- load_step(path)
380
- end
381
- end
385
+ set_step_dependencies(step)
382
386
  step
383
387
  end
384
388
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.21.83
4
+ version: 5.21.84
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez