run `update`, use `homedir-polyfill`

master
jonschlinkert 8 years ago
parent fd6b600898
commit 4ecfc73bcd

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

20
.gitignore vendored

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

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

@ -4,6 +4,11 @@
"version": "0.4.2", "version": "0.4.2",
"homepage": "https://github.com/jonschlinkert/parse-git-config", "homepage": "https://github.com/jonschlinkert/parse-git-config",
"author": "Jon Schlinkert (https://github.com/jonschlinkert)", "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", "repository": "jonschlinkert/parse-git-config",
"bugs": { "bugs": {
"url": "https://github.com/jonschlinkert/parse-git-config/issues" "url": "https://github.com/jonschlinkert/parse-git-config/issues"
@ -21,13 +26,13 @@
}, },
"dependencies": { "dependencies": {
"extend-shallow": "^2.0.1", "extend-shallow": "^2.0.1",
"git-config-path": "^0.2.0", "git-config-path": "^1.0.0",
"ini": "^1.3.4" "ini": "^1.3.4"
}, },
"devDependencies": { "devDependencies": {
"gulp-format-md": "^0.1.7", "gulp-format-md": "^0.1.11",
"mocha": "^2.4.5", "homedir-polyfill": "^1.0.0",
"os-homedir": "^1.0.1" "mocha": "^3.1.2"
}, },
"keywords": [ "keywords": [
"config", "config",
@ -46,12 +51,12 @@
], ],
"related": { "related": {
"list": [ "list": [
"parse-github-url", "git-user-name",
"parse-gitignore", "git-username",
"parse-author", "parse-author",
"parse-authors", "parse-authors",
"git-user-name", "parse-github-url",
"git-username" "parse-gitignore"
] ]
}, },
"reflinks": [ "reflinks": [
@ -61,4 +66,4 @@
"reflinks": true "reflinks": true
} }
} }
} }

@ -10,7 +10,7 @@
require('mocha'); require('mocha');
var assert = require('assert'); var assert = require('assert');
var path = require('path'); var path = require('path');
var home = require('os-homedir'); var homedir = require('homedir-polyfill');
var parse = require('./'); var parse = require('./');
describe('sync:', function() { describe('sync:', function() {
@ -53,7 +53,7 @@ describe('resolve:', function() {
}); });
it('should allow override path', 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); 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() { 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() { it('should allow override of cwd', function() {

Loading…
Cancel
Save