Permalink
Browse files

Merge pull request #5 from mkuklis/master

let rosie do her thing on node.js
  • Loading branch information...
2 parents 8af41f6 + 1273f12 commit d66fc8ffec1825c1f7d7d01c056c0ba4e48b19a4 @bkeepers bkeepers committed Oct 8, 2012
Showing with 15 additions and 0 deletions.
  1. +11 −0 package.json
  2. +4 −0 src/rosie.js
View
@@ -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"
+}
View
@@ -52,3 +52,7 @@ Factory.build = function(name, attrs) {
Factory.attributes = function(name, attrs) {
return this.factories[name].attributes(attrs);
};
+
+if (typeof exports != "undefined") {
+ exports.Factory = Factory;
+}

0 comments on commit d66fc8f

Please sign in to comment.