bc-prometheus-ruby 0.1.0 → 0.1.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: bc4204f3e256d97a75520de62e6e9861561fc348d2d560f5bb79c2c25e098bb9
4
- data.tar.gz: bc6ecb116fc1d36cd0199f8a0b7549d8c6c2077beb891bc6055f3c0143298bee
3
+ metadata.gz: 5981fa2cc9de83360716a878d9f1dd82c958eb39c44f0bbbe963923ffc0a52f0
4
+ data.tar.gz: bc3a367ccb46592a7202025eac89d45c376da0d68a3e1a377355a39a378c8af4
5
5
  SHA512:
6
- metadata.gz: 6bda9f2a9613145633bd5c7eb74f6426aad79842017c9be4b97b30303ab52a6dae61544e5774450f33bdbd98082671d2fa254e1b1d968c38463f9d6e90500da7
7
- data.tar.gz: a9ee4863cca42c2a90ee9db303530f6f6eeaf47e893a7747db64183afd92e794894467409e247362e4ffdeee113a5277dc8bfb0ebe71a3f7d18e6fd5fff6833b
6
+ metadata.gz: 76d838f5a8740a6ab4dabf6f45f1d194ba6d5a5267622283dbd46102c11a1dd50bc47ab19826673d49eb21473e514ba2d5b2085982d57f1515ce7d2d79b6eed6
7
+ data.tar.gz: 99739ebe1afd9339d22836d58fcb162a69cb3064a41c7b7ace03e64901e425d1e77082c5453942eefbc3894891cfa8ddac5792e3ff9f3cd5a1a38a7a516fa0be
@@ -2,6 +2,11 @@ Changelog for the bc-prometheus-ruby gem.
2
2
 
3
3
  h3. Pending Release
4
4
 
5
+ h3. 0.1.1
6
+
7
+ - Add multitrap to more cleanly handle trap signals
8
+ - Use proc in signal handlers for consistent trap handling
9
+
5
10
  h3. 0.1.0
6
11
 
7
12
  - Replace WEBrick server from PrometheusExporter with Thin server implementation to reduce memory leakage
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # bc-prometheus-ruby - Drop-in Prometheus metrics
2
2
 
3
- [![CircleCI](https://circleci.com/gh/bigcommerce/bc-prometheus-ruby.svg?style=svg&circle-token=fc3e2c4405a1f53a31e298f0ef981c2d0dfdee90)](https://circleci.com/gh/bigcommerce/bc-prometheus-ruby)
3
+ [![CircleCI](https://circleci.com/gh/bigcommerce/bc-prometheus-ruby.svg?style=svg&circle-token=fc3e2c4405a1f53a31e298f0ef981c2d0dfdee90)](https://circleci.com/gh/bigcommerce/bc-prometheus-ruby) [![Gem Version](https://badge.fury.io/rb/bc-prometheus-ruby.svg)](https://badge.fury.io/rb/bc-prometheus-ruby) [![Documentation](https://inch-ci.org/github/bigcommerce/bc-prometheus-ruby.svg?branch=master)](https://inch-ci.org/github/bigcommerce/bc-prometheus-ruby?branch=master)
4
4
 
5
5
  ## Installation
6
6
 
@@ -41,6 +41,7 @@ Gem::Specification.new do |spec|
41
41
  spec.add_development_dependency 'rubocop', '>= 0.74'
42
42
  spec.add_development_dependency 'simplecov', '>= 0.16'
43
43
 
44
+ spec.add_runtime_dependency 'multitrap', '~> 0.1'
44
45
  spec.add_runtime_dependency 'prometheus_exporter', '~> 0.4'
45
46
  spec.add_runtime_dependency 'thin', '~> 1.7'
46
47
  end
@@ -108,8 +108,8 @@ module Bigcommerce
108
108
  #
109
109
  # :nocov:
110
110
  def setup_signal_handlers
111
- ::Signal.trap('INT', &method(:stop))
112
- ::Signal.trap('TERM', &method(:stop))
111
+ ::Signal.trap('INT', proc { stop })
112
+ ::Signal.trap('TERM', proc { stop })
113
113
  end
114
114
  # :nocov:
115
115
  end
@@ -17,6 +17,6 @@
17
17
  #
18
18
  module Bigcommerce
19
19
  module Prometheus
20
- VERSION = '0.1.0'
20
+ VERSION = '0.1.1'
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bc-prometheus-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun McCormick
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0.16'
125
+ - !ruby/object:Gem::Dependency
126
+ name: multitrap
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.1'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.1'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: prometheus_exporter
127
141
  requirement: !ruby/object:Gem::Requirement