You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/03/28 04:21:14 UTC
[6/9] git commit: type should be plural
type should be plural
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/0fc9cd6b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/0fc9cd6b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/0fc9cd6b
Branch: refs/heads/master
Commit: 0fc9cd6b1d9c9f9aaa783954063dc72cfd3b5d84
Parents: 293cbc5
Author: Scott Ganyo <sc...@ganyo.com>
Authored: Fri Mar 21 14:04:09 2014 -0700
Committer: Scott Ganyo <sc...@ganyo.com>
Committed: Fri Mar 21 14:04:09 2014 -0700
----------------------------------------------------------------------
sdks/nodejs/lib/usergrid.js | 3 ++-
sdks/nodejs/package.json | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/0fc9cd6b/sdks/nodejs/lib/usergrid.js
----------------------------------------------------------------------
diff --git a/sdks/nodejs/lib/usergrid.js b/sdks/nodejs/lib/usergrid.js
index b9e31fe..55908ef 100755
--- a/sdks/nodejs/lib/usergrid.js
+++ b/sdks/nodejs/lib/usergrid.js
@@ -20,6 +20,7 @@
* @author rod simpson (rod@apigee.com)
*/
+var inflection = require('inflection');
var request = require('request');
var Usergrid = {};
Usergrid.USERGRID_SDK_VERSION = '0.10.07';
@@ -1183,7 +1184,7 @@ var AUTH_NONE = 'NONE';
var self = this;
//connector info
- var connectorType = this.get('type');
+ var connectorType = inflection.pluralize(this.get('type'));
var connector = this.getEntityId(this);
if (!connector) {
if (typeof(callback) === 'function') {
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/0fc9cd6b/sdks/nodejs/package.json
----------------------------------------------------------------------
diff --git a/sdks/nodejs/package.json b/sdks/nodejs/package.json
index 418d16b..fff1b39 100644
--- a/sdks/nodejs/package.json
+++ b/sdks/nodejs/package.json
@@ -4,7 +4,8 @@
"description": "A Node.js module for making API calls to App Services (Usergrid) from within Node.js",
"main": "./lib/usergrid.js",
"dependencies": {
- "request": "2.12.x"
+ "request": "2.12.x",
+ "inflection": "1.3.x"
},
"devDependencies": {
"mocha": "1.7.x",