Skip to content

Commit 3272f44

Browse files
committedMay 1, 2016
Bump some dependencies
1 parent 3a41fa0 commit 3272f44

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed
 

‎lib/actions/user.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ user.git.name = function () {
2727
}
2828

2929
if (shell.which('git')) {
30-
name = shell.exec('git config --get user.name', { silent: true }).output.trim();
30+
name = shell.exec('git config --get user.name', { silent: true }).stdout.trim();
3131
nameCache[process.cwd()] = name;
3232
}
3333

@@ -47,7 +47,7 @@ user.git.email = function () {
4747
}
4848

4949
if (shell.which('git')) {
50-
email = shell.exec('git config --get user.email', { silent: true }).output.trim();
50+
email = shell.exec('git config --get user.email', { silent: true }).stdout.trim();
5151
emailCache[process.cwd()] = email;
5252
}
5353

‎lib/base.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ Base.prototype.run = function run(cb) {
504504
this.runHooks();
505505
});
506506

507-
_.invoke(this._composedWith, 'run');
507+
_.invokeMap(this._composedWith, 'run');
508508
return this;
509509
};
510510

‎lib/util/prompt-suggestion.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var getListDefault = function (question, defaultValue) {
5858
* @private
5959
*/
6060
var storeListAnswer = function (question, answer) {
61-
var choiceValues = _.pluck(question.choices, 'value');
61+
var choiceValues = _.map(question.choices, 'value');
6262
var choiceIndex = choiceValues.indexOf(answer);
6363

6464
// Check if answer is not equal to default value

‎package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,23 @@
4545
"error": "^7.0.2",
4646
"find-up": "^1.0.0",
4747
"github-username": "^2.0.0",
48-
"glob": "^6.0.1",
48+
"glob": "^7.0.3",
4949
"gruntfile-editor": "^1.0.0",
5050
"html-wiring": "^1.0.0",
5151
"inquirer": "^0.11.0",
5252
"istextorbinary": "^1.0.2",
53-
"lodash": "^3.5.0",
53+
"lodash": "^4.11.1",
5454
"mem-fs-editor": "^2.0.0",
5555
"mkdirp": "^0.5.0",
5656
"nopt": "^3.0.0",
57-
"path-exists": "^2.0.0",
57+
"path-exists": "^3.0.0",
5858
"path-is-absolute": "^1.0.0",
59-
"pretty-bytes": "^2.0.1",
60-
"read-chunk": "^1.0.1",
59+
"pretty-bytes": "^3.0.1",
60+
"read-chunk": "^2.0.0",
6161
"read-pkg-up": "^1.0.1",
6262
"rimraf": "^2.2.0",
6363
"run-async": "^2.0.0",
64-
"shelljs": "^0.5.0",
64+
"shelljs": "^0.7.0",
6565
"text-table": "^0.2.0",
6666
"through2": "^2.0.0",
6767
"underscore.string": "^3.0.3",

‎test/base.js

+1
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ describe('generators.Base', function () {
788788
// generator before the base one is ran.
789789
setTimeout(function () {
790790
this.dummy.run(function () {
791+
sinon.assert.callOrder(runSpy, this.spy);
791792
assert(this.spy.calledAfter(runSpy));
792793
done();
793794
}.bind(this));

‎test/conflicter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ describe('Conflicter', function () {
123123
contents: null
124124
}, function () {
125125
assert.equal(
126-
_.where(spy.firstCall.args[0][0].choices, { value: 'diff' }).length,
126+
_.filter(spy.firstCall.args[0][0].choices, { value: 'diff' }).length,
127127
0
128128
);
129129
done();

0 commit comments

Comments
 (0)
Please sign in to comment.