From 04a2c273a44367c5c931a63f3435ee101f5f4b45 Mon Sep 17 00:00:00 2001 From: Omar Gonzalez Date: Mon, 9 Sep 2013 15:10:30 -0700 Subject: [PATCH] executable rename -Renamed executable to modulePath --- CHANGELOG.md | 3 +++ README.md | 10 ++++++---- package.json | 2 +- tasks/cucumber-js-task.js | 6 +++--- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 325783c..a10b5b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Changelog +## v 0.2.3 +* Fixed 'executable' rename to 'modulePath' + ## v 0.2.2 * Merged fix for incorrect status code * Merged fix to README file for 'src' instead of 'files' diff --git a/README.md b/README.md index eb62576..a1ec8b9 100644 --- a/README.md +++ b/README.md @@ -70,17 +70,19 @@ Available formats: * json : prints the feature as JSON * summary : prints a summary only, after all scenarios were executed -#### executable +#### modulePath Type: `String` Default: `'cucumber'` Used to set the path to Cucumber.js's `lib/cucumber.js` file if you don't want to load it from the `npm_modules` -directory using `require('cucumber')`. Useful for running -customized versions of Cucumber.js for a specific project. +directory using the default `require('cucumber')`. Useful for running +customized versions of Cucumber.js for a specific project. +It is helpful when you need to modify the Cucumber.js lib +but you can not open source the contributions. -Example: `executable: "../../custom_libs/cucumberjs/lib/cucumber.js"` +Example: `modulePath: "../../custom_libs/cucumberjs/lib/cucumber.js"` ### Usage Examples diff --git a/package.json b/package.json index c8260e1..5baedb6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "grunt-cucumber", "description": "Grunt task for running Cucumber.js", - "version": "0.2.2", + "version": "0.2.3", "homepage": "https://github.com/s9tpepper/grunt-cucumber-js", "author": { "name": "Omar Gonzalez", diff --git a/tasks/cucumber-js-task.js b/tasks/cucumber-js-task.js index 735fd57..45e37a7 100644 --- a/tasks/cucumber-js-task.js +++ b/tasks/cucumber-js-task.js @@ -11,7 +11,7 @@ module.exports = function (grunt) { var steps = options.steps; var tags = options.tags; var format = options.format; - var executable = options.executable; + var modulePath = options.modulePath; grunt.verbose.writeflags(options, 'Options'); @@ -63,8 +63,8 @@ module.exports = function (grunt) { } var cucumberPath = 'cucumber'; - if (! _.isEmpty(executable)) { - cucumberPath = executable; + if (! _.isEmpty(modulePath)) { + cucumberPath = modulePath; } grunt.verbose.writeln('Exec Options: ' + execOptions.join(' '));