Comparing version 2.0.1 to 2.0.2
var TRAVIS_JOB_ID = process.env.TRAVIS_JOB_ID || 'unknown'; | ||
var fs = require('fs'); | ||
var lcovParse = require('./parser'); | ||
var path = require('path'); | ||
@@ -14,4 +15,4 @@ var detailsToCoverage = function(length, details){ | ||
var convertLcovFileObject = function(file, filepath){ | ||
var path = filepath + "/" + file.file; | ||
var source = fs.readFileSync(path, 'utf8'); | ||
var fullpath = path.join(filepath, file.file); | ||
var source = fs.readFileSync(fullpath, 'utf8'); | ||
var lines = source.split("\n"); | ||
@@ -27,9 +28,4 @@ var coverage = detailsToCoverage(lines.length, file.lines.details); | ||
if (filepath[0] !== '/'){ | ||
filepath = process.cwd() + '/' + filepath; | ||
filepath = path.join(process.cwd(), filepath); | ||
} | ||
console.log("now: ", filepath); | ||
if (filepath[filepath.length - 1] !== '/'){ | ||
filepath = filepath + '/'; | ||
} | ||
console.log("abs: ", filepath); | ||
var parsed = lcovParse(input); | ||
@@ -36,0 +32,0 @@ var postJson = { |
@@ -5,3 +5,3 @@ { | ||
"keywords" : ["coverage", "coveralls"], | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"bugs": { | ||
@@ -8,0 +8,0 @@ "url": "https://github.com/cainus/node-coveralls/issues" |
172215
6033