switchman 2.2.0 → 2.2.1

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: cd39304f0dfae8329f95979c1cb2075d09a73cace1b2befa5f62c3100e863ca2
4
- data.tar.gz: 742dd9cdbd63e3124b9ae4a9e0d73b56a071c43011f3ec0cdf43681f4977c116
3
+ metadata.gz: 34560d2af725df11f4d5f35c512ee53f5e0ad4b614e7caf3d8558895c754c096
4
+ data.tar.gz: ab3bdc95958fe37f8210dd853e363394bf564c5600c4750cdb2cba408515a5dc
5
5
  SHA512:
6
- metadata.gz: 5355bcac300f60b1c2d626998ebd97a52871c4beff4bc597d2acc1f0439b7365b1a7478f91ec5a05bd8faa2df545e5444341ac296c826f1ab701372180a0282c
7
- data.tar.gz: 54a69a012b6d48b91efd5417a71a536a9da8b02283284c5e9327121dcce0c458a1f065d6357012b9cbeba1dbba0603357a64505e69a16de886b9d34add5d8976
6
+ metadata.gz: 1b703818c43d4bdf7f39bb628e80b8d088aedb3b860e383339a99015da2d9780f78fa3eabd0b3e7f813681388f72155979e9de13eb1e2bdefcfeb9a5298d42a1
7
+ data.tar.gz: 5ea941cdbb24705af946fe34c583ee323ae5e8a9ac92808c67b8d6972c3ae52b04a3e4e724f824b2a9fef17ce2e1be9a6791498e3922ddea59a16933d9aa0fda
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Switchman
4
- VERSION = "2.2.0"
4
+ VERSION = "2.2.1"
5
5
  end
@@ -47,7 +47,7 @@ module Switchman
47
47
 
48
48
  def self.options
49
49
  # we still pass through both of these options for back-compat purposes
50
- { parallel: ENV['PARALLEL'].to_i, max_procs: ENV['MAX_PARALLEL_PROCS'] }
50
+ { parallel: ENV['PARALLEL']&.to_i, max_procs: ENV['MAX_PARALLEL_PROCS']&.to_i }
51
51
  end
52
52
 
53
53
  # categories - an array or proc, to activate as the current shard during the
@@ -90,7 +90,7 @@ module Switchman
90
90
  nil
91
91
  end
92
92
  rescue => e
93
- puts "Exception from #{e.current_shard.id}: #{e.current_shard.description}" if options[:parallel] != 0
93
+ puts "Exception from #{e.current_shard.id}: #{e.current_shard.description}" if options[:parallel].to_i != 0
94
94
  raise
95
95
  end
96
96
  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: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-08-20 00:00:00.000000000 Z
13
+ date: 2021-08-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties