async-rails 2.6.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async-rails/version.rb +1 -1
- data/vendor/assets/javascripts/async.js +18 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eca61cfa91bd044a66fd1f33cc4093b3a058922c
|
4
|
+
data.tar.gz: 39fbb4e9595fe8129b14dffb6e0f65b8a9d4513c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffcfe9d3de56f13cd7d5614a9da8ef0662b827d6d3a862150c82c9ead14c16a9c4f90c7d2bd3cb4f517ca17e63ee909806901f07e5454bc56b41233ad76d7571
|
7
|
+
data.tar.gz: c383f4e11961fe16d68e8e9ab00318a86eaf457cc99bca262297c4383aa39778cdebefb0933446d01613ad0e5dd47b299603816848ad82c85386bf7cf3873e2d
|
data/lib/async-rails/version.rb
CHANGED
@@ -664,10 +664,13 @@ var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
664
664
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
665
665
|
*/
|
666
666
|
function isIndex(value, length) {
|
667
|
+
var type = typeof value;
|
667
668
|
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
669
|
+
|
668
670
|
return !!length &&
|
669
|
-
(
|
670
|
-
|
671
|
+
(type == 'number' ||
|
672
|
+
(type != 'symbol' && reIsUint.test(value))) &&
|
673
|
+
(value > -1 && value % 1 == 0 && value < length);
|
671
674
|
}
|
672
675
|
|
673
676
|
/** `Object#toString` result references. */
|
@@ -753,6 +756,14 @@ var freeProcess = moduleExports$1 && freeGlobal.process;
|
|
753
756
|
/** Used to access faster Node.js helpers. */
|
754
757
|
var nodeUtil = (function() {
|
755
758
|
try {
|
759
|
+
// Use `util.types` for Node.js 10+.
|
760
|
+
var types = freeModule$1 && freeModule$1.require && freeModule$1.require('util').types;
|
761
|
+
|
762
|
+
if (types) {
|
763
|
+
return types;
|
764
|
+
}
|
765
|
+
|
766
|
+
// Legacy `process.binding('util')` for Node.js < 10.
|
756
767
|
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
757
768
|
} catch (e) {}
|
758
769
|
}());
|
@@ -968,6 +979,7 @@ function _eachOfLimit(limit) {
|
|
968
979
|
var nextElem = iterator(obj);
|
969
980
|
var done = false;
|
970
981
|
var running = 0;
|
982
|
+
var looping = false;
|
971
983
|
|
972
984
|
function iterateeCallback(err, value) {
|
973
985
|
running -= 1;
|
@@ -979,12 +991,13 @@ function _eachOfLimit(limit) {
|
|
979
991
|
done = true;
|
980
992
|
return callback(null);
|
981
993
|
}
|
982
|
-
else {
|
994
|
+
else if (!looping) {
|
983
995
|
replenish();
|
984
996
|
}
|
985
997
|
}
|
986
998
|
|
987
999
|
function replenish () {
|
1000
|
+
looping = true;
|
988
1001
|
while (running < limit && !done) {
|
989
1002
|
var elem = nextElem();
|
990
1003
|
if (elem === null) {
|
@@ -997,6 +1010,7 @@ function _eachOfLimit(limit) {
|
|
997
1010
|
running += 1;
|
998
1011
|
iteratee(elem.value, elem.key, onlyOnce(iterateeCallback));
|
999
1012
|
}
|
1013
|
+
looping = false;
|
1000
1014
|
}
|
1001
1015
|
|
1002
1016
|
replenish();
|
@@ -3817,7 +3831,7 @@ function memoize(fn, hasher) {
|
|
3817
3831
|
|
3818
3832
|
/**
|
3819
3833
|
* Calls `callback` on a later loop around the event loop. In Node.js this just
|
3820
|
-
* calls `process.
|
3834
|
+
* calls `process.nextTick`. In the browser it will use `setImmediate` if
|
3821
3835
|
* available, otherwise `setTimeout(callback, 0)`, which means other higher
|
3822
3836
|
* priority events may precede the execution of `callback`.
|
3823
3837
|
*
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Chen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-05-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|