gitlab_support_readiness 1.0.67 → 1.0.68

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: 9a93a50395be5887b15ebb3cd94abc9274559e3a73727cb528b30c9e42dbf9da
4
- data.tar.gz: 932ce40bfe69ba488856f5fcb4b4f34ce194e14b982c7e221ddcc410858adb41
3
+ metadata.gz: c8fa6841a56062aee2e89c8fce210924ff77e1ca250f5932e8cf6829c0924dbc
4
+ data.tar.gz: 90edf165d5c66501f5817ad0608646dcecd4d4e19d6b42e9bfc5ef47f8d6535d
5
5
  SHA512:
6
- metadata.gz: 97ca67657388069f28799adf3641a05d310e2f9a73ee7f8a471b6c07575516d1efcb9231bebca2ae4216aa0520bd15456388a5a71e2a721acf4251c0272cc01d
7
- data.tar.gz: 0e026d5c4e0a5d916fab3d6cdab61f6432a2ec5b246e453cb0311f11398c7d5ce19b2ab1bb7b94e990f4813a7c650217eec0f94a787e03f9c4ff2d37bd6e6587
6
+ metadata.gz: c776d0da83ac4a4b4946526caf01efa74eaa409738223cbf4f10c47f2f53470a0152404665916898b423fed6230ea42d9efed886e98259b398dbefa543d22678
7
+ data.tar.gz: 3f824b4144ec4b17dae5baa55088a91b1033fa5c1af1071f2aad40f4c36d67b5b1ca734e9bbf9dc30c15740844df224d37064a308718d51470a21c0752fbde6f
@@ -197,9 +197,13 @@ module Readiness
197
197
  sources.push('Bouncer') if custom_attributes.detect { |c| c['key'] == 'block_enacted_by' && c['value'] =~ /^bouncer\:/ }
198
198
  sources.push('Bouncer') if custom_attributes.detect { |c| c['key'] == 'ban_enacted_by' && c['value'] =~ /^bouncer\:/ }
199
199
  admin_check = custom_attributes.detect { |c| c['key'] == 'blocked_by' }
200
- sources.push(admin_check['value'].split('/').first) unless admin_check['value'] =~ /^service\-/
200
+ unless admin_check.nil?
201
+ sources.push(admin_check['value'].split('/').first) unless admin_check['value'] =~ /^service\-/
202
+ end
201
203
  autoban_check = custom_attributes.detect { |c| c['key'] == 'auto_banned_by' }
202
- sources.push(autoban_check['value']) unless autoban_check.nil?
204
+ unless autoban_check.nil?
205
+ sources.push(autoban_check['value']) unless autoban_check.nil?
206
+ end
203
207
  return 'Other (unknown)' if sources.uniq.compact.count.zero?
204
208
 
205
209
  sources.uniq.compact.join(', ')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_support_readiness
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.67
4
+ version: 1.0.68
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Colyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-06 00:00:00.000000000 Z
11
+ date: 2024-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport