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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 926cbe8acc038109fc2b0cda6f10af35f204f2c78e91fe6a31c87d9bd1ea81c3
4
- data.tar.gz: a4e823799e5a47bcf068650364dd29d94154708c7db601275eb0f768bbb81e16
3
+ metadata.gz: 25b1258b84cb23af62808ce8711f4098013e6bb4686c23238a704f00d53e24e8
4
+ data.tar.gz: 3b701469299fc81e49d1df571c02c4ef6b11d2ae8ad5cf20ef56463c3697dace
5
5
  SHA512:
6
- metadata.gz: 6eda735ef22ec9762a781d228fcc217f6dade60fbbdc2d65ba0c4efbfe2ceb6fc969698ff3f0311ac035fdf1b952e2e90560f0547e2f79ad07d6f3227836c4c9
7
- data.tar.gz: a712aa467a11baeebd5549e88905d570d5e6df41446ef500e6e97785f026ec22b2d7a29ef2bc1f307ec9b20e7a21d14b8ebd89929045bf01b0d2ca2104e67a58
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.each do |token|
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.join
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DSU3
4
- VERSION = '1.1.1'
4
+ VERSION = '1.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dsu3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artur Sheremetjev IV