Skip to content

Commit

Permalink
fix overwritten api.rb line
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmerwin committed Apr 20, 2015
1 parent 0f41eb6 commit 87bde67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/coveralls/api.rb
Expand Up @@ -53,8 +53,8 @@ def self.endpoint_to_url(endpoint)

def self.hash_to_file(hash)
file = nil
Tempfile.open(['coveralls-upload', '.json']) do |f|
f.write(MultiJson.dump hash)
Tempfile.open(['coveralls-upload', 'json']) do |f|
f.write(JSON.dump hash)
file = f
end
File.new(file.path, 'rb')
Expand Down

0 comments on commit 87bde67

Please sign in to comment.