rbbt-rest 1.8.11 → 1.8.12
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/workflow/stream_task.rb +9 -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: 39ec6a4d18a8f038d1dcde6def73cef597cfd233
|
4
|
+
data.tar.gz: 7300356f3b3d2dcfcb3fd0aed05e808942ae9fce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 750cc3ac0961111b9fc2526f7ae7e51d9b84801074e41fd29582efcda8685b7cc0f8cd3f519ee1fd180080984962873a98d3f536ed58f280e6089d8b1655bb8f
|
7
|
+
data.tar.gz: b6f74f3669ce861c26c105b4f02a66a48b93b6a878e1a60292cefb87132266bdb7307ba00c05e11ced05767db8f2c9afa13803f82d9bad83b767677f44bd7b6a
|
@@ -56,10 +56,13 @@ class StreamWorkflowTask
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def copy_until_boundary(sin, sout, boundary)
|
59
|
+
last_line = nil
|
59
60
|
while line = sin.gets
|
60
61
|
break if line.include? boundary
|
61
|
-
sout.write
|
62
|
+
sout.write last_line
|
63
|
+
last_line = line
|
62
64
|
end
|
65
|
+
sout.write last_line.strip unless last_line == EOL
|
63
66
|
end
|
64
67
|
|
65
68
|
def get_inputs(content_type, stream)
|
@@ -79,7 +82,11 @@ class StreamWorkflowTask
|
|
79
82
|
|
80
83
|
Misc.add_stream_filename(stream, filename) if filename
|
81
84
|
|
82
|
-
|
85
|
+
clean_stream = Misc.open_pipe do |sin|
|
86
|
+
copy_until_boundary(stream, sin, boundary)
|
87
|
+
end
|
88
|
+
|
89
|
+
task_parameters[stream_input] = clean_stream
|
83
90
|
|
84
91
|
task = task.to_sym
|
85
92
|
|