fasten 0.12.0 → 0.12.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3685f6fe8763ef1686a29ce9c0c9fb5a78d6cf7ebb425d0bc4f5141b9f047a0
4
- data.tar.gz: 0a6cbd8425207acd434317172de2d3fbf606874683d6dd3e52e1890cf7b41489
3
+ metadata.gz: 98294547cda428694c3da8c745f163bb4d860e419cee64320d28b5b1178f1682
4
+ data.tar.gz: 23a8699f322f4cdf27beb1c0410a5443b12f294af6477ad6c45626d89b820aa9
5
5
  SHA512:
6
- metadata.gz: e3c511e65ce64a818ad835c9c1b89b6991b2fec96b950cb08c8531a6c24bc711c9019a7888a1aeb781fbf6ba8f86854a8facc150d9b1bc76ff9e59fe3ffc08ba
7
- data.tar.gz: e619759f57d2d1f287fa7ae4fba89f58f12a4b9e93934961691d00cb69fdddbc94a42756e8d95cc6a2a5f613da5cec393b5a717465f0f0c59a212ee5b6b66b7e
6
+ metadata.gz: ee1b5d66b598ac66fe9a1c545ceeecec027ec5dd658f58443213006ef5599a4189f51a8e8d622585578de412a5be320e36cefd9f49921d55a5cdb9725922c902
7
+ data.tar.gz: 28b0d3e51510ae91e43666480852c7811832b30aaefebd911a170f4281b2fa233f0891ac7cfc1fda6234d531806c30ca6d4f01913f5d994b86ec094e9890a8cd
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fasten (0.12.0)
4
+ fasten (0.12.2)
5
5
  binding_of_caller
6
6
  hirb
7
7
  os
@@ -116,7 +116,7 @@ module Fasten
116
116
  end
117
117
 
118
118
  def should_wait_for_running_tasks?
119
- tasks.running? && (tasks.no_waiting? || tasks.failed? || %i[PAUSING QUITTING].include?(state)) || tasks.running.count >= jobs
119
+ tasks.running? && (tasks.no_waiting? || tasks.failed? || %i[PAUSING QUITTING].include?(state)) || tasks.running.map(&:weight).sum >= jobs
120
120
  end
121
121
 
122
122
  def wait_for_running_tasks
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fasten
4
- VERSION = '0.12.0'
4
+ VERSION = '0.12.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fasten
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aldrin Martoq