Comparing version 1.6.0 to 2.0.0
{ | ||
"name": "rosie", | ||
"version": "1.6.0", | ||
"version": "2.0.0", | ||
"description": "factory for building JavaScript objects, mostly useful for setting up test data. Inspired by factory_girl", | ||
@@ -16,9 +16,8 @@ "keywords": [ | ||
"devDependencies": { | ||
"eslint": "^1.4.1", | ||
"electron": "^1.3.4", | ||
"eslint": "^3.4.0", | ||
"jasmine-core": "^2.4.1", | ||
"karma": "^0.13.9", | ||
"karma-chrome-launcher": "^0.2.0", | ||
"karma-jasmine": "^0.3.6", | ||
"karma-phantomjs-launcher": "^0.2.1", | ||
"phantomjs": "^1.9.19" | ||
"karma": "^1.2.0", | ||
"karma-electron": "^4.1.0", | ||
"karma-jasmine": "^1.0.2" | ||
}, | ||
@@ -25,0 +24,0 @@ "engines": { |
@@ -149,2 +149,4 @@ # Rosie | ||
If the callback doesn't return anything, rosie will return build object as final result. If the callback returns a value, rosie will use that as final result instead. | ||
### Associate a Factory with an existing Class | ||
@@ -315,9 +317,9 @@ | ||
0. Fork it | ||
0. Create your feature branch (`git checkout -b my-new-feature`) | ||
0. Install the test dependencies (`script/bootstrap` - requires NodeJS and npm) | ||
0. Make your changes and make sure the tests pass (`npm test`) | ||
0. Commit your changes (`git commit -am 'Added some feature'`) | ||
0. Push to the branch (`git push origin my-new-feature`) | ||
0. Create new Pull Request | ||
1. Fork it | ||
1. Create your feature branch (`git checkout -b my-new-feature`) | ||
1. Install the test dependencies (`yarn install` - requires NodeJS and yarn) | ||
1. Make your changes and make sure the tests pass (`yarn test`) | ||
1. Commit your changes (`git commit -am 'Added some feature'`) | ||
1. Push to the branch (`git push origin my-new-feature`) | ||
1. Create new Pull Request | ||
@@ -324,0 +326,0 @@ ## Credits |
@@ -333,3 +333,4 @@ /** | ||
for (var i = 0; i < this.callbacks.length; i++) { | ||
this.callbacks[i](retval, this.options(options)); | ||
var callbackResult = this.callbacks[i](retval, this.options(options)); | ||
retval = callbackResult || retval; | ||
} | ||
@@ -336,0 +337,0 @@ return retval; |
29116
6
441
327