http_health_check 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.tool-versions +1 -1
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +4 -0
- data/README.md +1 -1
- data/http_health_check.gemspec +1 -0
- data/lib/http_health_check/probes/sidekiq.rb +1 -1
- data/lib/http_health_check/utils/karafka.rb +1 -1
- data/lib/http_health_check/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe6031466ea56c2d002940f78153ae48ace1db21fdca05deac22a0db3ce94b1f
|
4
|
+
data.tar.gz: 6fc203cedf7f1a230651dca1fb6843fb96c5faeb4c1c3fa7d6a3225ea74215bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d03662d8504a522417506da75186369e283eabb8a530a7ca7d57c0e89f15e5904ff78c92b19f34f6744d0d8b9c66977f5716e639b1a68358af07afd6f9f9e99f
|
7
|
+
data.tar.gz: 516019244efc6596266b887382bfb72e2a047674c30386fae8a15969a11673249f2dfd9673e0cfbcecfbc6dc93a8bc7f3823b8a4b1662e4c92619aadd6a02d14
|
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby 2.
|
1
|
+
ruby 3.2.0
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -15,6 +15,7 @@ GEM
|
|
15
15
|
tzinfo (~> 1.1)
|
16
16
|
ast (2.4.2)
|
17
17
|
concurrent-ruby (1.1.10)
|
18
|
+
connection_pool (2.4.1)
|
18
19
|
diff-lcs (1.5.0)
|
19
20
|
docile (1.4.0)
|
20
21
|
dotenv (2.7.6)
|
@@ -28,6 +29,8 @@ GEM
|
|
28
29
|
rainbow (3.1.1)
|
29
30
|
rake (13.0.6)
|
30
31
|
redis (4.2.5)
|
32
|
+
redis-client (0.15.0)
|
33
|
+
connection_pool
|
31
34
|
regexp_parser (2.5.0)
|
32
35
|
rexml (3.2.5)
|
33
36
|
rspec (3.11.0)
|
@@ -84,6 +87,7 @@ DEPENDENCIES
|
|
84
87
|
http_health_check!
|
85
88
|
rake (~> 13.0)
|
86
89
|
redis (~> 4.2.5)
|
90
|
+
redis-client (~> 0.15.0)
|
87
91
|
rspec (~> 3.2)
|
88
92
|
rspec_junit_formatter
|
89
93
|
rubocop (~> 0.81)
|
data/README.md
CHANGED
@@ -203,7 +203,7 @@ Be aware that this approach does not cover issues with sidekiq being stuck proce
|
|
203
203
|
|
204
204
|
```ruby
|
205
205
|
HttpHealthCheck.configure do |config|
|
206
|
-
config.probe '/readiness/
|
206
|
+
config.probe '/readiness/sidekiq', HttpHealthCheck::Probes::Sidekiq.new
|
207
207
|
end
|
208
208
|
```
|
209
209
|
|
data/http_health_check.gemspec
CHANGED
@@ -33,6 +33,7 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_development_dependency 'activesupport', '~> 5.0'
|
34
34
|
spec.add_development_dependency 'dotenv', '~> 2.7.6'
|
35
35
|
spec.add_development_dependency 'redis', '~> 4.2.5'
|
36
|
+
spec.add_development_dependency 'redis-client', '~> 0.15.0'
|
36
37
|
spec.add_development_dependency 'rspec', '~> 3.2'
|
37
38
|
spec.add_development_dependency 'rubocop', '~> 0.81'
|
38
39
|
spec.add_development_dependency 'thor', '>= 0.20'
|
@@ -10,7 +10,7 @@ module HttpHealthCheck
|
|
10
10
|
# @param karafka_app descendant of Karafka::App
|
11
11
|
def self.consumer_groups(karafka_app, program_name: $PROGRAM_NAME, argv: ARGV) # rubocop:disable Metrics/AbcSize
|
12
12
|
all_groups = karafka_app.consumer_groups.map(&:id)
|
13
|
-
client_id_prefix = karafka_app.config.client_id.gsub('-', '_')
|
13
|
+
client_id_prefix = "#{karafka_app.config.client_id.gsub('-', '_')}_"
|
14
14
|
|
15
15
|
return all_groups if program_name.split('/').last != 'karafka'
|
16
16
|
return all_groups if argv[0] != 'server'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_health_check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SberMarket team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 4.2.5
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: redis-client
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.15.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.15.0
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: rspec
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
195
|
- !ruby/object:Gem::Version
|
182
196
|
version: '0'
|
183
197
|
requirements: []
|
184
|
-
rubygems_version: 3.
|
198
|
+
rubygems_version: 3.4.1
|
185
199
|
signing_key:
|
186
200
|
specification_version: 4
|
187
201
|
summary: Simple and extensible HTTP health checks server.
|