lib/xcjobs/distribute.rb in xcjobs-0.4.1 vs lib/xcjobs/distribute.rb in xcjobs-0.4.2
- old
+ new
@@ -8,10 +8,10 @@
curl_options = ['curl', '-sSf', "#{url}"]
form_fields = form_data.flat_map { |k, v| ['-F', "#{k}=#{v}"] }
header_fields = header.flat_map { |k, v| ['-H', "#{k}:#{v}"] }
puts (curl_options + form_fields + header_fields).join(' ')
- Open3.popen2e(*(curl_options + form_fields + header_fields)) do |stdin, stdout_err, wait_thr|
+ Open3.popen2e({ "NSUnbufferedIO" => "YES" }, *(curl_options + form_fields + header_fields)) do |stdin, stdout_err, wait_thr|
output = ''
while line = stdout_err.gets
puts line
output << line
end