rbbt-rest 1.8.135 → 1.8.136

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
  SHA256:
3
- metadata.gz: b24d5bf255e99819325d04fd31b37eea707de16cb7bf686eb0c688df20271e21
4
- data.tar.gz: 53d1400862b7970a92dbdab18f047b9d2e48554bbf555bac689f69aa53463b41
3
+ metadata.gz: 8291911f0473d9d30956ea5989996c626736f5406bc4e6a09478c2a7ada771fb
4
+ data.tar.gz: 9ca33ac6c0b51b927b3d6041aced32a732646414772ba6aa46df8a48190ad7ae
5
5
  SHA512:
6
- metadata.gz: bd77cb58c1ca6f69f222f4ce3e68fdf888f6c11bb270fef9faff6ba2ea8b278cc782426fc3ace48ad8e3fbdb9ee370f25fe5d0a15e3552559cbedeed7ccc5704
7
- data.tar.gz: e36647d2e36eaf9103a07fc08b7ca0362387e9a680ff5ca94263c30b8cac487555ee545590be38d371ba910d00a4320d81e53425aa32dc06ccb973a3e2dc6674
6
+ metadata.gz: 2ae762c95a7d407c3c90c5e242ae3370f2c2083fc90181bbe63bc5e80159e68196beba7d128c1e6c415a87287efbba132f3d0b452c5f0564019fea4a4660cced
7
+ data.tar.gz: 2625b47931d49c18711718846760db4c62c5f5ab0c451a459ddbca96960ddbccd0345605a4994752a7d81af9ee0769c3ea6343593fb58902e18e9c649d57ad1b
@@ -7,9 +7,15 @@
7
7
  - dep_workflow ||= dep.task.workflow if dep.task
8
8
  - dep_workflow ||= File.basename(File.dirname(File.dirname(dep.path)))
9
9
  - str = [dep_workflow, dep.task_name, dep.name].compact * " - "
10
- - dep_status = "done" if dep.path.exists?
10
+ - remote = true if Open.remote?(dep.path) || Open.ssh?(dep.path)
11
+
12
+ - if remote
13
+ - dep_status = "done" if dep.done?
14
+ - else
15
+ - dep_status = "done" if dep.path.exists?
16
+
11
17
  - dep_status ||= dep.status
12
- - if dep.file(:progress).exists?
18
+ - if ! remote && dep.file(:progress).exists?
13
19
  - pgr = dep.file(:progress).yaml
14
20
  - if pgr and pgr[:last_percent]
15
21
  - start = pgr[:start]
@@ -57,8 +63,8 @@
57
63
  - elsif Module === dep_workflow
58
64
  - wf = dep_workflow
59
65
 
60
- - if Open.remote? dep.path
61
- - url = path.split("?").first
66
+ - if Open.remote?(dep.path)
67
+ - url = dep.path.split("?").first
62
68
  %a(href=url) #{ name }
63
69
 
64
70
  - elsif wf and Sinatra::RbbtRESTWorkflow::WORKFLOWS.include?(wf) and wf.task_exports.include? dep.task_name.to_sym
@@ -71,7 +77,7 @@
71
77
 
72
78
  %span.status(class="#{dep_status}") [#{status}]
73
79
 
74
- - if dep.dependencies.any?
80
+ - if dep.dependencies && dep.dependencies.any?
75
81
  - if cache[dep.path]
76
82
  = reveal "(deps)", nil, :title => "Dependencies already shown above", "attr-reveal_title" => "#{[dep_workflow, dep.task_name, dep.name] * " # "}" do
77
83
  = cache[dep.path]
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.135
4
+ version: 1.8.136
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-03 00:00:00.000000000 Z
11
+ date: 2020-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake