switchman 1.3.1 → 1.3.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
  SHA1:
3
- metadata.gz: 80d805065685ab0c80f618196e0eca6944923769
4
- data.tar.gz: e5044e884660b2a4483b95558d8d14fcd785830f
3
+ metadata.gz: 06d9cc6979bbd041bf666df98bb14b4f5f7b3bdf
4
+ data.tar.gz: 636e446d8582a4fc2ac6a4e563dc0b085a1256a9
5
5
  SHA512:
6
- metadata.gz: 84c2665b4249a540fe7f73e7c978ec279d7b39083d5edfb078c7964953794d1b10b4baecc85c5cd637afdcdb70fbe6a67c6f00ee7eee90d28e2a4b434cdc5549
7
- data.tar.gz: 3ade5d0fadfd7a9a56943660c9c92c753d67ec4ccb2a8215fbfbe572cef48e0c726e26879a9ca6123bf2a9ba2c85d4d59a08d9a8496774b8d821a9e85dccf58e
6
+ metadata.gz: 5f6f69920ca04cff70ebd8dd515fc03d13932b2add95a322f9d5db2e1f76dd4e24233e89a9b4c1f9b5cfae302653c751adbc9cbe3b53a0a3d685edabd6a66f19
7
+ data.tar.gz: d533309016d57befb426d562be635b982ffd264b947dce5c91b8b24e274edfdc3750ffe6a4531df7271e4934be184ae5da2bb3f266c574778a83318d6a8869fb
@@ -249,8 +249,8 @@ module Switchman
249
249
  fd_to_name_map[details[3]] = name
250
250
 
251
251
  is_last_subscope = (idx + 1 == subscopes.length)
252
- while (is_last_subscope && pids.any?) || (pids.count >= max_procs)
253
- while (is_last_subscopes && out_fds.any?) || (out_fds.count >= max_procs)
252
+ while (is_last_subscope && pids.any?) || (max_procs && pids.count >= max_procs)
253
+ while (is_last_subscopes && out_fds.any?) || (max_procs && out_fds.count >= max_procs)
254
254
  # wait for output if we've reached the end or if we've hit the max_procs limit
255
255
  ready, _ = IO.select(out_fds + err_fds)
256
256
  ready.each do |fd|
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switchman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer