rbbt-rest 1.8.150 → 1.8.151

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: 1879b80d1d7873e206a425939bf4de751ce2d105990fb0fbf12bc8b6daf29cf2
4
- data.tar.gz: 10b027be58fef0428acd946102267e6dd789d17c4df5a5af61b0ac2b2b8c0298
3
+ metadata.gz: cd9278f880225799697df0bc7599a97d5463942604f3c6947e65c5450495e2ad
4
+ data.tar.gz: 3441f94e0dc3cbced78e4572d4d743d047d0be1dcd0728c5ebbf8c7bb0b8d74c
5
5
  SHA512:
6
- metadata.gz: a800de9e65f448d8e4951f7e98ff4415f072732d93ee6374896166e13e05a9a2ec8c09533ffd3415603f80195f3d79a2f8fd35b96504b7f0013ccaa0ba3f8c9e
7
- data.tar.gz: 5b1e2a4225567a64de9a4208c4bc1d840005e4f087ebd64e7688c807663c6adeeaa608e1f908b717d7205ba8f240a07fcc4b5305a6e1cfa03496323169613435
6
+ metadata.gz: d8f1453f376b923caf6b7868462f877246614b9f051da579b55429d21ad2f2ad66ce7ad6bf99ee83dcfb20160611b983e7a6e02c477ba4501b4e0e5c112ec3b4
7
+ data.tar.gz: ac6c5d333a5f6b5cd41c78c014b8166d4c9f38b88297b40e89b66243bcadea5ba2896d639e5efb792b84e6562931af22498c384d14b938c36c878ad50d750f3a
@@ -98,6 +98,8 @@ P-values
98
98
  P.values
99
99
  score
100
100
  scores
101
+ weight
102
+ weights
101
103
  ratio
102
104
  ratios
103
105
  t.value
@@ -113,7 +115,7 @@ size
113
115
  Matches
114
116
  Quality
115
117
  EOF
116
- ).split("\n")
118
+ ).split("\n").collect{|v| [v, v.upcase, v.downcase, Misc.humanize(v)] }.flatten
117
119
 
118
120
  def invalid?
119
121
  self == "NA" or self == "NaN"
@@ -326,6 +328,14 @@ module RbbtRESTHelpers
326
328
  end
327
329
 
328
330
  res = case options[:span]
331
+ when 'semicolon'
332
+ if Array === value
333
+ value.collect do |val|
334
+ val.split(";").collect{|v| "<span class='table_value'>#{v.to_s}</span>" } * ";"
335
+ end * ", "
336
+ else
337
+ value.split(";").collect{|v| "<span class='table_value'>#{v.to_s}</span>" } * ";"
338
+ end
329
339
  when true, "true", :true
330
340
  Array === value ? value.collect{|v| "<span class='table_value'>#{v.to_s}</span>"} * ", " : "<span class='table_value'>#{value}</span>"
331
341
  when :long, "long"
@@ -1,5 +1,9 @@
1
1
  module Sinatra
2
2
  module RbbtMiscHelpers
3
+ def job_url(job)
4
+ job_url = File.join("/", job.workflow.to_s, job.task_name.to_s, job.name)
5
+ end
6
+
3
7
  def param_file(name)
4
8
  name = name.to_s
5
9
  if @params[name + '__param_file']
@@ -143,7 +143,7 @@ module WorkflowRESTHelpers
143
143
  halt 200, job.load.to_json
144
144
  when :tsv
145
145
  content_type "text/tab-separated-values"
146
- job.path ? send_file(job.path) : halt(200, job.load.to_s)
146
+ job.path ? send_file(job.path, :filename => (params[:filename] || File.basename(job.path))) : halt(200, job.load.to_s)
147
147
  when :literal, :raw
148
148
  path = job.path
149
149
  mime = file_mimetype path
@@ -152,7 +152,7 @@ module WorkflowRESTHelpers
152
152
  if Open.remote? job.path
153
153
  Open.open(job.path, :nocache => true)
154
154
  elsif File.exists? job.path
155
- send_file(job.path)
155
+ send_file(job.path, :filename => (params[:filename] || File.basename(job.path)))
156
156
  else
157
157
  halt 200, job.load
158
158
  end
@@ -146,7 +146,7 @@ $cyan: rgba(50, 211, 255, 1)
146
146
  .status.started
147
147
  color: $cyan
148
148
  .status.dependencies
149
- color: $cyan
149
+ color: $yellow
150
150
  .status.done
151
151
  color: $green
152
152
  .status.error, .status.aborted
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.150
4
+ version: 1.8.151
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-22 00:00:00.000000000 Z
11
+ date: 2022-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake