Skip to content

Commit

Permalink
Merge branch 'simon-p-r-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneware committed Jun 13, 2015
2 parents 9b4e236 + 854d254 commit 5d735aa
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.swp
.DS_Store
node_modules/
.idea
npm-debug.log
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
language: node_js

sudo: false

node_js:
- "0.8"
- "0.10"
- 0.10
- 0.12
- iojs
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ 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);
};

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 {
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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"
}
}

0 comments on commit 5d735aa

Please sign in to comment.