cedar 0.2.74.pre → 0.2.75.pre

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: 7c5772afb2538417d9f7f3f8a733a5552681b38d
4
- data.tar.gz: fa2a352243033b07302e13ea1dc88e14de0dee06
3
+ metadata.gz: 8253c7cd2893000d1de5444f423af695008e01fc
4
+ data.tar.gz: b6262ffdb67d035a7256d022c41bd5e662cbe845
5
5
  SHA512:
6
- metadata.gz: 09acaf32457cc104d04844bfeb1b3bfd6967320cc78cd3c56db0444f1f6e1e1b440ff1d500b78f13f7b28897d28b0acc71e52193c998011ddf353d06e485d3b8
7
- data.tar.gz: 84da48eb5a6b6ba13eb5bce9cc1b3f99baf81b7ee6aa71c8fe3b271ce497e98778ff5947d533839da59dc820e5addbf1671b632f5c0eedf72729c4591acb3d2e
6
+ metadata.gz: 52eb54e19bceb547f2d670798343809715ad43813397a493497963d7cbc983638e84a65d8d50f61efbbac45567c483cc145f669182cd9fa50e7cf8620ff460e7
7
+ data.tar.gz: b7b54fbf1f0adb1347b3189bedc775cf9a7e12a4032b1e97128922a5da0d3269b2a0bc21bafbca939075c72d5eabd5e53878025e202ae4644df216e8c30e4383
@@ -393,19 +393,19 @@ Cedar.Store.prototype.checkVersion = function() {
393
393
  // Returns an already resolving getJSON request if it matches
394
394
  Cedar.Store.prototype.lockedRequest = function(options) {
395
395
  options = options || {};
396
- this.requestCache || (this.requestCache = {});
397
-
398
- var requestKey = JSON.stringify({path: options.path, params: options.params});
399
- var request = $.Deferred().resolve();
400
396
 
401
397
  if (Cedar.config.liveMode) {
402
- request = $.getJSON(Cedar.config.api + options.path, options.params)
403
- .then(function(response) {
398
+ this.requestCache || (this.requestCache = {});
399
+
400
+ var requestKey = JSON.stringify({path: options.path, params: options.params});
401
+
402
+ return this.requestCache[requestKey] || (this.requestCache[requestKey] = $
403
+ .getJSON(Cedar.config.api + options.path, options.params).then(function(response){
404
404
  options.success(response);
405
- }.bind(this));
405
+ }.bind(this)));
406
+ } else {
407
+ return $.Deferred().resolve();
406
408
  }
407
-
408
- return this.requestCache[requestKey] || (this.requestCache[requestKey] = request);
409
409
  };
410
410
 
411
411
 
data/lib/cedar/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cedar
2
- VERSION = "0.2.74.pre"
2
+ VERSION = "0.2.75.pre"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cedar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.74.pre
4
+ version: 0.2.75.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jed Murdock