rbbt-rest 1.8.11 → 1.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c8cd9cb57ee4c5ac78055eaf4975e9348c9d29a5
4
- data.tar.gz: 46bdc357be5ba35777fe28fcb075c8db6c401dd0
3
+ metadata.gz: 39ec6a4d18a8f038d1dcde6def73cef597cfd233
4
+ data.tar.gz: 7300356f3b3d2dcfcb3fd0aed05e808942ae9fce
5
5
  SHA512:
6
- metadata.gz: d68415e1bac3b673fac9c82601994685101cf6b50084d57998c686fcd3daf916b41b4ebbf8b48d45f29eb811973c2b093d4e6e55b9f210cf72537f99829c6629
7
- data.tar.gz: 68c1f4f76ce25a9d5f6eef4f1ddeab673843fc8b6f6820327ae17e3318d5305b0b38b021aa18e999b9b9cebb9fbce7671cd03e47299904d00841383f2f7431e9
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 line
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
- task_parameters[stream_input] = stream
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.11
4
+ version: 1.8.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez