promenade 0.1.12 → 0.1.13

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: 2007c474f4b4c26918e7418125be085515c95a5a3fe5d07f879b6b7eb8646ddc
4
- data.tar.gz: 446debe6df9a27bc60d0c59408ed2659dcac6b5ce46026283d2eedcc0bf6e78c
3
+ metadata.gz: 349f01f4b56fe055468cb723fc496119e7965f9f9c73edf7c8fa545e43da8405
4
+ data.tar.gz: 9d9b6de1bc4355f91cc7c947f14abb6303dec8f59beff27e9f67b5b6c43d3e49
5
5
  SHA512:
6
- metadata.gz: 82094137eec4aace1b94a44dc19902d602cb8e3c630a88baf91f4c0eab1ce3331b836c488b9a0befc3d3f2ee20750dcc63b9d8e38281902fb9c2843c24c3b016
7
- data.tar.gz: fd8f179a2b6d4c0c68dea6495ead3128bd02169d09329ac4b9a3f5ddf4ec058372475b8460f0e2205a5b94e1d4af742e74bf90586c136be78ab3b2c6af998a65
6
+ metadata.gz: f9c25fadf74c1e9385878f09607043a9c4476dd177b68bb3f2029aa8c9703e1950e998d186e64508a657c752b2c5d2d445181cdafa4bd6aac40bec47308d63bc
7
+ data.tar.gz: afb11ee815a78bf0e59df836948933133ef6edc00a5590661e25a5d31f987fad2b391f09e76471250e08224f665208bc1777e5ef18382c4bc0ca124b038c12a3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- promenade (0.1.12)
4
+ promenade (0.1.13)
5
5
  activesupport
6
6
  prometheus-client-mmap (~> 0.9.3)
7
7
  rack
@@ -9,11 +9,12 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (5.2.3)
12
+ activesupport (6.0.0)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (>= 0.7, < 2)
15
15
  minitest (~> 5.1)
16
16
  tzinfo (~> 1.1)
17
+ zeitwerk (~> 2.1, >= 2.1.8)
17
18
  ast (2.4.0)
18
19
  backports (3.15.0)
19
20
  binding_of_caller (0.8.0)
@@ -101,6 +102,7 @@ GEM
101
102
  url (0.3.2)
102
103
  with_progress (1.0.1)
103
104
  ruby-progressbar (~> 1.4)
105
+ zeitwerk (2.1.9)
104
106
 
105
107
  PLATFORMS
106
108
  ruby
@@ -9,7 +9,12 @@ Promenade.setup
9
9
  app = Rack::Builder.app do
10
10
  use Rack::Deflater
11
11
  use ::Prometheus::Client::Rack::Exporter
12
+ map "/health" do
13
+ run lambda { |env| [200, {'Content-Type' => 'text/plain'}, ['OK']] }
14
+ end
12
15
  run ->(_env) { [404, {}, ["visit /metrics for metrics"]] }
13
16
  end
14
17
 
15
- Rack::Handler::WEBrick.run app, Port: ENV.fetch("PORT", "9394")
18
+ Signal.trap("TERM") { Rack::Handler::WEBrick.shutdown }
19
+
20
+ Rack::Handler::WEBrick.run app, Port: ENV.fetch("PORT", "9394"), Host: "0.0.0.0"
@@ -1,3 +1,3 @@
1
1
  module Promenade
2
- VERSION = "0.1.12".freeze
2
+ VERSION = "0.1.13".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promenade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Robinson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-05 00:00:00.000000000 Z
11
+ date: 2019-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport