rbbt-rest 1.3.5 → 1.3.6
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/step.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b89eedce159275f0edc648ab9c4ef9daf76041b
|
4
|
+
data.tar.gz: 0f20cfac5e331875ae02a446de1b464572e0a52f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 024092dc74e174b35c5f16ab8977915fd19f09417e82c46b8cee753e4509cb14030bb02a11d2be06231866930445ed74cd3033ffe86223d2aa3f8272d4ef7ad0
|
7
|
+
data.tar.gz: 849368329dc569abd43f8eeee793454f624966558c34320bd33c90700207a7f1769869d422e5dc80c192a9767b5029ae43d88fce5bea4ab33a683ceef565adcc
|
@@ -54,7 +54,8 @@ class WorkflowRESTClient
|
|
54
54
|
nil
|
55
55
|
end
|
56
56
|
|
57
|
-
def load_res(res)
|
57
|
+
def load_res(res, result_type = nil)
|
58
|
+
result_type ||= self.result_type
|
58
59
|
case result_type
|
59
60
|
when :string
|
60
61
|
res
|
@@ -90,7 +91,7 @@ class WorkflowRESTClient
|
|
90
91
|
res = WorkflowRESTClient.capture_exception do
|
91
92
|
RestClient.post(URI.encode(File.join(base_url, task.to_s)), inputs.merge(:_cache_type => :exec, :_format => [:string, :boolean, :tsv, :annotations].include?(result_type) ? :raw : :json))
|
92
93
|
end
|
93
|
-
load_res res
|
94
|
+
load_res res, result_type == :array ? :json : result_type
|
94
95
|
end
|
95
96
|
|
96
97
|
def fork
|