lib/xcjobs/coverage.rb in xcjobs-0.0.9 vs lib/xcjobs/coverage.rb in xcjobs-0.1.0
- old
+ new
@@ -141,9 +141,10 @@
end
def write_report(report)
temp = Tempfile.new('coveralls')
temp.puts(report.to_json)
+ temp.flush
temp.path
end
def upload(json_file)
curl_options = ['curl', '-sSf', '-F', "json_file=@#{json_file}", 'https://coveralls.io/api/v1/jobs']