switchman 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/switchman/version.rb +1 -1
- data/lib/tasks/switchman.rake +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34560d2af725df11f4d5f35c512ee53f5e0ad4b614e7caf3d8558895c754c096
|
4
|
+
data.tar.gz: ab3bdc95958fe37f8210dd853e363394bf564c5600c4750cdb2cba408515a5dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b703818c43d4bdf7f39bb628e80b8d088aedb3b860e383339a99015da2d9780f78fa3eabd0b3e7f813681388f72155979e9de13eb1e2bdefcfeb9a5298d42a1
|
7
|
+
data.tar.gz: 5ea941cdbb24705af946fe34c583ee323ae5e8a9ac92808c67b8d6972c3ae52b04a3e4e724f824b2a9fef17ce2e1be9a6791498e3922ddea59a16933d9aa0fda
|
data/lib/switchman/version.rb
CHANGED
data/lib/tasks/switchman.rake
CHANGED
@@ -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']
|
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.
|
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-
|
13
|
+
date: 2021-08-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|