class Coveralls::API
def hash_to_file(hash)
def hash_to_file(hash) file = nil Tempfile.open(%w[coveralls-upload json]) do |f| f.write(JSON.dump(hash)) file = f end File.new(file.path, 'rb') end
def hash_to_file(hash) file = nil Tempfile.open(%w[coveralls-upload json]) do |f| f.write(JSON.dump(hash)) file = f end File.new(file.path, 'rb') end