Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update gumbo dep to 0.1.3

  • Loading branch information...
commit ca0cf4ac8e1aafcaf0e995d3a251b58b2b08a89e 1 parent cbc7b94
@crcn authored
View
1  lib/plugins/cbd.projects/index.js
@@ -151,6 +151,7 @@ exports.plugin = function(router) {
ops.projectName = params.target || ops.target || (ops.args.length ? ops.args.shift() : path.basename(process.cwd()));
}
+
Project.find(ops.projectName, function(err, projects) {
//attach onto the request so anything routes after this get the projects. example above
View
6 lib/plugins/cbd.projects/model.js
@@ -22,6 +22,7 @@ exports.init = function(config, router) {
this.router = router;
+
this.globalConfig = config;
},
@@ -94,7 +95,7 @@ exports.init = function(config, router) {
if(!script) {
- console.error('Command "%s" does not exist', ops.command.bold);
+ xerror('Command "%s" does not exist', ops.command.bold);
return callback();
}
@@ -174,7 +175,7 @@ exports.init = function(config, router) {
if(queryOrName == '--all' || queryOrName == 'all-projects') {
- search = { path: { $ne: null } }; //all
+ query = { _id: { $ne: null } }; //all
} else {
query = { _id: { $in: (queryOrName || '').replace(/([^+]+)/g,this.getId('$1')).split('+') } };
@@ -184,6 +185,7 @@ exports.init = function(config, router) {
query = queryOrName;
}
+
return query;
},
View
2  package.json
@@ -8,7 +8,7 @@
"url": "git://github.com/crcn/cupboard.git"
},
"dependencies": {
- "gumbo": "0.1.2",
+ "gumbo": "0.1.x",
"colors": "0.5.1",
"celeri": "0.3.x",
"ini": "1.0.1",
Please sign in to comment.
Something went wrong with that request. Please try again.