Comparing version 2.0.6 to 2.0.7
@@ -15,4 +15,8 @@ var TRAVIS_JOB_ID = process.env.TRAVIS_JOB_ID || 'unknown'; | ||
var convertLcovFileObject = function(file, filepath){ | ||
var fullpath = path.join(filepath, file.file); | ||
var source = fs.readFileSync(fullpath, 'utf8'); | ||
if (file.file[0] !== '/'){ | ||
filepath = path.join(filepath, file.file); | ||
} else { | ||
filepath = file.file; | ||
} | ||
var source = fs.readFileSync(filepath, 'utf8'); | ||
var lines = source.split("\n"); | ||
@@ -19,0 +23,0 @@ var coverage = detailsToCoverage(lines.length, file.lines.details); |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"bugs": { | ||
@@ -11,0 +11,0 @@ "url": "https://github.com/cainus/node-coveralls/issues" |
168924
5929