openstax_healthcheck 1.0.0 → 1.0.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/README.md +2 -1
- data/lib/openstax/healthcheck/middleware.rb +2 -2
- data/lib/openstax/healthcheck/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 426e2645f4e32057415ab4c6b88adc092a76338448a6ccf612f32e27334ad699
|
4
|
+
data.tar.gz: f9b36b87711edb46f789c5a2426980cb96008706705c1da6ce2405107b9da4a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 301aa12aeeef7c3ae8d312494fc32f22c8f3b2881ca0081e4982aaa5975ba33d003853e6355612d8963c08bf10d021fa357baf04cc2b7e2521a65037c38a5aba
|
7
|
+
data.tar.gz: 21a09eed9ffb63d6d34eab96f635954691ab928c3344f418ae9208358b4e38d696459cb66213131a5904e3174d49d82c7e46f385bf66e0c00f0dc09b6aaf9869
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# OpenStax Healthcheck
|
2
2
|
|
3
|
-
[](http://badge.fury.io/rb/openstax_healthcheck)
|
4
|
+
[](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 =
|
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
|
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.
|
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-
|
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.
|
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: []
|