openstax_healthcheck 1.0.0 → 1.0.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: cd4853b4bfd5b3b1ce33d0158cc00a1c9371336def19d9618b52bba8a97efc8a
4
- data.tar.gz: e117df7b95d028848e842a17e73f0a0d91c7cb4b202f63036954d813658c5125
3
+ metadata.gz: 426e2645f4e32057415ab4c6b88adc092a76338448a6ccf612f32e27334ad699
4
+ data.tar.gz: f9b36b87711edb46f789c5a2426980cb96008706705c1da6ce2405107b9da4a8
5
5
  SHA512:
6
- metadata.gz: 15f5dca4c9355bcd743fafe3a77795bc13fd0303f8b92fee3fd676083de6fc5b1ee9dd57ed673bc24ff9d98277925aa775a5a75cba662d072c0a76444b340303
7
- data.tar.gz: fde3a1c524c92f3a2aca04394978d25a1941af8f9e825da2188e0424e25dc63440a54ccbee88e20e55397116fc9c3b5d24672b7f15ed63f117384374dbc90a25
6
+ metadata.gz: 301aa12aeeef7c3ae8d312494fc32f22c8f3b2881ca0081e4982aaa5975ba33d003853e6355612d8963c08bf10d021fa357baf04cc2b7e2521a65037c38a5aba
7
+ data.tar.gz: 21a09eed9ffb63d6d34eab96f635954691ab928c3344f418ae9208358b4e38d696459cb66213131a5904e3174d49d82c7e46f385bf66e0c00f0dc09b6aaf9869
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # OpenStax Healthcheck
2
2
 
3
- [![Build Status](https://travis-ci.org/openstax/healthcheck.svg?branch=master)](https://travis-ci.org/openstax/healthcheck)
3
+ [![Gem Version](https://badge.fury.io/rb/openstax_healthcheck.svg)](http://badge.fury.io/rb/openstax_healthcheck)
4
+ [![Tests](https://github.com/openstax/healthcheck/workflows/Tests/badge.svg)](https://github.com/openstax/healthcheck/actions?query=workflow:Tests)
4
5
 
5
6
  This gem defines a route in your Rails app for ELB healthchecks.
6
7
  The only thing that this middleware does is return 200 OK if the route matches a regex pattern.
@@ -1,14 +1,14 @@
1
1
  module OpenStax
2
2
  module Healthcheck
3
3
  class Middleware
4
- ROUTE_PATTERN = /\/ping\/?/
4
+ ROUTE_PATTERN = /\A\/ping\/?\z/
5
5
 
6
6
  def initialize(app)
7
7
  @app = app
8
8
  end
9
9
 
10
10
  def call(env)
11
- return [ 200, {}, [] ] if ROUTE_PATTERN.match env['PATH_INFO']
11
+ return [ 200, {}, [] ] if ROUTE_PATTERN.match? env['PATH_INFO']
12
12
 
13
13
  @app.call env
14
14
  end
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Healthcheck
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_healthcheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logan Serman
8
8
  - Dante Soares
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-03-09 00:00:00.000000000 Z
12
+ date: 2021-10-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -57,7 +57,7 @@ homepage: https://github.com/openstax/healthcheck
57
57
  licenses:
58
58
  - MIT
59
59
  metadata: {}
60
- post_install_message:
60
+ post_install_message:
61
61
  rdoc_options: []
62
62
  require_paths:
63
63
  - lib
@@ -72,8 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
- rubygems_version: 3.2.7
76
- signing_key:
75
+ rubygems_version: 3.1.4
76
+ signing_key:
77
77
  specification_version: 4
78
78
  summary: Mounts a Rack app at /ping/? that returns 200 OK for AWS load balancers
79
79
  test_files: []