rbbt-util 5.21.20 → 5.21.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/rest/client/get.rb +1 -1
- data/lib/rbbt/rest/client/step.rb +16 -4
- data/lib/rbbt/tsv/util.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19e5a7eb74a769263c8009fbff7e61599240b692
|
4
|
+
data.tar.gz: ee05a8abc85526fc13b2d7404d31b789dfe89bcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6484d908c7cc09f2dc2b78c216a96ba0a40523cb7551effc001d702fb61145930eeb09b003a49acedd3c7d0aa5e4add13115f6e1539548322c71b903944b736b
|
7
|
+
data.tar.gz: cf87b44094173fd5f9a1529a08fca8d4df0c416da6ce720f3883c3bda412af34834e0682f9421b4fb2bf55e18beba60ec01f6a49870c04f46f6353e356661075
|
data/lib/rbbt/rest/client/get.rb
CHANGED
@@ -293,10 +293,22 @@ class WorkflowRESTClient
|
|
293
293
|
(stream ? res.read : res).split("\n")
|
294
294
|
res.split("\n")
|
295
295
|
else
|
296
|
-
if IO === res
|
297
|
-
|
298
|
-
|
299
|
-
|
296
|
+
json_text = if IO === res
|
297
|
+
res.read
|
298
|
+
else
|
299
|
+
res
|
300
|
+
end
|
301
|
+
begin
|
302
|
+
JSON.parse json_text
|
303
|
+
rescue
|
304
|
+
case
|
305
|
+
when json_text =~ /^\d+$/
|
306
|
+
json_text.to_i
|
307
|
+
when json_text =~ /^\d+\.\d/
|
308
|
+
json_text.to_f
|
309
|
+
else
|
310
|
+
raise $!
|
311
|
+
end
|
300
312
|
end
|
301
313
|
end
|
302
314
|
end
|
data/lib/rbbt/tsv/util.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.21.
|
4
|
+
version: 5.21.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -482,7 +482,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
482
482
|
version: '0'
|
483
483
|
requirements: []
|
484
484
|
rubyforge_project:
|
485
|
-
rubygems_version: 2.
|
485
|
+
rubygems_version: 2.6.6
|
486
486
|
signing_key:
|
487
487
|
specification_version: 4
|
488
488
|
summary: Utilities for the Ruby Bioinformatics Toolkit (rbbt)
|