Skip to content

Commit

Permalink
[+] Prepared for pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
hairyhum committed Jun 27, 2012
1 parent 09c25ee commit 1967b21
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 59 deletions.
17 changes: 4 additions & 13 deletions lib/cucumber/support_code/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,11 @@ var Library = function(supportCodeDefinition) {

instantiateNewWorld: function instantiateNewWorld(callback) {
var world;
if (typeof UIATarget === typeof undefined){
world = new worldConstructor(function(explicitWorld) {
process.nextTick(function() { // release the constructor
callback(explicitWorld || world);
});
world = new worldConstructor(function (explicitWorld) {
process.nextTick(function () { // release the constructor
callback(explicitWorld || world);
});
}
else{
world = new worldConstructor(function(){});
world.callback = function (explicitWorld) {
callback(explicitWorld || world);
};
world.callback();
}
});
}
};

Expand Down
113 changes: 67 additions & 46 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,69 @@
{ "name" : "cucumber"
, "description" : "The official JavaScript implementation of Cucumber."
, "keywords" : [ "testing", "bdd", "cucumber", "gherkin", "tests" ]
, "version" : "0.2.15"
, "homepage" : "http://github.com/cucumber/cucumber-js"
, "author" : "Julien Biezemans <jb@jbpros.com> (http://jbpros.net)"
, "contributors" : [
"Julien Biezemans <jb@jbpros.com> (http://jbpros.net)"
, "Fernando Acorreia <fernandoacorreia@gmail.com>"
, "Paul Jensen <paulbjensen@gmail.com>"
, "Kushal Pisavadia"
, "Olivier Melcher <olivier.melcher@gmail.com>"
, "Tristan Dunn <tristanzdunn@gmail.com>"
, "Ted de Koning"
]
, "repository" :
{ "type" : "git"
, "url" : "git://github.com/cucumber/cucumber-js.git"
}
, "bugs" :
{ "mail" : "cukes@googlegroups.com"
, "url" : "http://github.com/cucumber/cucumber-js/issues"
}
, "directories" : { "lib" : "./lib" }
, "main" : "./lib/cucumber"
, "engines" : { "node" : "0.4 || 0.5 || 0.6" }
, "dependencies" :
{ "gherkin" : "2.6.8"
, "jasmine-node" : "1.0.13"
, "connect" : "1.8.1"
, "browserify" : "1.8.1"
, "nopt" : "1.0.10"
, "underscore" : "1.2.2"
, "rimraf" : "1.0.8"
, "mkdirp" : "0.2.1"
, "cucumber-html": "0.2.0"
, "findit": "0.1.1"
, "coffee-script": "1.1.2"
}
, "scripts" :
{ "test" : "./bin/cucumber.js && jasmine-node spec" }
, "bin": { "cucumber.js": "./bin/cucumber.js", "cucumber-js": "./bin/cucumber.js" }
, "licenses" :
[ { "type" : "MIT"
, "url" : "http://github.com/cucumber/cucumber.js/LICENSE"
{
"name": "cucumber",
"description": "The official JavaScript implementation of Cucumber.",
"keywords": [
"testing",
"bdd",
"cucumber",
"gherkin",
"tests"
],
"version": "0.2.18",
"homepage": "http://github.com/cucumber/cucumber-js",
"author": "Julien Biezemans <jb@jbpros.com> (http://jbpros.net)",
"contributors": [
"Julien Biezemans <jb@jbpros.com> (http://jbpros.net)",
"Fernando Acorreia <fernandoacorreia@gmail.com>",
"Paul Jensen <paulbjensen@gmail.com>",
"Kushal Pisavadia",
"Olivier Melcher <olivier.melcher@gmail.com>",
"Tristan Dunn <tristanzdunn@gmail.com>",
"Ted de Koning",
"@renier",
"Aslak Hellesøy <aslak.hellesoy@gmail.com>",
"Aaron Garvey"
],
"repository": {
"type": "git",
"url": "git://github.com/cucumber/cucumber-js.git"
},
"bugs": {
"email": "cukes@googlegroups.com",
"url": "http://github.com/cucumber/cucumber-js/issues"
},
"directories": {
"lib": "./lib"
},
"main": "./lib/cucumber",
"engines": {
"node": "0.6 || 0.7 || 0.8"
},
"dependencies": {
"gherkin": "2.11.0",
"jasmine-node": "1.0.26",
"connect": "2.3.2",
"browserify": "1.13.2",
"nopt": "1.0.10",
"underscore": "1.3.3",
"rimraf": "2.0.2",
"mkdirp": "0.3.3",
"cucumber-html": "0.2.0",
"walkdir": "0.0.4",
"coffee-script": "1.3.3"
},
"scripts": {
"test": "./bin/cucumber.js && jasmine-node spec"
},
"bin": {
"cucumber.js": "./bin/cucumber.js",
"cucumber-js": "./bin/cucumber.js"
},
"licenses": [
{
"type": "MIT",
"url": "http://github.com/cucumber/cucumber.js/LICENSE"
}
]
],
"devDependencies": {},
"optionalDependencies": {}
}

0 comments on commit 1967b21

Please sign in to comment.