rbbt-rest 1.8.136 → 1.8.137

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: 8291911f0473d9d30956ea5989996c626736f5406bc4e6a09478c2a7ada771fb
4
- data.tar.gz: 9ca33ac6c0b51b927b3d6041aced32a732646414772ba6aa46df8a48190ad7ae
3
+ metadata.gz: 260f3dfac0e66e1895ed7aea67d5a07e91b4e3b47f009278b36eee79e419107e
4
+ data.tar.gz: 74d2cb800b8c8f72a2fcfccb5e16386c051e1474029de057d2f81a817f009518
5
5
  SHA512:
6
- metadata.gz: 2ae762c95a7d407c3c90c5e242ae3370f2c2083fc90181bbe63bc5e80159e68196beba7d128c1e6c415a87287efbba132f3d0b452c5f0564019fea4a4660cced
7
- data.tar.gz: 2625b47931d49c18711718846760db4c62c5f5ab0c451a459ddbca96960ddbccd0345605a4994752a7d81af9ee0769c3ea6343593fb58902e18e9c649d57ad1b
6
+ metadata.gz: 987251d8d2d028fabdd77337bb25c34219361f77087b0d60b6210fbbd2b9c7c7ec724fd377d7a5baf887b1f2512f5138314718df72419e2986df5975e0381940
7
+ data.tar.gz: e18031687205f914cc169b42472edbf9c237b9e3d0747bb8517027584ca2d26e41f4ec6203ec96c5a62b5483f16e2c81415a22648bfd2eeee76af6fa0fadaf2d
@@ -223,7 +223,8 @@ data = NULL
223
223
 
224
224
  if mime.nil?
225
225
  txt = Open.read(fragment_file)
226
- if txt =~ /<([^> ]+)[^>]*>.*<\/\1>/sm
226
+
227
+ if txt =~ /<([^> ]+)[^>]*>.*?<\/\1>/m
227
228
  mime = "text/html"
228
229
  else
229
230
  begin
@@ -59,8 +59,13 @@ module RbbtRESTHelpers
59
59
  @ajax = request.xhr?
60
60
  @ajax_url = headers["AJAX-URL"]
61
61
 
62
- @fullpath = request.fullpath
63
62
  @uri = request.env["REQUEST_URI"]
63
+ @path = request.env["PATH_INFO"]
64
+ @query = request.env["QUERY_STRING"]
65
+
66
+ #@fullpath = request.fullpath
67
+ @fullpath = (@query && ! @query.empty?) ? @path + "?" + @query : @path
68
+ @fullpath = remove_GET_param(@fullpath, ["_update", "_"])
64
69
 
65
70
  @layout = consume_parameter(:_layout)
66
71
 
@@ -166,9 +166,10 @@ module RbbtRESTHelpers
166
166
  }
167
167
  Open.write(pid_file, pid.to_s)
168
168
 
169
- url = @uri
169
+ url = @fullpath
170
170
  url = remove_GET_param(url, "_update")
171
171
  url = remove_GET_param(url, "_")
172
+
172
173
  fragment_url = add_GET_param(url, "_fragment", fragment_code)
173
174
  if link.nil?
174
175
  html_tag('a', "", :href => fragment_url, :class => 'fragment', "data-text" => text)
@@ -226,7 +227,7 @@ module RbbtRESTHelpers
226
227
  filename = Misc.sanitize_filename(Misc.name2basename(filename))
227
228
 
228
229
  if @step
229
- url = add_GET_param(remove_GET_param(@uri, ["_update", "_"]), "_fragment", "html_resources/#{ filename }")
230
+ url = add_GET_param(remove_GET_param(@fullpath, ["_update", "_"]), "_fragment", "html_resources/#{ filename }")
230
231
  f = @step.file(:html_resources)[filename].find
231
232
  else
232
233
  url = "/files/#{ filename }"
@@ -402,7 +402,7 @@ module RbbtRESTHelpers
402
402
  if @step
403
403
  table_file = @step.file(table_code) if @step
404
404
 
405
- url = add_GET_param(@uri, "_fragment", File.basename(table_file))
405
+ url = add_GET_param(@fullpath, "_fragment", File.basename(table_file))
406
406
  url = remove_GET_param(url, "_update")
407
407
  url = remove_GET_param(url, "_layout")
408
408
  url = remove_GET_param(url, "_")
@@ -278,3 +278,16 @@ ul.tasks
278
278
 
279
279
  .table > .table_url
280
280
  display: none
281
+
282
+ dl.flex_dl
283
+ display: flex
284
+ flex-flow: row wrap
285
+ & > dt
286
+ flex-basis: 20%
287
+ text-align: right
288
+ padding-right: 2em
289
+ & > dd
290
+ flex-basis: 80%
291
+ flex-grow: 1
292
+ margin: 0
293
+
@@ -21,7 +21,7 @@
21
21
  %input(type='submit')
22
22
 
23
23
  - if (%w(pvalue p.value p-value pvalues p.values p-values qvalue q.value q-value qvalues q.values q-values) & map.fields.first.downcase.split(/\s+/)).any? and map.fields.first.downcase !~ /score$/
24
- - url = add_GET_param(@uri, '_format', 'pvalue_score')
24
+ - url = add_GET_param(@fullpath, '_format', 'pvalue_score')
25
25
  %a.ui.small.button(href=url) Pvalue score
26
26
 
27
27
  = reveal "QQ-plot", nil, :class => 'ui small button plot' do
@@ -56,16 +56,16 @@
56
56
 
57
57
  - if Gene == Entity.formats[map.key_field]
58
58
  - if map.key_field != "Ensembl Gene ID"
59
- - url = add_GET_param(@uri, '_format', 'ensembl')
59
+ - url = add_GET_param(@fullpath, '_format', 'ensembl')
60
60
  %a.ensembl.ui.small.button(href=url) Ensembl
61
61
  - if map.key_field != "Associated Gene Name"
62
- - url = add_GET_param(@uri, '_format', 'name')
62
+ - url = add_GET_param(@fullpath, '_format', 'name')
63
63
  %a.name.ui.small.button(href=url) Name
64
64
  - if "Rank" == map.fields.first
65
- - url = add_GET_param(@uri, '_format', 'invert_ranks')
65
+ - url = add_GET_param(@fullpath, '_format', 'invert_ranks')
66
66
  %a.invert_ranks.ui.small.button(href=url) Invert ranks
67
67
  - else
68
- - url = add_GET_param(@uri, '_format', 'ranks')
68
+ - url = add_GET_param(@fullpath, '_format', 'ranks')
69
69
  %a.ranks.ui.small.button(href=url) Ranks
70
70
  - if NumericValue == Entity.formats[map.fields.first] or (map.entity_templates[map.fields.first] and map.entity_templates[map.fields.first].annotation_types.include? NumericValue)
71
71
  - $page_entity_base_type = page_entity_base_type
@@ -6,7 +6,7 @@
6
6
 
7
7
  - extra = "" unless defined? extra
8
8
 
9
- - url = @uri
9
+ - url = @fullpath
10
10
 
11
11
  %svg(id=id)
12
12
 
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.136
4
+ version: 1.8.137
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-07 00:00:00.000000000 Z
11
+ date: 2020-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake