rbbt-rest 1.8.74 → 1.8.75

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26f50bb97e2ddbf2a2ec6e1ffb4c364b0e8214c6
4
- data.tar.gz: f95b31690cd68e0af0c6ffaf999188f0e6a24deb
3
+ metadata.gz: fee86891049830c63d6c8f12e5fe92e67565f731
4
+ data.tar.gz: dba536d2e0b54cb19e9259a2c258e91abc09ebd5
5
5
  SHA512:
6
- metadata.gz: c394da16c8e9a26fec93a45a1cec75bc46a59a90066bf162c99f8c6c94c863223c5ced2c40d5b09c45f261826b48312c2ed4d6a81b45b621f53e55d523d1baee
7
- data.tar.gz: 42c006207252cd964ded888f579662f1281c739d0242025b79ec5a3928abcee1a094b741be195bef4d486ae0aa4b05dc637e76ae3ce6bc0e290a4f1e879ac945
6
+ metadata.gz: 84ec93ec6ca8d37836defbde7099cd9a36d34f6c49eb9cdca039a8ae75ba3d5a1e3ba086771adf5245a29160f0368659aaf05a2cbe2ee199bd4d25a71124b5df
7
+ data.tar.gz: 4c9cd39103238ff3aecb0fcea8762ac33df758593ec266e388b3f8423ed1b76308cdd6987df3889945b4f95dc1a9394a95ba8a3520f0399f7436e08807d6379c
@@ -7,8 +7,32 @@
7
7
  .ui.header
8
8
  Info:
9
9
  %span.status(class=status)= job.name
10
+
10
11
  = hash2dl(new_info)
11
12
 
13
+ .ui.segment
14
+ .ui.header
15
+ %h3 Inputs (recursive)
16
+ .ui.content
17
+ %dl
18
+ - inputs = job.recursive_inputs
19
+ - inputs.zip(inputs.fields).each do |i,f|
20
+ %dt= f
21
+ %dd
22
+ - case i
23
+ - when Array
24
+ %ul
25
+ - i.each do |e|
26
+ - if String === e
27
+ %li= e
28
+ - else
29
+ %li= e.inspect
30
+ - when String
31
+ %pre= i
32
+ - else
33
+ %pre
34
+ = i.inspect
35
+
12
36
  - if exception
13
37
  - backtrace = exception[:backtrace]
14
38
  .error_backtrace.clean_list.ui.segment
@@ -31,28 +55,7 @@
31
55
 
32
56
  - if info[:dependencies] and info[:dependencies].any?
33
57
  .ui.segment
34
- %h3 Dependencies
35
- = partial_render('partials/dependencies', :job => job)
36
- -#%ul
37
-
38
- - task_exports = workflow.synchronous_exports + workflow.asynchronous_exports
39
- - task_exports = task_exports.collect{|t| t.to_s}
40
- -# info[:dependencies].each do |task,name,path|
41
- - dep = Step.new path
42
- - d_workflow = dep.workflow || "Unknown Workflow"
43
- - wf = workflow if d_workflow.nil? || d_workflow.to_s == workflow.to_s
44
- - if wf.nil? and d_workflow
45
- - wf ||= begin
46
- - Kernel.const_get d_workflow
47
- - rescue
48
-
49
- %li
50
- (#{d_workflow}##{task})
51
- - if Open.remote? path
52
- - url = path.split("?").first
53
- %a(href=url) #{ name }
54
- - elsif wf and wf.task_exports.include? task
55
- - url = "/" + [d_workflow.to_s, task.to_s, name.to_s] * "/"
56
- %a(href=url) #{ name }
57
- - else
58
- = name
58
+ .ui.header
59
+ %h3 Dependencies
60
+ .ui.content
61
+ = partial_render('partials/dependencies', :job => job)
@@ -1,4 +1,6 @@
1
1
 
2
+ - cache = {} if not defined?(cache) or cache.nil?
3
+
2
4
  %ul.dependencies
3
5
  - job.dependencies.each do |dep|
4
6
  - dep_workflow = dep.workflow
@@ -43,4 +45,4 @@
43
45
  %span.status(class="#{dep_status}") [#{status}]
44
46
 
45
47
  - if dep.dependencies.any?
46
- = partial_render('partials/dependencies', :job => dep)
48
+ = cache[dep.path] ||= partial_render('partials/dependencies', :job => dep, :cache => cache)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.74
4
+ version: 1.8.75
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-20 00:00:00.000000000 Z
11
+ date: 2017-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake