es6-promise-rails 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a2af2ed17803b62b6ea2fa31f7425091d06621b
4
- data.tar.gz: a7c6e6e419c6ce2fbbfff79fda64adba07bd67f1
3
+ metadata.gz: 70286ecc3550b5743128525381b039bb80a70cd7
4
+ data.tar.gz: af3342176a50c03d990cdbb880a4704617b38515
5
5
  SHA512:
6
- metadata.gz: 632383705b00fea44249c183b6b90944db3e4f31f2242b9d4c1c5b734272dc248a79c1b4e16b10efcca89646e2b3537d24dff83764c60caf12686d3ac63095d2
7
- data.tar.gz: 0c9c170f1877b0291782f34b853d9f186f4cb40f5840293fcf1ee4486e9cdf9e806f6ab4c3e9aa3d065bc4ff67083ea97f15a41505c4f93a16775dcfa6ecec4b
6
+ metadata.gz: e56e1c00cf1e01344ab83d3338f2fc77c1231bffc0316fcf42dca886fe4f9a3183c09d2c2cab0395bf3fbf8e8d94018da95404cb69ef30b26abffe268244c032
7
+ data.tar.gz: f83fb754612aaa81f4f06a53142c307e08f684d884b22e38243210ea977f608560ad4ca527ddb327e82fd1f2efc39ed0efe554415782a94b194b758810c9af9a
@@ -1,7 +1,7 @@
1
1
  module E6
2
2
  module Promise
3
3
  module Rails
4
- VERSION = '2.2.0'.freeze
4
+ VERSION = '2.3.0'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -3,7 +3,7 @@
3
3
  * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
4
4
  * @license Licensed under MIT license
5
5
  * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
6
- * @version 2.2.0
6
+ * @version 2.3.0
7
7
  */
8
8
 
9
9
  (function() {
@@ -35,7 +35,7 @@
35
35
  var lib$es6$promise$asap$$vertxNext;
36
36
  var lib$es6$promise$asap$$customSchedulerFn;
37
37
 
38
- function lib$es6$promise$asap$$asap(callback, arg) {
38
+ var lib$es6$promise$asap$$asap = function asap(callback, arg) {
39
39
  lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len] = callback;
40
40
  lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len + 1] = arg;
41
41
  lib$es6$promise$asap$$len += 2;
@@ -51,11 +51,14 @@
51
51
  }
52
52
  }
53
53
 
54
- var lib$es6$promise$asap$$default = lib$es6$promise$asap$$asap;
55
54
  function lib$es6$promise$asap$$setScheduler(scheduleFn) {
56
55
  lib$es6$promise$asap$$customSchedulerFn = scheduleFn;
57
56
  }
58
57
 
58
+ function lib$es6$promise$asap$$setAsap(asapFn) {
59
+ lib$es6$promise$asap$$asap = asapFn;
60
+ }
61
+
59
62
  var lib$es6$promise$asap$$browserWindow = (typeof window !== 'undefined') ? window : undefined;
60
63
  var lib$es6$promise$asap$$browserGlobal = lib$es6$promise$asap$$browserWindow || {};
61
64
  var lib$es6$promise$asap$$BrowserMutationObserver = lib$es6$promise$asap$$browserGlobal.MutationObserver || lib$es6$promise$asap$$browserGlobal.WebKitMutationObserver;
@@ -187,7 +190,7 @@
187
190
  }
188
191
 
189
192
  function lib$es6$promise$$internal$$handleForeignThenable(promise, thenable, then) {
190
- lib$es6$promise$asap$$default(function(promise) {
193
+ lib$es6$promise$asap$$asap(function(promise) {
191
194
  var sealed = false;
192
195
  var error = lib$es6$promise$$internal$$tryThen(then, thenable, function(value) {
193
196
  if (sealed) { return; }
@@ -268,7 +271,7 @@
268
271
  promise._state = lib$es6$promise$$internal$$FULFILLED;
269
272
 
270
273
  if (promise._subscribers.length !== 0) {
271
- lib$es6$promise$asap$$default(lib$es6$promise$$internal$$publish, promise);
274
+ lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, promise);
272
275
  }
273
276
  }
274
277
 
@@ -277,7 +280,7 @@
277
280
  promise._state = lib$es6$promise$$internal$$REJECTED;
278
281
  promise._result = reason;
279
282
 
280
- lib$es6$promise$asap$$default(lib$es6$promise$$internal$$publishRejection, promise);
283
+ lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publishRejection, promise);
281
284
  }
282
285
 
283
286
  function lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection) {
@@ -291,7 +294,7 @@
291
294
  subscribers[length + lib$es6$promise$$internal$$REJECTED] = onRejection;
292
295
 
293
296
  if (length === 0 && parent._state) {
294
- lib$es6$promise$asap$$default(lib$es6$promise$$internal$$publish, parent);
297
+ lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, parent);
295
298
  }
296
299
  }
297
300
 
@@ -548,7 +551,7 @@
548
551
  /**
549
552
  Promise objects represent the eventual result of an asynchronous operation. The
550
553
  primary way of interacting with a promise is through its `then` method, which
551
- registers callbacks to receive either a promises eventual value or the reason
554
+ registers callbacks to receive either a promise's eventual value or the reason
552
555
  why the promise cannot be fulfilled.
553
556
 
554
557
  Terminology
@@ -672,7 +675,8 @@
672
675
  lib$es6$promise$promise$$Promise.resolve = lib$es6$promise$promise$resolve$$default;
673
676
  lib$es6$promise$promise$$Promise.reject = lib$es6$promise$promise$reject$$default;
674
677
  lib$es6$promise$promise$$Promise._setScheduler = lib$es6$promise$asap$$setScheduler;
675
- lib$es6$promise$promise$$Promise._asap = lib$es6$promise$asap$$default;
678
+ lib$es6$promise$promise$$Promise._setAsap = lib$es6$promise$asap$$setAsap;
679
+ lib$es6$promise$promise$$Promise._asap = lib$es6$promise$asap$$asap;
676
680
 
677
681
  lib$es6$promise$promise$$Promise.prototype = {
678
682
  constructor: lib$es6$promise$promise$$Promise,
@@ -883,7 +887,7 @@
883
887
 
884
888
  if (state) {
885
889
  var callback = arguments[state - 1];
886
- lib$es6$promise$asap$$default(function(){
890
+ lib$es6$promise$asap$$asap(function(){
887
891
  lib$es6$promise$$internal$$invokeCallback(state, child, callback, result);
888
892
  });
889
893
  } else {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: es6-promise-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonid Beder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-31 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties