merged npm

This commit is contained in:
Max Thayer 2013-09-08 22:06:49 -04:00
commit 705827192d
2 changed files with 12 additions and 1 deletions

View File

@ -30,7 +30,7 @@
"test": "grunt test"
},
"dependencies": {
"couchapp": "0.10.1",
"couchapp": "0.10.*",
"grunt": "~0.3.12",
"nano": "3.3.0"
},

View File

@ -23,6 +23,17 @@ var genDB = function(db) {
};
};
var genDB = function(db) {
var parts, dbname, auth;
parts = urls.parse(db);
dbname = parts.pathname.replace(/^\//, '');
auth = parts.auth ? (parts.auth + '@') : '';
return {
name: dbname,
url: parts.protocol + '//' + auth + parts.host
};
};
module.exports = function(grunt) {
// ==========================================================================