dsu3 1.1.1 → 1.1.2
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 +4 -4
- data/lib/dsu3/net.rb +3 -3
- data/lib/dsu3/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25b1258b84cb23af62808ce8711f4098013e6bb4686c23238a704f00d53e24e8
|
4
|
+
data.tar.gz: 3b701469299fc81e49d1df571c02c4ef6b11d2ae8ad5cf20ef56463c3697dace
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25c924f2d718fb9f02b1ae8b709665dd065adad0d77ec0d2b48873f85f0f65d738dd00cd21b361d0d08a120e25628151524840d8e050f9c9424e3d9cb9481cc3
|
7
|
+
data.tar.gz: a26e90b80489b8035acf0710591163b9294607c80dfd981dba70853cc01a0d3bec59d537ca4ee5400d309ad58dc54612dee25be2cf5a4700dcdd9a84d11d03d1
|
data/lib/dsu3/net.rb
CHANGED
@@ -20,7 +20,7 @@ module DSU3
|
|
20
20
|
def request(opts = {})
|
21
21
|
opts = { cooldown: 0, loop: false }.merge(opts)
|
22
22
|
|
23
|
-
@tokens.
|
23
|
+
@tokens.map do |token|
|
24
24
|
Thread.new do
|
25
25
|
begin
|
26
26
|
@mutex.synchronize { yield token }
|
@@ -30,8 +30,8 @@ module DSU3
|
|
30
30
|
@mutex.sleep(e.retry_after)
|
31
31
|
retry
|
32
32
|
end while opts[:loop]
|
33
|
-
end
|
34
|
-
end
|
33
|
+
end
|
34
|
+
end.each(&:join)
|
35
35
|
end
|
36
36
|
|
37
37
|
# I'm too lazy to try to document it
|
data/lib/dsu3/version.rb
CHANGED