es6-promise-rails 2.1.1 → 2.2.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: 961455b1c8897f5b3af73165eac914306480396d
4
- data.tar.gz: d8552e5d60c90771a4fe7402e0571c45eda2ff33
3
+ metadata.gz: 7a2af2ed17803b62b6ea2fa31f7425091d06621b
4
+ data.tar.gz: a7c6e6e419c6ce2fbbfff79fda64adba07bd67f1
5
5
  SHA512:
6
- metadata.gz: 7ad501652ecc1ff10ebf4d75d24455e0d2e52a6c6bf3973b9c6b4dc83e000f74b9aa1a475082a423305df1431e211e0ae0926f557c952b6e2cd8a7c677660dd1
7
- data.tar.gz: 843e94b949923d8aef0b24673db6588456cb39c440465622a503e5c0962340e3b1d886789775ea003361674797cf03135d372fa2817231ece1f7f6e4f0d68fae
6
+ metadata.gz: 632383705b00fea44249c183b6b90944db3e4f31f2242b9d4c1c5b734272dc248a79c1b4e16b10efcca89646e2b3537d24dff83764c60caf12686d3ac63095d2
7
+ data.tar.gz: 0c9c170f1877b0291782f34b853d9f186f4cb40f5840293fcf1ee4486e9cdf9e806f6ab4c3e9aa3d065bc4ff67083ea97f15a41505c4f93a16775dcfa6ecec4b
@@ -1,7 +1,7 @@
1
1
  module E6
2
2
  module Promise
3
3
  module Rails
4
- VERSION = '2.1.1'.freeze
4
+ VERSION = '2.2.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.1.1
6
+ * @version 2.2.0
7
7
  */
8
8
 
9
9
  (function() {
@@ -33,6 +33,8 @@
33
33
  var lib$es6$promise$asap$$len = 0;
34
34
  var lib$es6$promise$asap$$toString = {}.toString;
35
35
  var lib$es6$promise$asap$$vertxNext;
36
+ var lib$es6$promise$asap$$customSchedulerFn;
37
+
36
38
  function lib$es6$promise$asap$$asap(callback, arg) {
37
39
  lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len] = callback;
38
40
  lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len + 1] = arg;
@@ -41,11 +43,18 @@
41
43
  // If len is 2, that means that we need to schedule an async flush.
42
44
  // If additional callbacks are queued before the queue is flushed, they
43
45
  // will be processed by this flush that we are scheduling.
44
- lib$es6$promise$asap$$scheduleFlush();
46
+ if (lib$es6$promise$asap$$customSchedulerFn) {
47
+ lib$es6$promise$asap$$customSchedulerFn(lib$es6$promise$asap$$flush);
48
+ } else {
49
+ lib$es6$promise$asap$$scheduleFlush();
50
+ }
45
51
  }
46
52
  }
47
53
 
48
54
  var lib$es6$promise$asap$$default = lib$es6$promise$asap$$asap;
55
+ function lib$es6$promise$asap$$setScheduler(scheduleFn) {
56
+ lib$es6$promise$asap$$customSchedulerFn = scheduleFn;
57
+ }
49
58
 
50
59
  var lib$es6$promise$asap$$browserWindow = (typeof window !== 'undefined') ? window : undefined;
51
60
  var lib$es6$promise$asap$$browserGlobal = lib$es6$promise$asap$$browserWindow || {};
@@ -662,6 +671,8 @@
662
671
  lib$es6$promise$promise$$Promise.race = lib$es6$promise$promise$race$$default;
663
672
  lib$es6$promise$promise$$Promise.resolve = lib$es6$promise$promise$resolve$$default;
664
673
  lib$es6$promise$promise$$Promise.reject = lib$es6$promise$promise$reject$$default;
674
+ lib$es6$promise$promise$$Promise._setScheduler = lib$es6$promise$asap$$setScheduler;
675
+ lib$es6$promise$promise$$Promise._asap = lib$es6$promise$asap$$default;
665
676
 
666
677
  lib$es6$promise$promise$$Promise.prototype = {
667
678
  constructor: lib$es6$promise$promise$$Promise,
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.1.1
4
+ version: 2.2.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-04-24 00:00:00.000000000 Z
11
+ date: 2015-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties