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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 162d9000d77164bd50dfb7745f5cccd24dd33fbc16924c1643b8403e0f4dcda8
4
- data.tar.gz: 9933179275d105ac9f8e6b41c7e046f70b67df88a244dbbef62c6a37748720eb
3
+ metadata.gz: f9b1df64591444d1f95959e4a18a2f84ddc0422da1a8aa7762b6da41cf0090ab
4
+ data.tar.gz: b0b6fd8696a7c35db5a2b31ddf462463a64038581dd9e414ed26d46a27eedbd0
5
5
  SHA512:
6
- metadata.gz: e49fe7f43fe1f8a68b2b221390ab77c4961b4f10776279d73e761580b193948a39c11d00913004f6cb9511398d603018e6ee07014faefb06c30328ddadeb992c
7
- data.tar.gz: bdc45f4701f90333891c90f7d6657dafac35e171c636c68630a36571b9fc0e039654285b566a7b5b1bf4086ee88737ab40ebae8a1d05375566a32a296b2de8b9
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 = events
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
- unless server&.shutting_down?
72
+ if server && !server.shutting_down?
73
73
  logger.log "* Stopping #{banner}"
74
74
  server.stop(true)
75
75
  end
@@ -1,7 +1,7 @@
1
1
  module Yabeda
2
2
  module Puma
3
3
  module Plugin
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
6
6
  end
7
7
  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.0
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-10-24 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yabeda