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
*/
loopback.GeoPoint = require('jugglingdb/lib/geo').GeoPoint;
loopback.GeoPoint = require('loopback-data/lib/geo').GeoPoint;

View File

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

View File

@ -13,7 +13,7 @@ var Connector = require('./base-connector')
, util = require('util')
, inherits = util.inherits
, 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`.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -8,7 +8,7 @@
"dependencies": {
"debug": "latest",
"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",
"inflection": "~1.2.5"
},