yabeda-puma-plugin 0.7.0 → 0.7.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/puma/plugin/yabeda_prometheus.rb +2 -2
- data/lib/yabeda/puma/plugin/version.rb +1 -1
- 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: f9b1df64591444d1f95959e4a18a2f84ddc0422da1a8aa7762b6da41cf0090ab
|
|
4
|
+
data.tar.gz: b0b6fd8696a7c35db5a2b31ddf462463a64038581dd9e414ed26d46a27eedbd0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 474080f9c29212326062d91f968cde58fdfb573edf571194d786dbd895ba6e8400e81d05a77ff50aa9847c8681c6af6852a1c3bbc40032ad8b9b70b10d70d0ba
|
|
7
|
+
data.tar.gz: d89bac196177c49be5ef55df912bf29fe2eb3c487c7495d6e36020ad071fba53b3aeac38d22b89ad0e6870f3aa10b866face96a40c3bcae09d9a1501ab3c607e
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 0.7.1 - 2022-11-28
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Error if exporter is stopped before creation. [@ollym][], [#27](https://github.com/yabeda-rb/yabeda-puma-plugin/pull/27)
|
|
13
|
+
|
|
8
14
|
## 0.7.0 - 2022-10-24
|
|
9
15
|
|
|
10
16
|
### Added
|
|
@@ -33,7 +33,7 @@ Puma::Plugin.create do
|
|
|
33
33
|
path = ENV.fetch('PROMETHEUS_EXPORTER_PATH', uri.path)
|
|
34
34
|
|
|
35
35
|
server = nil
|
|
36
|
-
logger =
|
|
36
|
+
logger = nil
|
|
37
37
|
banner = "Yabeda Prometheus metrics exporter on http://#{host}:#{port}#{path}"
|
|
38
38
|
|
|
39
39
|
create_server = -> {
|
|
@@ -69,7 +69,7 @@ Puma::Plugin.create do
|
|
|
69
69
|
if events.respond_to?(:on_stopped) && events.respond_to?(:on_restart)
|
|
70
70
|
|
|
71
71
|
events.on_stopped do
|
|
72
|
-
|
|
72
|
+
if server && !server.shutting_down?
|
|
73
73
|
logger.log "* Stopping #{banner}"
|
|
74
74
|
server.stop(true)
|
|
75
75
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yabeda-puma-plugin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Salahutdinov Dmitry
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: yabeda
|