Rename jugglingdb to loopback-data

This commit is contained in:
Raymond Feng 2013-07-16 11:52:21 -07:00
parent a35d2b7365
commit 1cf4338298
9 changed files with 11 additions and 11 deletions

View File

@ -15,4 +15,4 @@ loopback.Memory = require('./lib/connectors/memory');
* Types * Types
*/ */
loopback.GeoPoint = require('jugglingdb/lib/geo').GeoPoint; loopback.GeoPoint = require('loopback-data/lib/geo').GeoPoint;

View File

@ -2,8 +2,8 @@
* Module dependencies. * Module dependencies.
*/ */
var DataSource = require('jugglingdb').DataSource var DataSource = require('loopback-data').DataSource
, ModelBuilder = require('jugglingdb').ModelBuilder , ModelBuilder = require('loopback-data').ModelBuilder
, assert = require('assert') , assert = require('assert')
, RemoteObjects = require('sl-remoting'); , RemoteObjects = require('sl-remoting');

View File

@ -13,7 +13,7 @@ var Connector = require('./base-connector')
, util = require('util') , util = require('util')
, inherits = util.inherits , inherits = util.inherits
, assert = require('assert') , assert = require('assert')
, JdbMemory = require('jugglingdb/lib/adapters/memory'); , JdbMemory = require('loopback-data/lib/adapters/memory');
/** /**
* Create a new `Memory` connector with the given `options`. * Create a new `Memory` connector with the given `options`.

View File

@ -8,8 +8,8 @@ var express = require('express')
, path = require('path') , path = require('path')
, proto = require('./application') , proto = require('./application')
, utils = require('express/node_modules/connect').utils , utils = require('express/node_modules/connect').utils
, DataSource = require('jugglingdb').DataSource , DataSource = require('loopback-data').DataSource
, ModelBuilder = require('jugglingdb').ModelBuilder , ModelBuilder = require('loopback-data').ModelBuilder
, assert = require('assert') , assert = require('assert')
, i8n = require('inflection'); , i8n = require('inflection');

View File

@ -45,7 +45,7 @@ var ACLSchema = {
// readAccess, writeAccess --> public, userId, role // readAccess, writeAccess --> public, userId, role
module.exports = function(dataSource) { module.exports = function(dataSource) {
dataSource = dataSource || new require('jugglingdb').ModelBuilder(); dataSource = dataSource || new require('loopback-data').ModelBuilder();
var ACL = dataSource.define('ACL', ACLSchema); var ACL = dataSource.define('ACL', ACLSchema);
return ACL; return ACL;
} }

View File

@ -89,7 +89,7 @@ function generateKey(hmacKey, algorithm) {
} }
module.exports = function (dataSource) { module.exports = function (dataSource) {
dataSource = dataSource || new require('jugglingdb').ModelBuilder(); dataSource = dataSource || new require('loopback-data').ModelBuilder();
// var AuthenticationScheme = dataSource.define('AuthenticationScheme', AuthenticationSchemeSchema); // var AuthenticationScheme = dataSource.define('AuthenticationScheme', AuthenticationSchemeSchema);
// ApplicationSchema.authenticationSchemes = [AuthenticationScheme]; // ApplicationSchema.authenticationSchemes = [AuthenticationScheme];

View File

@ -20,7 +20,7 @@ var InstallationSchema = {
}; };
module.exports = function(dataSource) { module.exports = function(dataSource) {
dataSource = dataSource || new require('jugglingdb').ModelBuilder(); dataSource = dataSource || new require('loopback-data').ModelBuilder();
var Installation = dataSource.define('Installation', InstallationSchema); var Installation = dataSource.define('Installation', InstallationSchema);
return Installation; return Installation;
} }

View File

@ -12,7 +12,7 @@ var RoleSchema = {
} }
module.exports = function(dataSource) { module.exports = function(dataSource) {
dataSource = dataSource || new require('jugglingdb').ModelBuilder(); dataSource = dataSource || new require('loopback-data').ModelBuilder();
var Role = dataSource.define('Role', RoleSchema); var Role = dataSource.define('Role', RoleSchema);
return Role; return Role;
} }

View File

@ -8,7 +8,7 @@
"dependencies": { "dependencies": {
"debug": "latest", "debug": "latest",
"express": "~3.1.1", "express": "~3.1.1",
"jugglingdb": "git+ssh://git@github.com:strongloop/jugglingdb.git", "loopback-data": "git+ssh://git@github.com:strongloop/loopback-data.git",
"sl-remoting": "git+ssh://git@github.com:strongloop/sl-remoting.git", "sl-remoting": "git+ssh://git@github.com:strongloop/sl-remoting.git",
"inflection": "~1.2.5" "inflection": "~1.2.5"
}, },