rbbt-rest 1.8.151 → 1.8.154

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: cd9278f880225799697df0bc7599a97d5463942604f3c6947e65c5450495e2ad
4
- data.tar.gz: 3441f94e0dc3cbced78e4572d4d743d047d0be1dcd0728c5ebbf8c7bb0b8d74c
3
+ metadata.gz: a5d66dadd84c4328c97bc395bf66c183478988e8e3e11f31ab359d82563e2ad9
4
+ data.tar.gz: 4ee1e9191aeaa79db99622fc93853e29cac176ce77882e85eff6e5e80f2611b6
5
5
  SHA512:
6
- metadata.gz: d8f1453f376b923caf6b7868462f877246614b9f051da579b55429d21ad2f2ad66ce7ad6bf99ee83dcfb20160611b983e7a6e02c477ba4501b4e0e5c112ec3b4
7
- data.tar.gz: ac6c5d333a5f6b5cd41c78c014b8166d4c9f38b88297b40e89b66243bcadea5ba2896d639e5efb792b84e6562931af22498c384d14b938c36c878ad50d750f3a
6
+ metadata.gz: 526d6a192bfc4a2784c76b67778aec3fd88dca7bbb5a493769fd8d350b5eccd2bb4c5d18b22893fcad8c1b1a2a7e0bbb141fdd0c4d40bed90d482c16038eb853
7
+ data.tar.gz: dfe8034d8a8f773212573729f888ada533444039404711479fb2e53b80b1077c8e35955f7d95ef5340c04b521ff5d0af82111c7238ad0428cdbcaaac79980a1c
@@ -280,6 +280,7 @@ module RbbtRESTHelpers
280
280
  end
281
281
 
282
282
  def add_GET_param(url, param, value)
283
+ url = remove_GET_param(url, param)
283
284
  if url =~ /\?.+=/
284
285
  url + "&#{ param }=#{ value }"
285
286
  else
@@ -317,7 +317,7 @@ module RbbtRESTHelpers
317
317
 
318
318
  entity_options = options[:entity_options]
319
319
 
320
- Misc.prepare_entity(value, type, entity_options) if Entity.formats[type] and not options[:unnamed]
320
+ value = Misc.prepare_entity(value, type, entity_options) if Entity.formats[type] and not options[:unnamed]
321
321
 
322
322
  orig_value = value
323
323
  value = value.link if value.respond_to? :link and not options[:unnamed]
@@ -339,7 +339,9 @@ module RbbtRESTHelpers
339
339
  when true, "true", :true
340
340
  Array === value ? value.collect{|v| "<span class='table_value'>#{v.to_s}</span>"} * ", " : "<span class='table_value'>#{value}</span>"
341
341
  when :long, "long"
342
- Array === value ? value.zip(orig_value).collect{|v,ov| "<span class='table_value long' title='#{URI.escape(ov.to_s)}'>#{v.to_s}</span>"} * " " : "<span class='table_value long' title='#{URI.escape(orig_value)}'>#{value}</span>"
342
+ Array === value ? value.zip(orig_value).collect{|v,ov| "<span class='table_value long' title='#{CGI.escape(ov.to_s)}'>#{v.to_s}</span>"} * " " : "<span class='table_value long' title='#{CGI.escape(orig_value)}'>#{value}</span>"
343
+ when :lines, "lines"
344
+ Array === value ? value.zip(orig_value).collect{|v,ov| "<span class='table_value long lines' title='#{CGI.escape(ov.to_s)}'>#{v.to_s}<br/></span>"} * " " : "<span class='table_value long lines' title='#{CGI.escape(orig_value)}'>#{value}</span>"
343
345
  else
344
346
  Array === value ? value.collect{|v| v.to_s} * ", " : value
345
347
  end
@@ -3,7 +3,6 @@ require 'rbbt/rest/entity/list'
3
3
 
4
4
  module Entity
5
5
  module REST
6
- USE_ENSEMBL = true
7
6
 
8
7
  REST_ENTITIES = Set.new
9
8
 
@@ -177,7 +176,6 @@ module Entity
177
176
  end
178
177
 
179
178
  def list_link(text = nil, id = nil, options = {})
180
- options = Misc.add_defaults options, :ensembl => USE_ENSEMBL
181
179
  ensembl = Misc.process_options options, :ensembl
182
180
 
183
181
  if ensembl and self.respond_to? :ensembl and self.format !~ /^Ensembl /
@@ -258,6 +258,8 @@ label[title]
258
258
  td
259
259
  &.true
260
260
  font-weight: bold
261
+ span[title=true]
262
+ font-weight: bold
261
263
 
262
264
  span.choice
263
265
  padding: 0.5em
@@ -15,7 +15,7 @@
15
15
  - dep_status = "done" if dep.path.exists?
16
16
 
17
17
  - dep_status ||= dep.status
18
- - if ! remote && dep.file(:progress).exists?
18
+ - if ! remote && ! dep_status == 'done' && dep.file(:progress).exists?
19
19
  - pgr = dep.file(:progress).yaml
20
20
  - if pgr and pgr[:last_percent]
21
21
  - start = pgr[:start]
@@ -63,7 +63,7 @@
63
63
  - elsif Module === dep_workflow
64
64
  - wf = dep_workflow
65
65
 
66
- - if Open.remote?(dep.path)
66
+ - if remote
67
67
  - url = dep.path.split("?").first
68
68
  %a(href=url) #{ name }
69
69
 
@@ -29,7 +29,12 @@ function contract_ellipsis(elem, max){
29
29
  var links = [];
30
30
  var head = elements.slice(0, max).removeClass('long');
31
31
  head.each(function(){ links.push(this.outerHTML)})
32
- new_content = links.join(", ");
32
+
33
+ if (elements.first().hasClass('lines'))
34
+ new_content = links.join(" ");
35
+ else
36
+ new_content = links.join(", ");
37
+
33
38
  elem.html(new_content);
34
39
  }
35
40
 
@@ -45,9 +50,22 @@ function restore_ellipsis(elem){
45
50
  var span = elem.find('span.ellipsis')
46
51
  if (span.length == 1){
47
52
  var html = span.attr('attr-text');
53
+
54
+ var by_lines = span.parent().find('span').first().hasClass('lines')
55
+
56
+ if (by_lines){
57
+ var other_tds = span.parent().parent().find('td')
58
+ }
59
+
48
60
  elem.html(unescape(html));
61
+
62
+ if (by_lines){
63
+ other_tds.each(function(i,x){restore_ellipsis($(x))})
64
+ }
65
+
66
+
67
+ update_rbbt();
49
68
  }
50
- update_rbbt();
51
69
  }
52
70
 
53
71
  $('body').on('click', 'a.open_ellipsis', function(link){
@@ -1 +1 @@
1
- share/views/public/plugins/cytoscapejs/cytoscape.umd.js
1
+ ./cytoscape.umd.js
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.151
4
+ version: 1.8.154
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-07-11 00:00:00.000000000 Z
11
+ date: 2022-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake