Rename 'loopback-data' to 'loopback-datasource-juggler'

This commit is contained in:
Raymond Feng 2013-07-30 14:26:49 -07:00
parent 423b4f2157
commit 0d405d4292
10 changed files with 12 additions and 12 deletions

View File

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

View File

@ -2,8 +2,8 @@
* Module dependencies. * Module dependencies.
*/ */
var DataSource = require('loopback-data').DataSource var DataSource = require('loopback-datasource-juggler').DataSource
, ModelBuilder = require('loopback-data').ModelBuilder , ModelBuilder = require('loopback-datasource-juggler').ModelBuilder
, assert = require('assert') , assert = require('assert')
, RemoteObjects = require('strong-remoting') , RemoteObjects = require('strong-remoting')
, swagger = require('strong-remoting/ext/swagger'); , swagger = require('strong-remoting/ext/swagger');

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('loopback-data/lib/connectors/memory'); , JdbMemory = require('loopback-datasource-juggler/lib/connectors/memory');
/** /**
* Create a new `Memory` connector with the given `options`. * Create a new `Memory` connector with the given `options`.

View File

@ -9,8 +9,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('loopback-data').DataSource , DataSource = require('loopback-datasource-juggler').DataSource
, ModelBuilder = require('loopback-data').ModelBuilder , ModelBuilder = require('loopback-datasource-juggler').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('loopback-data').ModelBuilder(); dataSource = dataSource || new require('loopback-datasource-juggler').ModelBuilder();
var ACL = dataSource.define('ACL', ACLSchema); var ACL = dataSource.define('ACL', ACLSchema);
return ACL; return ACL;
} }

View File

@ -91,7 +91,7 @@ function generateKey(hmacKey, algorithm, encoding) {
} }
module.exports = function (dataSource) { module.exports = function (dataSource) {
dataSource = dataSource || new require('loopback-data').ModelBuilder(); dataSource = dataSource || new require('loopback-datasource-juggler').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('loopback-data').ModelBuilder(); dataSource = dataSource || new require('loopback-datasource-juggler').ModelBuilder();
var Installation = dataSource.define('Installation', InstallationSchema); var Installation = dataSource.define('Installation', InstallationSchema);
return Installation; return Installation;
} }

View File

@ -2,7 +2,7 @@
* Module Dependencies. * Module Dependencies.
*/ */
var ModelBuilder = require('loopback-data').ModelBuilder; var ModelBuilder = require('loopback-datasource-juggler').ModelBuilder;
var modeler = new ModelBuilder(); var modeler = new ModelBuilder();
/** /**

View File

@ -12,7 +12,7 @@ var RoleSchema = {
} }
module.exports = function(dataSource) { module.exports = function(dataSource) {
dataSource = dataSource || new require('loopback-data').ModelBuilder(); dataSource = dataSource || new require('loopback-datasource-juggler').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",
"loopback-data": "git+ssh://git@github.com:strongloop/loopback-data.git", "loopback-datasource-juggler": "git+ssh://git@github.com:strongloop/loopback-datasource-juggler.git",
"strong-remoting": "git+ssh://git@github.com:strongloop/strong-remoting.git", "strong-remoting": "git+ssh://git@github.com:strongloop/strong-remoting.git",
"inflection": "~1.2.5", "inflection": "~1.2.5",
"bcrypt": "~0.7.6", "bcrypt": "~0.7.6",