HornsAndHooves-slackiq 1.3.0 → 1.3.1

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: 5cf82d00d5319230c303822b593bc4350c99f18cc5bd7539247c2622cc35b021
4
- data.tar.gz: 40f830f297f3469d0b32bd104c6a3eeaa1cb71c0da5e8b31a8813af7bcfd5294
3
+ metadata.gz: 23e05e5344c4891a0825371e1d79342aedc903e109b0be8f4c79df75b2fe601e
4
+ data.tar.gz: 2d55c5017831b9041ddc6cd31d862c7a104a22c192762bf6836ba59f94be4312
5
5
  SHA512:
6
- metadata.gz: a07bc1b7e428c2ceac87a093118307b549dd2cae23ce12872a80f4347459951dabef1af998853f8ac54a7abdafe109805dc20a0a7703b4b4883029dc030a554d
7
- data.tar.gz: 5281494bd6f24caf781621d41960f9db72655a676684b9212ed51dc721695bd8f704236f8e6c8f090febda3a7a78795198af537fa869a3daf159d6bff3d2798d
6
+ metadata.gz: db63885b16aeaa6872dd46b35268d044be86f514432d6e97eaef6245a6987e797c8f4ea55d5648c77c288cbb342b95401a8076c6d4d7141ffcaa54b781bfb6b5
7
+ data.tar.gz: b3d3ae0dff813cd203df53c8d1d2f6902093457819e2e325885fae2a855de39d6676b0c9392ef25fc904477945a92cd8ba20e535e70f8ad4c4dec661a51c0250
@@ -1,3 +1,3 @@
1
1
  class Slackiq
2
- VERSION = "1.3.0".freeze
2
+ VERSION = "1.3.1".freeze
3
3
  end
data/lib/slackiq.rb CHANGED
@@ -48,6 +48,8 @@ class Slackiq
48
48
  time_title = status.complete? ? "Completed" : "Now"
49
49
  jobs_run = status.total - status.pending
50
50
 
51
+ return if status.total.to_f <= 0
52
+
51
53
  completion_percentage = percentage(jobs_run / status.total.to_f)
52
54
  failure_percentage = percentage(status.failures / status.total.to_f)
53
55
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HornsAndHooves-slackiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - HornsAndHooves
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-07-12 00:00:00.000000000 Z
12
+ date: 2022-01-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
- rubygems_version: 3.0.6
95
+ rubygems_version: 3.0.9
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: 'HornsAndHooves: Slack and Sidekiq Pro integration'