async-rails 0.9.0 → 0.9.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 +6 -6
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b82104cfc3af37d7f1369cc4750fc35437d77c01
|
4
|
+
data.tar.gz: 1c9f6a51a3ad03d7a003d20fd30a8e23442673fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0d84ebfc8e49e457d0d259e5646c1ed7d2b67a38fb2ed4f5a4e8fcd56cdf163e0b7518d76f7e5b83374c72dfdb808b9b4bb777503773df164468c1a1173f772
|
7
|
+
data.tar.gz: 0e51cdf193691ca34eea0b76601f6d781e0f1ab0150f9e7839d3e176bd8775f7bf933e33ee6bb5d1d30600a5179d2f35d277463759932124446c3857c036b3e6
|
data/lib/async-rails/version.rb
CHANGED
@@ -42,9 +42,6 @@
|
|
42
42
|
};
|
43
43
|
|
44
44
|
var _each = function (arr, iterator) {
|
45
|
-
if (arr.forEach) {
|
46
|
-
return arr.forEach(iterator);
|
47
|
-
}
|
48
45
|
for (var i = 0; i < arr.length; i += 1) {
|
49
46
|
iterator(arr[i], i, arr);
|
50
47
|
}
|
@@ -821,12 +818,15 @@
|
|
821
818
|
pause: function () {
|
822
819
|
if (q.paused === true) { return; }
|
823
820
|
q.paused = true;
|
824
|
-
q.process();
|
825
821
|
},
|
826
822
|
resume: function () {
|
827
823
|
if (q.paused === false) { return; }
|
828
824
|
q.paused = false;
|
829
|
-
q.process
|
825
|
+
// Need to call q.process once per concurrent
|
826
|
+
// worker to preserve full concurrency after pause
|
827
|
+
for (var w = 1; w <= q.concurrency; w++) {
|
828
|
+
async.setImmediate(q.process);
|
829
|
+
}
|
830
830
|
}
|
831
831
|
};
|
832
832
|
return q;
|
@@ -1120,4 +1120,4 @@
|
|
1120
1120
|
root.async = async;
|
1121
1121
|
}
|
1122
1122
|
|
1123
|
-
}());
|
1123
|
+
}());
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Chen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-14 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: Rails asset pipeline wrapper for async.js
|
@@ -31,11 +31,11 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
-
- lib/async-rails/version.rb
|
35
|
-
- lib/async-rails.rb
|
36
|
-
- vendor/assets/javascripts/async.js
|
37
34
|
- MIT-LICENSE
|
38
35
|
- README.md
|
36
|
+
- lib/async-rails.rb
|
37
|
+
- lib/async-rails/version.rb
|
38
|
+
- vendor/assets/javascripts/async.js
|
39
39
|
homepage: https://github.com/jhchen/async-rails
|
40
40
|
licenses: []
|
41
41
|
metadata: {}
|
@@ -45,17 +45,17 @@ require_paths:
|
|
45
45
|
- lib
|
46
46
|
required_ruby_version: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- -
|
48
|
+
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: '0'
|
51
51
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
57
|
rubyforge_project:
|
58
|
-
rubygems_version: 2.
|
58
|
+
rubygems_version: 2.4.6
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: Rails asset pipeline wrapper for async.js
|