From 0108e083ff81bba0d49610759aab663825f9c816 Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Date: Thu, 9 May 2013 10:26:43 -0300 Subject: [PATCH 1/3] Removing trailing spaces. --- tasks/cucumber-js-task.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/cucumber-js-task.js b/tasks/cucumber-js-task.js index 03c9f43..aecf6ff 100644 --- a/tasks/cucumber-js-task.js +++ b/tasks/cucumber-js-task.js @@ -12,7 +12,7 @@ module.exports = function (grunt) { var tags = options.tags; var format = options.format; var executable = options.executable; - + grunt.verbose.writeflags(options, 'Options'); var callback = function(succeeded) { @@ -42,7 +42,7 @@ module.exports = function (grunt) { var execOptions = ['node', 'node_modules/.bin/cucumber-js']; - + var _ = grunt.util._; if (! _.isEmpty(files)) { execOptions = execOptions.concat(files); @@ -62,7 +62,7 @@ module.exports = function (grunt) { execOptions.push('-f'); execOptions.push(format); } - + var cucumberPath = 'cucumber'; if (! _.isEmpty(executable)) { cucumberPath = executable; From ad055582f7767d10e330ff0fffa4a1806b3efb29 Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Date: Thu, 9 May 2013 10:29:22 -0300 Subject: [PATCH 2/3] Pass succeeded as result of async task. --- tasks/cucumber-js-task.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/cucumber-js-task.js b/tasks/cucumber-js-task.js index aecf6ff..735fd57 100644 --- a/tasks/cucumber-js-task.js +++ b/tasks/cucumber-js-task.js @@ -16,9 +16,8 @@ module.exports = function (grunt) { grunt.verbose.writeflags(options, 'Options'); var callback = function(succeeded) { - var code = succeeded ? 0 : 1; var exitFunction = function() { - done(code); + done(succeeded); }; // --- exit after waiting for all pending output --- From 1c2bd5c00b7338d6c02b1e6baeaf98ac75862d99 Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Date: Thu, 9 May 2013 10:33:04 -0300 Subject: [PATCH 3/3] Bump version. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 28ae061..c8260e1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "grunt-cucumber", "description": "Grunt task for running Cucumber.js", - "version": "0.2.1", + "version": "0.2.2", "homepage": "https://github.com/s9tpepper/grunt-cucumber-js", "author": { "name": "Omar Gonzalez",