Skip to content

Commit

Permalink
Merge pull request #5 from mkuklis/master
Browse files Browse the repository at this point in the history
let rosie do her thing on node.js
  • Loading branch information
bkeepers committed Oct 8, 2012
2 parents 8af41f6 + 1273f12 commit d66fc8f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions package.json
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,11 @@
{ "name": "rosie"
, "version": "0.1.0"
, "description": "factory for building JavaScript objects, mostly useful for setting up test data. Inspired by factory_girl"
, "keywords": ["factory", "rosie", "test"]
, "author": "Brandon Keepers <brandon@opensoul.org>"
, "contributors": []
, "dependencies" : {}
, "engines": { "node": "*" }
, "repository": { "type": "git", "url": "git://github.com/bkeepers/rosie.git" }
, "main": "src/rosie.js"
}
4 changes: 4 additions & 0 deletions src/rosie.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ Factory.build = function(name, attrs) {
Factory.attributes = function(name, attrs) { Factory.attributes = function(name, attrs) {
return this.factories[name].attributes(attrs); return this.factories[name].attributes(attrs);
}; };

if (typeof exports != "undefined") {
exports.Factory = Factory;
}

0 comments on commit d66fc8f

Please sign in to comment.