From 785140f80c0e7184c1bf919f626bc5357b840971 Mon Sep 17 00:00:00 2001 From: greenkeeperio-bot Date: Fri, 25 Sep 2015 13:17:54 +0200 Subject: [PATCH 1/3] chore(package): pinned dependencies http://greenkeeper.io/ --- package.json | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 605c8fe9..a84cf920 100644 --- a/package.json +++ b/package.json @@ -27,30 +27,30 @@ "@semantic-release/release-notes-generator": "^2.0.0", "git-head": "^1.2.1", "github": "^0.2.4", - "lodash": "^3.9.3", + "lodash": "3.10.0", "nerf-dart": "^1.0.0", - "nopt": "^3.0.3", + "nopt": "3.0.3", "npmconf": "^2.1.2", "npmlog": "^1.2.1", "parse-github-repo-url": "^1.0.0", "require-relative": "^0.8.7", - "run-auto": "^1.1.2", - "run-series": "^1.1.2", - "semver": "^5.0.1" + "run-auto": "1.1.2", + "run-series": "1.1.3", + "semver": "5.0.2" }, "devDependencies": { - "babel": "^5.5.8", - "coveralls": "^2.11.2", - "cz-conventional-changelog": "^1.1.0", + "babel": "5.8.21", + "coveralls": "2.11.3", + "cz-conventional-changelog": "1.1.0", "mkdirp": "^0.5.1", "nixt": "^0.4.1", - "nock": "^2.5.0", + "nock": "2.11.0", "npm-registry-couchapp": "^2.6.11", - "nyc": "^3.0.0", - "proxyquire": "^1.5.0", - "rimraf": "^2.4.0", - "standard": "^5.0.2", - "tap": "^1.3.1" + "nyc": "3.2.1", + "proxyquire": "1.7.1", + "rimraf": "2.4.2", + "standard": "5.3.0", + "tap": "1.4.0" }, "engines": { "node": ">=0.10", From 927e930bb94419e94f1cabc0d70e7ada73fe2435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6nnemann?= Date: Sat, 26 Sep 2015 12:45:11 +0200 Subject: [PATCH 2/3] style(standard): fix ternaries --- src/lib/commits.js | 6 +++--- src/lib/plugins.js | 6 +++--- src/pre.js | 6 +++--- test/mocks/child-process.js | 6 +++--- test/specs/plugins.js | 1 - 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/lib/commits.js b/src/lib/commits.js index b5034be7..76f0da5f 100644 --- a/src/lib/commits.js +++ b/src/lib/commits.js @@ -32,9 +32,9 @@ module.exports = function ({lastRelease, options}, cb) { `The commit the last release of this package was derived from is not in the direct history of the "${branch}" branch. This means semantic-release can not extract the commits between now and then. This is usually caused by force pushing, releasing from an unrelated branch, or using an already existing package name. -You can recover from this error by publishing manually or restoring the commit "${from}".` + (branches && branches.length ? - `\nHere is a list of branches that still contain the commit in question: \n * ${branches.join('\n * ')}` : - '' +You can recover from this error by publishing manually or restoring the commit "${from}".` + (branches && branches.length + ? `\nHere is a list of branches that still contain the commit in question: \n * ${branches.join('\n * ')}` + : '' )) return cb(new SemanticReleaseError('Commit not in history', 'ENOTINHISTORY')) } diff --git a/src/lib/plugins.js b/src/lib/plugins.js index f5a0da4d..3f1186b2 100644 --- a/src/lib/plugins.js +++ b/src/lib/plugins.js @@ -12,9 +12,9 @@ let exports = module.exports = function (options) { if (!Array.isArray(options[plugin])) { plugins[plugin] = exports.normalize( options[plugin], - plugin === 'verifyConditions' ? - '@semantic-release/condition-travis' : - './plugin-noop' + plugin === 'verifyConditions' + ? '@semantic-release/condition-travis' + : './plugin-noop' ) return } diff --git a/src/pre.js b/src/pre.js index f770e55f..4d2cd3e8 100644 --- a/src/pre.js +++ b/src/pre.js @@ -28,9 +28,9 @@ module.exports = function (config, cb) { const nextRelease = { type: results.type, - version: results.type === 'initial' ? - '1.0.0' : - semver.inc(results.lastRelease.version, results.type) + version: results.type === 'initial' + ? '1.0.0' + : semver.inc(results.lastRelease.version, results.type) } plugins.verifyRelease(_.assign({ diff --git a/test/mocks/child-process.js b/test/mocks/child-process.js index f1281b6a..a0c0f6a4 100644 --- a/test/mocks/child-process.js +++ b/test/mocks/child-process.js @@ -12,9 +12,9 @@ module.exports = { cb( null, - /\.\.HEAD/.test(command) ? - rawCommits[0] : - rawCommits.join() + /\.\.HEAD/.test(command) + ? rawCommits[0] + : rawCommits.join() ) }, '@noCallThru': true diff --git a/test/specs/plugins.js b/test/specs/plugins.js index a38548cf..137c80ca 100644 --- a/test/specs/plugins.js +++ b/test/specs/plugins.js @@ -67,7 +67,6 @@ test('plugin pipelines', (t) => { }) test('normalize and load plugin', (t) => { - t.test('load from string', (tt) => { const plugin = plugins.normalize('./dist/lib/plugin-noop') From 26e2afc152f39a772fa3c487b749b99e15e21c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6nnemann?= Date: Sat, 26 Sep 2015 20:22:11 +0200 Subject: [PATCH 3/3] test: end tests properly --- test/specs/plugins.js | 2 ++ test/specs/post.js | 2 ++ test/specs/verify.js | 2 ++ 3 files changed, 6 insertions(+) diff --git a/test/specs/plugins.js b/test/specs/plugins.js index 137c80ca..dba5fa52 100644 --- a/test/specs/plugins.js +++ b/test/specs/plugins.js @@ -92,4 +92,6 @@ test('normalize and load plugin', (t) => { tt.end() }) + + t.end() }) diff --git a/test/specs/post.js b/test/specs/post.js index f34aad0d..174cd296 100644 --- a/test/specs/post.js +++ b/test/specs/post.js @@ -65,4 +65,6 @@ test('full post run', (t) => { tt.end() }) }) + + t.end() }) diff --git a/test/specs/verify.js b/test/specs/verify.js index 03d4d291..7f4862c4 100644 --- a/test/specs/verify.js +++ b/test/specs/verify.js @@ -65,4 +65,6 @@ test('verify pkg, options and env', (t) => { tt.end() }) + + t.end() })