run `update`, use `homedir-polyfill`

master
jonschlinkert 8 years ago
parent fd6b600898
commit 4ecfc73bcd

@ -1,4 +1,3 @@
# http://editorconfig.org
root = true
[*]
@ -9,14 +8,6 @@ indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
[{**/{actual,fixtures,expected,templates}/**,*.md}]
trim_trailing_whitespace = false
insert_final_newline = false
[test/**]
trim_trailing_whitespace = false
insert_final_newline = false
[templates/**]
trim_trailing_whitespace = false
insert_final_newline = false
insert_final_newline = false

20
.gitignore vendored

@ -1,12 +1,20 @@
*.DS_store
# always ignore files
*.DS_Store
*.sublime-*
_gh_pages
bower_components
# test related, or directories generated by tests
test/actual
actual
coverage
# npm
node_modules
npm-debug.log
actual
test/actual
# misc
_gh_pages
bower_components
vendor
temp
tmp
TODO.md
vendor

@ -1,12 +1,11 @@
sudo: false
os:
- linux
- osx
language: node_js
node_js:
- "stable"
- "5"
- "4"
- "0.12"
- "0.10"
matrix:
fast_finish: true
allow_failures:
- node_js: "0.10"
- node
- '6'
- '5'
- '0.12'
- '0.10'

@ -4,6 +4,11 @@
"version": "0.4.2",
"homepage": "https://github.com/jonschlinkert/parse-git-config",
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"contributors": [
"Jason Denizac <jason@denizac.org> (https://jden.us)",
"Jon Schlinkert <jon.schlinkert@sellside.com> (http://twitter.com/jonschlinkert)",
"Sam Holmes <sam@samholmes.net> (https://samholmes.net)"
],
"repository": "jonschlinkert/parse-git-config",
"bugs": {
"url": "https://github.com/jonschlinkert/parse-git-config/issues"
@ -21,13 +26,13 @@
},
"dependencies": {
"extend-shallow": "^2.0.1",
"git-config-path": "^0.2.0",
"git-config-path": "^1.0.0",
"ini": "^1.3.4"
},
"devDependencies": {
"gulp-format-md": "^0.1.7",
"mocha": "^2.4.5",
"os-homedir": "^1.0.1"
"gulp-format-md": "^0.1.11",
"homedir-polyfill": "^1.0.0",
"mocha": "^3.1.2"
},
"keywords": [
"config",
@ -46,12 +51,12 @@
],
"related": {
"list": [
"parse-github-url",
"parse-gitignore",
"git-user-name",
"git-username",
"parse-author",
"parse-authors",
"git-user-name",
"git-username"
"parse-github-url",
"parse-gitignore"
]
},
"reflinks": [
@ -61,4 +66,4 @@
"reflinks": true
}
}
}
}

@ -10,7 +10,7 @@
require('mocha');
var assert = require('assert');
var path = require('path');
var home = require('os-homedir');
var homedir = require('homedir-polyfill');
var parse = require('./');
describe('sync:', function() {
@ -53,7 +53,7 @@ describe('resolve:', function() {
});
it('should allow override path', function() {
var fp = path.resolve(home(), '.gitconfig');
var fp = path.resolve(homedir(), '.gitconfig');
assert.equal(parse.resolve({path: fp}), fp);
});
@ -62,7 +62,7 @@ describe('resolve:', function() {
});
it('should resolve relative path to the global git config when `global` is passed', function() {
assert.equal(parse.resolve('global'), path.resolve(home(), '.gitconfig'));
assert.equal(parse.resolve('global'), path.resolve(homedir(), '.gitconfig'));
});
it('should allow override of cwd', function() {

Loading…
Cancel
Save