parsejs-rails 1.2.7.0 → 1.2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30e67a6017c50320c3ed73617c1a309131d38ba7
4
- data.tar.gz: 67f94140c8940635f7bddf9eaaf109f62ea56d10
3
+ metadata.gz: 37f6a92c065114db836aefa7e535e1f49127209c
4
+ data.tar.gz: 2a7f5ef9f8fdec6faa451da246565e9f3fd01418
5
5
  SHA512:
6
- metadata.gz: dcf66b1516e64d34d0c387a65daa83774186a44b40b3f2f2db092116c66baa996a53bac6591daa3244c31ab6ba908c20de4a619d29aefccfea68ff4409069fbe
7
- data.tar.gz: 223c821335399f1a10bde653311df36884dac3a0cc40eff1270d6a81ee4feb2cbf4a5dc65495904f2338f827a221974f504b0a2c2bd1b4bfa82ad47146df6e5b
6
+ metadata.gz: 519d57e8e9bb0b3e029102aba979b7dac11133a23bc09501ca917d646c28bab3c52e6e16a2e578786781bbf8fb55baef7bfbb652a71045ac19f6761ca4cc1c4d
7
+ data.tar.gz: 93673b5f927784b33622a95beb4602a2c0266506250653d4d1430837000aa2d34de151a8dad6ec0bc18a6a46fe398d61266b9bb71a1283d6bd084804927473a5
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # parsejs-rails
2
2
 
3
- The Parse Javascript SDK as an asset for Rails 3.
3
+ The Parse Javascript SDK as an asset for Rails.
4
4
 
5
5
  This gem provides:
6
6
 
7
- - Parse Javascript SDK 1.2.2
7
+ - Parse Javascript SDK 1.2.9
8
8
 
9
9
  ## Installation
10
10
 
@@ -1,5 +1,5 @@
1
1
  module Parsejs
2
2
  module Rails
3
- VERSION = "1.2.7.0"
3
+ VERSION = "1.2.9.0"
4
4
  end
5
5
  end
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Parse JavaScript SDK
3
- * Version: 1.2.7
4
- * Built: Wed Apr 17 2013 14:48:27
3
+ * Version: 1.2.9
4
+ * Built: Tue Aug 13 2013 17:31:35
5
5
  * http://parse.com
6
6
  *
7
7
  * Copyright 2013 Parse, Inc.
@@ -13,7 +13,7 @@
13
13
  */
14
14
  (function(root) {
15
15
  root.Parse = root.Parse || {};
16
- root.Parse.VERSION = "js1.2.7";
16
+ root.Parse.VERSION = "js1.2.9";
17
17
  }(this));
18
18
  // Underscore.js 1.4.4
19
19
  // http://underscorejs.org
@@ -1638,7 +1638,7 @@
1638
1638
  * if seenObjects is falsey. Otherwise any Parse.Objects not in
1639
1639
  * seenObjects will be fully embedded rather than encoded
1640
1640
  * as a pointer. This array will be used to prevent going into an infinite
1641
- * loop because we have circular references. If <seenObjects>
1641
+ * loop because we have circular references. If seenObjects
1642
1642
  * is set, then none of the Parse Objects that are serialized can be dirty.
1643
1643
  */
1644
1644
  Parse._encode = function(value, seenObjects, disallowObjects) {
@@ -1794,9 +1794,9 @@
1794
1794
  Parse._traverse(object.attributes, func, seen);
1795
1795
  return func(object);
1796
1796
  }
1797
- if (object instanceof Parse.Relation) {
1797
+ if (object instanceof Parse.Relation || object instanceof Parse.File) {
1798
1798
  // Nothing needs to be done, but we don't want to recurse into the
1799
- // relation's parent infinitely, so we catch this case.
1799
+ // object's parent infinitely, so we catch this case.
1800
1800
  return func(object);
1801
1801
  }
1802
1802
  if (Parse._.isArray(object)) {
@@ -2175,7 +2175,15 @@
2175
2175
  * Twitter) is unsupported.
2176
2176
  * @constant
2177
2177
  */
2178
- UNSUPPORTED_SERVICE: 252
2178
+ UNSUPPORTED_SERVICE: 252,
2179
+
2180
+ /**
2181
+ * Error code indicating that there were multiple errors. Aggregate errors
2182
+ * have an "errors" property, which is an array of error objects with more
2183
+ * detail about each error that occurred.
2184
+ * @constant
2185
+ */
2186
+ AGGREGATE_ERROR: 600
2179
2187
  });
2180
2188
 
2181
2189
  }(this));
@@ -3054,8 +3062,7 @@
3054
3062
  } else if (previous instanceof Parse.Op.Set) {
3055
3063
  return new Parse.Op.Set(this._estimate(previous.value()));
3056
3064
  } else if (previous instanceof Parse.Op.AddUnique) {
3057
- return new Parse.Op.AddUnique(
3058
- _.union(previous.objects(), this.objects()));
3065
+ return new Parse.Op.AddUnique(this._estimate(previous.objects()));
3059
3066
  } else {
3060
3067
  throw "Op is invalid after previous op.";
3061
3068
  }
@@ -3065,7 +3072,26 @@
3065
3072
  if (!oldValue) {
3066
3073
  return _.clone(this.objects());
3067
3074
  } else {
3068
- return oldValue.concat(_.difference(this.objects(), oldValue));
3075
+ // We can't just take the _.uniq(_.union(...)) of oldValue and
3076
+ // this.objects, because the uniqueness may not apply to oldValue
3077
+ // (especially if the oldValue was set via .set())
3078
+ var newValue = _.clone(oldValue);
3079
+ Parse._arrayEach(this.objects(), function(obj) {
3080
+ if (obj instanceof Parse.Object && obj.id) {
3081
+ var matchingObj = _.find(newValue, function(anObj) {
3082
+ return (anObj instanceof Parse.Object) && (anObj.id === obj.id);
3083
+ });
3084
+ if (!matchingObj) {
3085
+ newValue.push(obj);
3086
+ } else {
3087
+ var index = _.indexOf(newValue, matchingObj);
3088
+ newValue[index] = obj;
3089
+ }
3090
+ } else if (!_.contains(newValue, obj)) {
3091
+ newValue.push(obj);
3092
+ }
3093
+ });
3094
+ return newValue;
3069
3095
  }
3070
3096
  }
3071
3097
  });
@@ -3398,7 +3424,7 @@
3398
3424
  * called when the async task is fulfilled.
3399
3425
  *
3400
3426
  * <p>Typical usage would be like:<pre>
3401
- * query.findAsync().then(function(results) {
3427
+ * query.find().then(function(results) {
3402
3428
  * results[0].set("foo", "bar");
3403
3429
  * return results[0].saveAsync();
3404
3430
  * }).then(function(result) {
@@ -3991,6 +4017,7 @@
3991
4017
  /**
3992
4018
  * A Parse.File is a local representation of a file that is saved to the Parse
3993
4019
  * cloud.
4020
+ * @class
3994
4021
  * @param name {String} The file's name. This will change to a unique value
3995
4022
  * once the file has finished saving.
3996
4023
  * @param data {Array} The data for the file, as either:
@@ -4193,6 +4220,147 @@
4193
4220
  return Parse.Object._deepSaveAsync(list)._thenRunCallbacks(options);
4194
4221
  };
4195
4222
 
4223
+ /**
4224
+ * Destroy the given list of models on the server if it was already persisted.
4225
+ * Optimistically removes each model from its collection, if it has one.
4226
+ * If `wait: true` is passed, waits for the server to respond before removal.
4227
+ *
4228
+ * <p>Unlike saveAll, if an error occurs while deleting an individual model,
4229
+ * this method will continue trying to delete the rest of the models if
4230
+ * possible, except in the case of a fatal error like a connection error.
4231
+ *
4232
+ * <p>In particular, the Parse.Error object returned in the case of error may
4233
+ * be one of two types:
4234
+ *
4235
+ * <ul>
4236
+ * <li>A Parse.Error.AGGREGATE_ERROR. This object's "errors" property is an
4237
+ * array of other Parse.Error objects. Each error object in this array
4238
+ * has an "object" property that references the object that could not be
4239
+ * deleted (for instance, because that object could not be found).</li>
4240
+ * <li>A non-aggregate Parse.Error. This indicates a serious error that
4241
+ * caused the delete operation to be aborted partway through (for
4242
+ * instance, a connection failure in the middle of the delete).</li>
4243
+ * </ul>
4244
+ *
4245
+ * <p>There are two ways you can call this function.
4246
+ *
4247
+ * The Backbone way:<pre>
4248
+ * Parse.Object.destroyAll([object1, object2, ...], {
4249
+ * success: function() {
4250
+ * // All the objects were deleted.
4251
+ * },
4252
+ * error: function(error) {
4253
+ * // An error occurred while deleting one or more of the objects.
4254
+ * // If this is an aggregate error, then we can inspect each error
4255
+ * // object individually to determine the reason why a particular
4256
+ * // object was not deleted.
4257
+ * if (error.code == Parse.Error.AGGREGATE_ERROR) {
4258
+ * for (var i = 0; i < error.errors.length; i++) {
4259
+ * console.log("Couldn't delete " + error.errors[i].object.id +
4260
+ * "due to " + error.errors[i].message);
4261
+ * }
4262
+ * } else {
4263
+ * console.log("Delete aborted because of " + error.message);
4264
+ * }
4265
+ * },
4266
+ * });
4267
+ * </pre>
4268
+ * A simplified syntax:<pre>
4269
+ * Parse.Object.destroyAll([obj1, obj2, ...], function(success, error) {
4270
+ * if (success) {
4271
+ * // All the objects were saved.
4272
+ * } else {
4273
+ * // An error occurred while deleting one or more of the objects.
4274
+ * // If this is an aggregate error, then we can inspect each error
4275
+ * // object individually to determine the reason why a particular
4276
+ * // object was not deleted.
4277
+ * if (error.code == Parse.Error.AGGREGATE_ERROR) {
4278
+ * for (var i = 0; i < error.errors.length; i++) {
4279
+ * console.log("Couldn't delete " + error.errors[i].object.id +
4280
+ * "due to " + error.errors[i].message);
4281
+ * }
4282
+ * } else {
4283
+ * console.log("Delete aborted because of " + error.message);
4284
+ * }
4285
+ * }
4286
+ * });
4287
+ * </pre>
4288
+ *
4289
+ * @param {Array} list A list of <code>Parse.Object</code>.
4290
+ * @param {Object} options A Backbone-style callback object.
4291
+ */
4292
+ Parse.Object.destroyAll = function(list, options) {
4293
+ var promise = Parse.Promise.as();
4294
+ var batch = [];
4295
+ var errors = [];
4296
+
4297
+ var triggerDestroy = function(object) {
4298
+ object.trigger('destroy', object, object.collection, options);
4299
+ };
4300
+
4301
+ var destroyBatch = function(batch) {
4302
+ var promise = Parse.Promise.as();
4303
+
4304
+ if (batch.length > 0) {
4305
+ promise = promise.then(function() {
4306
+ return Parse._request("batch", null, null, "POST", {
4307
+ requests: _.map(batch, function(object) {
4308
+ return {
4309
+ method: "DELETE",
4310
+ path: "/1/classes/" + object.className + "/" + object.id
4311
+ };
4312
+ })
4313
+ });
4314
+ }).then(function(responses, status, xhr) {
4315
+ Parse._arrayEach(batch, function(object, i) {
4316
+ if (responses[i].success && options.wait) {
4317
+ triggerDestroy(object);
4318
+ } else if (responses[i].error) {
4319
+ var error = new Parse.Error(responses[i].error.code,
4320
+ responses[i].error.error);
4321
+ error.object = object;
4322
+
4323
+ errors.push(error);
4324
+ }
4325
+ });
4326
+ });
4327
+ }
4328
+
4329
+ return promise;
4330
+ };
4331
+
4332
+ Parse._arrayEach(list, function(object, i) {
4333
+ if (!object.id || !options.wait) {
4334
+ triggerDestroy(object);
4335
+ }
4336
+
4337
+ if (object.id) {
4338
+ batch.push(object);
4339
+ }
4340
+
4341
+ if (batch.length === 20 || i+1 === list.length) {
4342
+ var thisBatch = batch;
4343
+ batch = [];
4344
+
4345
+ promise = promise.then(function() {
4346
+ return destroyBatch(thisBatch);
4347
+ });
4348
+ }
4349
+ });
4350
+
4351
+ return promise.then(function() {
4352
+ if (errors.length === 0) {
4353
+ return true;
4354
+ } else {
4355
+ var error = new Parse.Error(Parse.Error.AGGREGATE_ERROR,
4356
+ "Error deleting an object in destroyAll");
4357
+ error.errors = errors;
4358
+
4359
+ return Parse.Promise.error(error);
4360
+ }
4361
+ })._thenRunCallbacks(options);
4362
+ };
4363
+
4196
4364
  // Attach all inheritable methods to the Parse.Object prototype.
4197
4365
  _.extend(Parse.Object.prototype, Parse.Events,
4198
4366
  /** @lends Parse.Object.prototype */ {
@@ -4813,6 +4981,12 @@
4813
4981
  * Fetch the model from the server. If the server's representation of the
4814
4982
  * model differs from its current attributes, they will be overriden,
4815
4983
  * triggering a <code>"change"</code> event.
4984
+ *
4985
+ * @param {Object} options A Backbone-style callback object.
4986
+ * Valid options are:<ul>
4987
+ * <li>success: A Backbone-style success callback.
4988
+ * <li>error: An Backbone-style error callback.
4989
+ * </ul>
4816
4990
  * @return {Parse.Promise} A promise that is fulfilled when the fetch
4817
4991
  * completes.
4818
4992
  */
@@ -4859,6 +5033,14 @@
4859
5033
  * // The save failed. Error is an instance of Parse.Error.
4860
5034
  * });</pre>
4861
5035
  *
5036
+ * @param {Object} options A Backbone-style callback object.
5037
+ * Valid options are:<ul>
5038
+ * <li>wait: Set to true to wait for the server to confirm a successful
5039
+ * save before modifying the attributes on the object.
5040
+ * <li>silent: Set to true to avoid firing the `set` event.
5041
+ * <li>success: A Backbone-style success callback.
5042
+ * <li>error: An Backbone-style error callback.
5043
+ * </ul>
4862
5044
  * @return {Parse.Promise} A promise that is fulfilled when the save
4863
5045
  * completes.
4864
5046
  * @see Parse.Error
@@ -4978,6 +5160,13 @@
4978
5160
  * If `wait: true` is passed, waits for the server to respond
4979
5161
  * before removal.
4980
5162
  *
5163
+ * @param {Object} options A Backbone-style callback object.
5164
+ * Valid options are:<ul>
5165
+ * <li>wait: Set to true to wait for the server to confirm successful
5166
+ * deletion of the object before triggering the `destroy` event.
5167
+ * <li>success: A Backbone-style success callback
5168
+ * <li>error: An Backbone-style error callback.
5169
+ * </ul>
4981
5170
  * @return {Parse.Promise} A promise that is fulfilled when the destroy
4982
5171
  * completes.
4983
5172
  */
@@ -5347,18 +5536,23 @@
5347
5536
  };
5348
5537
 
5349
5538
  Parse.Object._canBeSerializedAsValue = function(object) {
5350
- var canBeSerializedAsValue = true;
5351
-
5539
+
5352
5540
  if (object instanceof Parse.Object) {
5353
- canBeSerializedAsValue = !!object.id;
5541
+ return !!object.id;
5542
+ }
5543
+ if (object instanceof Parse.File) {
5544
+ // Don't recurse indefinitely into files.
5545
+ return true;
5546
+ }
5547
+
5548
+ var canBeSerializedAsValue = true;
5354
5549
 
5355
- } else if (_.isArray(object)) {
5550
+ if (_.isArray(object)) {
5356
5551
  Parse._arrayEach(object, function(child) {
5357
5552
  if (!Parse.Object._canBeSerializedAsValue(child)) {
5358
5553
  canBeSerializedAsValue = false;
5359
5554
  }
5360
5555
  });
5361
-
5362
5556
  } else if (_.isObject(object)) {
5363
5557
  Parse._objectEach(object, function(child) {
5364
5558
  if (!Parse.Object._canBeSerializedAsValue(child)) {
@@ -5366,7 +5560,6 @@
5366
5560
  }
5367
5561
  });
5368
5562
  }
5369
-
5370
5563
  return canBeSerializedAsValue;
5371
5564
  };
5372
5565
 
@@ -5679,6 +5872,15 @@
5679
5872
  /**
5680
5873
  * Add a model, or list of models to the set. Pass **silent** to avoid
5681
5874
  * firing the `add` event for every new model.
5875
+ *
5876
+ * @param {Array} models An array of instances of <code>Parse.Object</code>.
5877
+ *
5878
+ * @param {Object} options An optional object with Backbone-style options.
5879
+ * Valid options are:<ul>
5880
+ * <li>at: The index at which to add the models.
5881
+ * <li>silent: Set to true to avoid firing the `add` event for every new
5882
+ * model.
5883
+ * </ul>
5682
5884
  */
5683
5885
  add: function(models, options) {
5684
5886
  var i, index, length, model, cid, id, cids = {}, ids = {};
@@ -5742,6 +5944,13 @@
5742
5944
  /**
5743
5945
  * Remove a model, or a list of models from the set. Pass silent to avoid
5744
5946
  * firing the <code>remove</code> event for every model removed.
5947
+ *
5948
+ * @param {Array} models The model or list of models to remove from the
5949
+ * collection.
5950
+ * @param {Object} options An optional object with Backbone-style options.
5951
+ * Valid options are: <ul>
5952
+ * <li>silent: Set to true to avoid firing the `remove` event.
5953
+ * </ul>
5745
5954
  */
5746
5955
  remove: function(models, options) {
5747
5956
  var i, l, index, model;
@@ -5768,6 +5977,8 @@
5768
5977
 
5769
5978
  /**
5770
5979
  * Gets a model from the set by id.
5980
+ * @param {String} id The Parse objectId identifying the Parse.Object to
5981
+ * fetch from this collection.
5771
5982
  */
5772
5983
  get: function(id) {
5773
5984
  return id && this._byId[id.id || id];
@@ -5775,6 +5986,8 @@
5775
5986
 
5776
5987
  /**
5777
5988
  * Gets a model from the set by client id.
5989
+ * @param {} cid The Backbone collection id identifying the Parse.Object to
5990
+ * fetch from this collection.
5778
5991
  */
5779
5992
  getByCid: function(cid) {
5780
5993
  return cid && this._byCid[cid.cid || cid];
@@ -5782,6 +5995,8 @@
5782
5995
 
5783
5996
  /**
5784
5997
  * Gets the model at the given index.
5998
+ *
5999
+ * @param {Number} index The index of the model to return.
5785
6000
  */
5786
6001
  at: function(index) {
5787
6002
  return this.models[index];
@@ -5791,6 +6006,10 @@
5791
6006
  * Forces the collection to re-sort itself. You don't need to call this
5792
6007
  * under normal circumstances, as the set will maintain sort order as each
5793
6008
  * item is added.
6009
+ * @param {Object} options An optional object with Backbone-style options.
6010
+ * Valid options are: <ul>
6011
+ * <li>silent: Set to true to avoid firing the `reset` event.
6012
+ * </ul>
5794
6013
  */
5795
6014
  sort: function(options) {
5796
6015
  options = options || {};
@@ -5811,6 +6030,8 @@
5811
6030
 
5812
6031
  /**
5813
6032
  * Plucks an attribute from each model in the collection.
6033
+ * @param {String} attr The attribute to return from each model in the
6034
+ * collection.
5814
6035
  */
5815
6036
  pluck: function(attr) {
5816
6037
  return _.map(this.models, function(model){ return model.get(attr); });
@@ -5820,6 +6041,13 @@
5820
6041
  * When you have more items than you want to add or remove individually,
5821
6042
  * you can reset the entire set with a new list of models, without firing
5822
6043
  * any `add` or `remove` events. Fires `reset` when finished.
6044
+ *
6045
+ * @param {Array} models The model or list of models to remove from the
6046
+ * collection.
6047
+ * @param {Object} options An optional object with Backbone-style options.
6048
+ * Valid options are: <ul>
6049
+ * <li>silent: Set to true to avoid firing the `reset` event.
6050
+ * </ul>
5823
6051
  */
5824
6052
  reset: function(models, options) {
5825
6053
  var self = this;
@@ -5840,6 +6068,14 @@
5840
6068
  * Fetches the default set of models for this collection, resetting the
5841
6069
  * collection when they arrive. If `add: true` is passed, appends the
5842
6070
  * models to the collection instead of resetting.
6071
+ *
6072
+ * @param {Object} options An optional object with Backbone-style options.
6073
+ * Valid options are:<ul>
6074
+ * <li>silent: Set to true to avoid firing `add` or `reset` events for
6075
+ * models fetched by this fetch.
6076
+ * <li>success: A Backbone-style success callback
6077
+ * <li>error: An Backbone-style error callback.
6078
+ * </ul>
5843
6079
  */
5844
6080
  fetch: function(options) {
5845
6081
  options = _.clone(options) || {};
@@ -5862,6 +6098,17 @@
5862
6098
  * Creates a new instance of a model in this collection. Add the model to
5863
6099
  * the collection immediately, unless `wait: true` is passed, in which case
5864
6100
  * we wait for the server to agree.
6101
+ *
6102
+ * @param {Parse.Object} model The new model to create and add to the
6103
+ * collection.
6104
+ * @param {Object} options An optional object with Backbone-style options.
6105
+ * Valid options are:<ul>
6106
+ * <li>wait: Set to true to wait for the server to confirm creation of the
6107
+ * model before adding it to the collection.
6108
+ * <li>silent: Set to true to avoid firing an `add` event.
6109
+ * <li>success: A Backbone-style success callback
6110
+ * <li>error: An Backbone-style error callback.
6111
+ * </ul>
5865
6112
  */
5866
6113
  create: function(model, options) {
5867
6114
  var coll = this;
@@ -6748,7 +6995,7 @@
6748
6995
 
6749
6996
  return null;
6750
6997
  }
6751
- Parse.User._currentUser = new Parse.Object._create("_User");
6998
+ Parse.User._currentUser = Parse.Object._create("_User");
6752
6999
  Parse.User._currentUser._isCurrentUser = true;
6753
7000
 
6754
7001
  var json = JSON.parse(userData);
@@ -6792,7 +7039,7 @@
6792
7039
  },
6793
7040
 
6794
7041
  _logInWith: function(provider, options) {
6795
- var user = new Parse.User();
7042
+ var user = Parse.Object._create("_User");
6796
7043
  return user._linkWith(provider, options);
6797
7044
  }
6798
7045
 
@@ -6911,8 +7158,12 @@
6911
7158
  * the server. Either options.success or options.error is called when the
6912
7159
  * find completes.
6913
7160
  *
6914
- * @param {} objectId The id of the object to be fetched.
7161
+ * @param {String} objectId The id of the object to be fetched.
6915
7162
  * @param {Object} options A Backbone-style options object.
7163
+ * Valid options are:<ul>
7164
+ * <li>success: A Backbone-style success callback
7165
+ * <li>error: An Backbone-style error callback.
7166
+ * </ul>
6916
7167
  */
6917
7168
  get: function(objectId, options) {
6918
7169
  var self = this;
@@ -6932,7 +7183,7 @@
6932
7183
 
6933
7184
  /**
6934
7185
  * Returns a JSON representation of this query.
6935
- * @return {Object}
7186
+ * @return {Object} The JSON representation of the query.
6936
7187
  */
6937
7188
  toJSON: function() {
6938
7189
  var params = {
@@ -7041,6 +7292,14 @@
7041
7292
 
7042
7293
  /**
7043
7294
  * Returns a new instance of Parse.Collection backed by this query.
7295
+ * @param {Array} items An array of instances of <code>Parse.Object</code>
7296
+ * with which to start this Collection.
7297
+ * @param {Object} options An optional object with Backbone-style options.
7298
+ * Valid options are:<ul>
7299
+ * <li>model: The Parse.Object subclass that this collection contains.
7300
+ * <li>query: An instance of Parse.Query to use when fetching items.
7301
+ * <li>comparator: A string property name or function to sort by.
7302
+ * </ul>
7044
7303
  * @return {Parse.Collection}
7045
7304
  */
7046
7305
  collection: function(items, options) {
@@ -7408,7 +7667,8 @@
7408
7667
  * values near the point given and within the maximum distance given.
7409
7668
  * @param {String} key The key that the Parse.GeoPoint is stored in.
7410
7669
  * @param {Parse.GeoPoint} point The reference Parse.GeoPoint that is used.
7411
- * @param maxDistance Maximum distance (in radians) of results to return.
7670
+ * @param {Number} maxDistance Maximum distance (in radians) of results to
7671
+ * return.
7412
7672
  * @return {Parse.Query} Returns the query, so you can chain this call.
7413
7673
  */
7414
7674
  withinRadians: function(key, point, distance) {
@@ -7512,9 +7772,9 @@
7512
7772
  * promise, then iteration will stop with that error. The items are
7513
7773
  * processed in an unspecified order. The query may not have any sort order,
7514
7774
  * and may not use limit or skip.
7515
- * @param callback {Function} Callback that will be called with each result
7775
+ * @param {Function} callback Callback that will be called with each result
7516
7776
  * of the query.
7517
- * @param options {Object} An optional Backbone-like options object with
7777
+ * @param {Object} options An optional Backbone-like options object with
7518
7778
  * success and error callbacks that will be invoked once the iteration
7519
7779
  * has finished.
7520
7780
  * @return {Parse.Promise} A promise that will be fulfilled once the
metadata CHANGED
@@ -1,31 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parsejs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.7.0
4
+ version: 1.2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Macintosh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-18 00:00:00.000000000 Z
11
+ date: 2013-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.1'
27
27
  description: This gem provides the Parse Javascript SDK as an asset to your Rails
28
- 3 application.
28
+ application.
29
29
  email:
30
30
  - me@knickmack.com
31
31
  executables: []
@@ -56,8 +56,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  version: '0'
57
57
  requirements: []
58
58
  rubyforge_project:
59
- rubygems_version: 2.0.3
59
+ rubygems_version: 2.0.7
60
60
  signing_key:
61
61
  specification_version: 4
62
- summary: Use the Parse Javascript SDK with Rails 3
62
+ summary: Use the Parse Javascript SDK with Rails
63
63
  test_files: []