diff --git a/.gitignore b/.gitignore index 4443039..8c5d2a5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ *.swp .DS_Store node_modules/ +.idea +npm-debug.log diff --git a/.travis.yml b/.travis.yml index a12e3f0..48b72c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,8 @@ language: node_js + +sudo: false + node_js: - - "0.8" - - "0.10" \ No newline at end of file + - 0.10 + - 0.12 + - iojs diff --git a/index.js b/index.js index 5fbb16f..a6ea524 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ module.exports = function (gitConfigPath, cb) { if (typeof cb === 'undefined') { cb = gitConfigPath; gitConfigPath = path.join( - process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE, '.gitconfig'); + process.env.HOME || process.env.USERPROFILE, '.gitconfig'); } parser.parse(gitConfigPath, cb); }; @@ -13,7 +13,7 @@ module.exports = function (gitConfigPath, cb) { module.exports.sync = function (gitConfigPath) { if (typeof gitConfigPath === 'undefined') { gitConfigPath = path.join( - process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE, '.gitconfig'); + process.env.HOME || process.env.USERPROFILE, '.gitconfig'); } var results = {}; try { diff --git a/package.json b/package.json index 9414a54..1c9baf5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "git-config", - "version": "0.0.6", + "version": "0.0.7", "description": "A simple way to extract out all the contents of a .gitconfig file and return as JSON", "main": "index.js", "scripts": { @@ -17,12 +17,12 @@ "iniparser": "~1.0.5" }, "devDependencies": { - "expect.js": "~0.2.0", - "grunt-contrib-jshint": "~0.6.4", - "grunt-contrib-watch": "~0.5.3", + "expect.js": "^0.3.1", "grunt": "~0.4.1", - "grunt-mocha-cli": "~1.1.0", - "grunt-complexity": "~0.1.3", - "grunt-cli": "~0.1.9" + "grunt-cli": "~0.1.9", + "grunt-complexity": "^0.3.0", + "grunt-contrib-jshint": "^0.11.2", + "grunt-contrib-watch": "^0.6.1", + "grunt-mocha-cli": "^1.13.0" } }