middleware_healthcheck 0.2.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +39 -0
- data/CODE_OF_CONDUCT.md +76 -0
- data/CONTRIBUTING.md +48 -0
- data/Dockerfile +14 -0
- data/Gemfile +21 -0
- data/Gemfile.lock +167 -0
- data/LICENSE +0 -0
- data/README.md +6 -1
- data/Rakefile +2 -6
- data/lib/middleware_healthcheck.rb +8 -6
- data/lib/middleware_healthcheck/configuration.rb +10 -8
- data/lib/middleware_healthcheck/default_checkers.rb +3 -3
- data/lib/middleware_healthcheck/default_checkers/active_record_checker.rb +6 -5
- data/lib/middleware_healthcheck/main_checker.rb +9 -6
- data/lib/middleware_healthcheck/middleware.rb +3 -1
- data/lib/middleware_healthcheck/rails.rb +3 -1
- data/lib/middleware_healthcheck/version.rb +3 -1
- data/spec/dummy/Rakefile +8 -0
- data/spec/dummy/app/assets/config/manifest.js +4 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/javascripts/cable.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +6 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +6 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/home_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +4 -0
- data/spec/dummy/app/jobs/application_job.rb +4 -0
- data/spec/dummy/app/mailers/application_mailer.rb +6 -0
- data/spec/dummy/app/models/application_record.rb +5 -0
- data/spec/dummy/app/views/home/show.html.erb +1 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/bundle +5 -0
- data/spec/dummy/bin/rails +6 -0
- data/spec/dummy/bin/rake +6 -0
- data/spec/dummy/bin/setup +36 -0
- data/spec/dummy/bin/update +31 -0
- data/spec/dummy/config.ru +7 -0
- data/spec/dummy/config/application.rb +24 -0
- data/spec/dummy/config/boot.rb +7 -0
- data/spec/dummy/config/cable.yml +9 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +7 -0
- data/spec/dummy/config/environments/development.rb +56 -0
- data/spec/dummy/config/environments/production.rb +88 -0
- data/spec/dummy/config/environments/test.rb +44 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy/config/initializers/assets.rb +13 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +9 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +6 -0
- data/spec/dummy/config/initializers/inflections.rb +18 -0
- data/spec/dummy/config/initializers/mime_types.rb +6 -0
- data/spec/dummy/config/initializers/new_framework_defaults.rb +26 -0
- data/spec/dummy/config/initializers/session_store.rb +5 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +16 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/puma.rb +49 -0
- data/spec/dummy/config/routes.rb +5 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config/spring.rb +8 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +80 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1Z/1ZqiErdTkUSevJyliQcE6Uv0PPfRzU66d94xoZ3dSfw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7w/7w6Uz6xnLkTSMI9uPVNZTvew3_SuE2eFtCp2AMFxQeE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cc/CcEKUCZOP7lJ_9fy6W8fGxHeo_pLX0_lh0F7JlaDl5I.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/D_/D_apOMXJIIn679o4LoHlmz-NyTG64xuWe4ro7TKyzpU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/G0/G0qRtrgh65rOsfS-37uSF2UQdaiDRjEmjqhbpW0pBJA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/GD/GDi3vpM2thf3K_zCKYCjKfpt48sxKHSiGGGpyPoOmfw.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/H8/H8v7a_YYGdXSKky0FMxhQ8ym_KD2BX6oGxi3jjzxFSg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Iw/IwkARxo4EFYR8P7KFYOqyI2hltfnkf4RBi2GUjeEltU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jh/Jhvq9MvG2JctlJCzxUeOKtKWOu-CErXP0g6EYcMi8pk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/K2/K2fQCerqynseUF9eeLrwQyQhjV_SJOnR35ahxOQOH4Y.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ls/LsCysQmA8eOxqOj2xfTI5HT0hmFxkgb9T-79Vfpkphk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Nq/NqQL4uxBADGd-m9HPI6owT0X79j5Ih03H3Tj1zUv0fc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/RN/RN_c4-q-QAwblsfNBzf70NZ91k0xUW5abQ85cDmIFZ8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/T_/T_SzItfIMNw-VpC5cTm_V-MwdXicKcejykRA_eZGBcg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VQ/VQUXuiYfRkz_txe0ySlqGpjumXvwUZs4UQ3LdhtnLqo.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zg/ZguUWQxNrtIUWwdZcTog89HWZjwlg1b4B10YtdmGYxo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/b_/b_Itlk9QZZd7Rvf8kcA4yLP1R5Acu7jB-m1xQiSU0qE.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dC/dCU95oHfJgwqhciDDqBRfdPqRoYltk9RsJijdjFJDFs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dt/dtA0dxun-aGWHDbilfOw6VkR_pXBQ6Hclrh-DQvu-E4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gg/ggjn9TAGF7zuNOkhChHWmsgBW1JVopRz-Y2hMUg7810.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gy/gyVskbQyIOYyz_cK-QTT4kgiBOAsnZC9gN84kLLDYdE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/l_/l__yndgwOVdnrXF0F2Y92la2fbJ-bY8flE0NFs12AGY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mX/mX1nlsL_SWOB4y22W5FheRX0YEONKyOY7xUeIvRiHco.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/p7/p7shbLzQVrz5OW2TM-TaNcMg8gsq9aZWwa93dkSMTQY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rJ/rJkoK89nBrho66t78LEv5znjqvofPuVMzAQMTuQbVBg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wD/wD6mw4ORb1J88B71fVPpf5RbRJ3TVgfnA77wJFO8xj4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/y_/y_wGqfMY79V5Y8Hzbzuc2ChuexYsrFvBkUfKNuMyTQI.cache +0 -0
- data/spec/rails_helper.rb +60 -0
- data/spec/requests/healthcheck_spec.rb +46 -0
- data/spec/spec_helper.rb +99 -0
- metadata +198 -22
- data/lib/tasks/middleware_healthcheck_tasks.rake +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4e32074ef167d6ba91fcec3f586e7487e8aa9525ca4154e1e7854b93c0a62da
|
4
|
+
data.tar.gz: 32c3b688afeb072d3e4947511da57ac026acb8d5d1509cc1ed6897f87a9db558
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8ec32c894e203ca994edfcca94dc5e7e5a32c4404b49f0af63ef16072395be17f2cc4b6d833a4553919a12ed112153f432d025f0a8804c59b02a36f4358a567
|
7
|
+
data.tar.gz: 0f9712ec4a409c7f48b2f048d5cb0da0a23f2795b2755c555443314bad473072082ad7b82e9e253a0071f2299717e44c3d84fab1dc42b93112943ffc0cb7f614
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [Unreleased]
|
4
|
+
|
5
|
+
## [1.0.0] - 2019-04-03
|
6
|
+
|
7
|
+
### Added
|
8
|
+
- Add Rubocop and address various offences
|
9
|
+
- Add CHANGELOG.md and CODE_OF_CONDUCT.md
|
10
|
+
- Add contributors in README.md
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
- Fix gemspec's gem dependencies
|
14
|
+
|
15
|
+
## [0.2.2] - 2019-04-02
|
16
|
+
### Changed
|
17
|
+
- Update docs
|
18
|
+
|
19
|
+
### Fixed
|
20
|
+
- Fix gemspec
|
21
|
+
|
22
|
+
## [0.2.1] - 2019-03-21
|
23
|
+
### Added
|
24
|
+
- Dockerize project
|
25
|
+
- Add more docs
|
26
|
+
|
27
|
+
## [0.2.0] - 2017-03-08
|
28
|
+
### Added
|
29
|
+
- Add basic specs
|
30
|
+
- Add gem configuration feature
|
31
|
+
- User can add custom checkers
|
32
|
+
|
33
|
+
### Changed
|
34
|
+
- Update gems
|
35
|
+
- DB connection checked by default
|
36
|
+
|
37
|
+
## [0.1.0] - 2017-02-16
|
38
|
+
### Added
|
39
|
+
- Initial files for the gem
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
9
|
+
level of experience, education, socio-economic status, nationality, personal
|
10
|
+
appearance, race, religion, or sexual identity and orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies within all project spaces, and it also applies when
|
49
|
+
an individual is representing the project or its community in public spaces.
|
50
|
+
Examples of representing a project or community include using an official
|
51
|
+
project e-mail address, posting via an official social media account, or acting
|
52
|
+
as an appointed representative at an online or offline event. Representation of
|
53
|
+
a project may be further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
72
|
+
|
73
|
+
[homepage]: https://www.contributor-covenant.org
|
74
|
+
|
75
|
+
For answers to common questions about this code of conduct, see
|
76
|
+
https://www.contributor-covenant.org/faq
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# Introduction
|
2
|
+
|
3
|
+
Thank you for considering contributing to this project!
|
4
|
+
|
5
|
+
Any kind of contributions will be appreciated, from improving the documentation,
|
6
|
+
submitting bug reports and feature requests or writing useful checks.
|
7
|
+
|
8
|
+
# Ground Rules
|
9
|
+
|
10
|
+
* Create issues for any major changes and enhancements that you wish to make. Discuss things transparently and get feedback.
|
11
|
+
* Keep pull requests as small as possible, preferably one new feature per pull request.
|
12
|
+
|
13
|
+
# Your First Contribution
|
14
|
+
|
15
|
+
Unsure where to begin contributing? Here you have some ideas:
|
16
|
+
|
17
|
+
* documentation is always welcome
|
18
|
+
* check the pending issues
|
19
|
+
* write useful checks
|
20
|
+
|
21
|
+
# Getting started
|
22
|
+
|
23
|
+
1. Clone the repository if you have commit rights or create your own fork otherwise
|
24
|
+
1. Create your Feature Branch (git checkout -b feature/AmazingFeature)
|
25
|
+
1. Commit your Changes (git commit -m 'Add some AmazingFeature)
|
26
|
+
1. Push to the Branch (git push origin feature/AmazingFeature)
|
27
|
+
1. Open a Pull Request
|
28
|
+
|
29
|
+
Be sure you have followed the code style for the project.
|
30
|
+
|
31
|
+
# How to report a bug
|
32
|
+
|
33
|
+
If you find a security vulnerability, do NOT open an issue. Email security@firefield.com instead.
|
34
|
+
|
35
|
+
When filing an issue, make sure to answer these questions:
|
36
|
+
|
37
|
+
1. What did you do?
|
38
|
+
1. What did you expect to see?
|
39
|
+
1. What did you see instead?
|
40
|
+
|
41
|
+
# How to suggest a feature or enhancement
|
42
|
+
|
43
|
+
Open an issue on our issues list which describes the feature you would like to
|
44
|
+
see, why you need it, and how it should work.
|
45
|
+
|
46
|
+
# Code review process
|
47
|
+
|
48
|
+
The core team looks at Pull Requests on a regular basis. After feedback has been given we expect responses within two weeks. After two weeks we may close the pull request if it isn't showing any activity.
|
data/Dockerfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
FROM ruby:2.6.1-alpine3.9
|
2
|
+
|
3
|
+
LABEL maintainer="devops@firefield.com"
|
4
|
+
|
5
|
+
RUN apk add --no-cache --update build-base linux-headers
|
6
|
+
RUN apk add --no-cache --update git file
|
7
|
+
RUN apk add --no-cache --update sqlite sqlite-dev
|
8
|
+
|
9
|
+
ENV APP_PATH /usr/src/app
|
10
|
+
WORKDIR $APP_PATH
|
11
|
+
|
12
|
+
COPY . .
|
13
|
+
|
14
|
+
RUN bundle install --jobs `expr $(cat /proc/cpuinfo | grep -c "cpu cores") - 1` --retry 3
|
data/Gemfile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
|
5
|
+
# Declare your gem's dependencies in middleware_healthcheck.gemspec.
|
6
|
+
# Bundler will treat runtime dependencies like base dependencies, and
|
7
|
+
# development dependencies will be added by default to the :development group.
|
8
|
+
gemspec
|
9
|
+
|
10
|
+
# Declare any dependencies that are still in development here instead of in
|
11
|
+
# your gemspec. These might include edge Rails or gems from your path or
|
12
|
+
# Git. Remember to move these dependencies to your gemspec before releasing
|
13
|
+
# your gem to rubygems.org.
|
14
|
+
|
15
|
+
# To use a debugger
|
16
|
+
# gem 'byebug', group: [:development, :test]
|
17
|
+
|
18
|
+
group :development, :test do
|
19
|
+
gem 'rubocop'
|
20
|
+
gem 'tzinfo-data'
|
21
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
middleware_healthcheck (1.0.0)
|
5
|
+
rails (>= 4.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actioncable (5.0.2)
|
11
|
+
actionpack (= 5.0.2)
|
12
|
+
nio4r (>= 1.2, < 3.0)
|
13
|
+
websocket-driver (~> 0.6.1)
|
14
|
+
actionmailer (5.0.2)
|
15
|
+
actionpack (= 5.0.2)
|
16
|
+
actionview (= 5.0.2)
|
17
|
+
activejob (= 5.0.2)
|
18
|
+
mail (~> 2.5, >= 2.5.4)
|
19
|
+
rails-dom-testing (~> 2.0)
|
20
|
+
actionpack (5.0.2)
|
21
|
+
actionview (= 5.0.2)
|
22
|
+
activesupport (= 5.0.2)
|
23
|
+
rack (~> 2.0)
|
24
|
+
rack-test (~> 0.6.3)
|
25
|
+
rails-dom-testing (~> 2.0)
|
26
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
+
actionview (5.0.2)
|
28
|
+
activesupport (= 5.0.2)
|
29
|
+
builder (~> 3.1)
|
30
|
+
erubis (~> 2.7.0)
|
31
|
+
rails-dom-testing (~> 2.0)
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
+
activejob (5.0.2)
|
34
|
+
activesupport (= 5.0.2)
|
35
|
+
globalid (>= 0.3.6)
|
36
|
+
activemodel (5.0.2)
|
37
|
+
activesupport (= 5.0.2)
|
38
|
+
activerecord (5.0.2)
|
39
|
+
activemodel (= 5.0.2)
|
40
|
+
activesupport (= 5.0.2)
|
41
|
+
arel (~> 7.0)
|
42
|
+
activesupport (5.0.2)
|
43
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
44
|
+
i18n (~> 0.7)
|
45
|
+
minitest (~> 5.1)
|
46
|
+
tzinfo (~> 1.1)
|
47
|
+
arel (7.1.4)
|
48
|
+
ast (2.4.0)
|
49
|
+
builder (3.2.3)
|
50
|
+
byebug (9.0.6)
|
51
|
+
coderay (1.1.1)
|
52
|
+
concurrent-ruby (1.0.5)
|
53
|
+
diff-lcs (1.3)
|
54
|
+
erubis (2.7.0)
|
55
|
+
globalid (0.4.2)
|
56
|
+
activesupport (>= 4.2.0)
|
57
|
+
i18n (0.8.1)
|
58
|
+
jaro_winkler (1.5.2)
|
59
|
+
loofah (2.0.3)
|
60
|
+
nokogiri (>= 1.5.9)
|
61
|
+
mail (2.7.1)
|
62
|
+
mini_mime (>= 0.1.1)
|
63
|
+
method_source (0.8.2)
|
64
|
+
mini_mime (1.0.1)
|
65
|
+
mini_portile2 (2.1.0)
|
66
|
+
minitest (5.10.1)
|
67
|
+
nio4r (2.3.1)
|
68
|
+
nokogiri (1.7.0.1)
|
69
|
+
mini_portile2 (~> 2.1.0)
|
70
|
+
parallel (1.17.0)
|
71
|
+
parser (2.6.2.0)
|
72
|
+
ast (~> 2.4.0)
|
73
|
+
pry (0.10.4)
|
74
|
+
coderay (~> 1.1.0)
|
75
|
+
method_source (~> 0.8.1)
|
76
|
+
slop (~> 3.4)
|
77
|
+
pry-byebug (3.4.2)
|
78
|
+
byebug (~> 9.0)
|
79
|
+
pry (~> 0.10)
|
80
|
+
psych (3.1.0)
|
81
|
+
rack (2.0.1)
|
82
|
+
rack-test (0.6.3)
|
83
|
+
rack (>= 1.0)
|
84
|
+
rails (5.0.2)
|
85
|
+
actioncable (= 5.0.2)
|
86
|
+
actionmailer (= 5.0.2)
|
87
|
+
actionpack (= 5.0.2)
|
88
|
+
actionview (= 5.0.2)
|
89
|
+
activejob (= 5.0.2)
|
90
|
+
activemodel (= 5.0.2)
|
91
|
+
activerecord (= 5.0.2)
|
92
|
+
activesupport (= 5.0.2)
|
93
|
+
bundler (>= 1.3.0, < 2.0)
|
94
|
+
railties (= 5.0.2)
|
95
|
+
sprockets-rails (>= 2.0.0)
|
96
|
+
rails-dom-testing (2.0.2)
|
97
|
+
activesupport (>= 4.2.0, < 6.0)
|
98
|
+
nokogiri (~> 1.6)
|
99
|
+
rails-html-sanitizer (1.0.3)
|
100
|
+
loofah (~> 2.0)
|
101
|
+
railties (5.0.2)
|
102
|
+
actionpack (= 5.0.2)
|
103
|
+
activesupport (= 5.0.2)
|
104
|
+
method_source
|
105
|
+
rake (>= 0.8.7)
|
106
|
+
thor (>= 0.18.1, < 2.0)
|
107
|
+
rainbow (3.0.0)
|
108
|
+
rake (12.0.0)
|
109
|
+
rspec-core (3.5.4)
|
110
|
+
rspec-support (~> 3.5.0)
|
111
|
+
rspec-expectations (3.5.0)
|
112
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
113
|
+
rspec-support (~> 3.5.0)
|
114
|
+
rspec-mocks (3.5.0)
|
115
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
116
|
+
rspec-support (~> 3.5.0)
|
117
|
+
rspec-rails (3.5.2)
|
118
|
+
actionpack (>= 3.0)
|
119
|
+
activesupport (>= 3.0)
|
120
|
+
railties (>= 3.0)
|
121
|
+
rspec-core (~> 3.5.0)
|
122
|
+
rspec-expectations (~> 3.5.0)
|
123
|
+
rspec-mocks (~> 3.5.0)
|
124
|
+
rspec-support (~> 3.5.0)
|
125
|
+
rspec-support (3.5.0)
|
126
|
+
rubocop (0.66.0)
|
127
|
+
jaro_winkler (~> 1.5.1)
|
128
|
+
parallel (~> 1.10)
|
129
|
+
parser (>= 2.5, != 2.5.1.1)
|
130
|
+
psych (>= 3.1.0)
|
131
|
+
rainbow (>= 2.2.2, < 4.0)
|
132
|
+
ruby-progressbar (~> 1.7)
|
133
|
+
unicode-display_width (>= 1.4.0, < 1.6)
|
134
|
+
ruby-progressbar (1.10.0)
|
135
|
+
slop (3.6.0)
|
136
|
+
sprockets (3.7.2)
|
137
|
+
concurrent-ruby (~> 1.0)
|
138
|
+
rack (> 1, < 3)
|
139
|
+
sprockets-rails (3.2.1)
|
140
|
+
actionpack (>= 4.0)
|
141
|
+
activesupport (>= 4.0)
|
142
|
+
sprockets (>= 3.0.0)
|
143
|
+
sqlite3 (1.3.13)
|
144
|
+
thor (0.19.4)
|
145
|
+
thread_safe (0.3.6)
|
146
|
+
tzinfo (1.2.2)
|
147
|
+
thread_safe (~> 0.1)
|
148
|
+
tzinfo-data (1.2018.9)
|
149
|
+
tzinfo (>= 1.0.0)
|
150
|
+
unicode-display_width (1.5.0)
|
151
|
+
websocket-driver (0.6.5)
|
152
|
+
websocket-extensions (>= 0.1.0)
|
153
|
+
websocket-extensions (0.1.3)
|
154
|
+
|
155
|
+
PLATFORMS
|
156
|
+
ruby
|
157
|
+
|
158
|
+
DEPENDENCIES
|
159
|
+
middleware_healthcheck!
|
160
|
+
pry-byebug (~> 3.4)
|
161
|
+
rspec-rails (~> 3.5)
|
162
|
+
rubocop
|
163
|
+
sqlite3 (~> 1.3)
|
164
|
+
tzinfo-data
|
165
|
+
|
166
|
+
BUNDLED WITH
|
167
|
+
1.17.2
|
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -94,7 +94,7 @@ Your Custom Checker class should look like this:
|
|
94
94
|
```ruby
|
95
95
|
class MyCustomChecker
|
96
96
|
attr_accessor :error
|
97
|
-
|
97
|
+
|
98
98
|
def initialize(_app, _env)
|
99
99
|
end
|
100
100
|
|
@@ -120,6 +120,11 @@ in initializer.
|
|
120
120
|
|
121
121
|
# Contributing
|
122
122
|
|
123
|
+
Contributors:
|
124
|
+
- Adam Wieczorkowski adam.wieczorkowski@naturaily.com
|
125
|
+
- Claudio Perez Gamayo claudio@firefield.com
|
126
|
+
- Jan Wieczorkowski jan.wieczorkowski@naturaily.com
|
127
|
+
|
123
128
|
Use the provided dockerized development environment. For more information check the [CONTRIBUTING](CONTRIBUTING.md) file.
|
124
129
|
|
125
130
|
## Development
|
data/Rakefile
CHANGED
@@ -1,12 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require
|
4
|
-
require
|
5
|
-
require
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'middleware_healthcheck/rails' if defined? Rails::Railtie
|
4
|
+
require 'middleware_healthcheck/default_checkers'
|
5
|
+
require 'middleware_healthcheck/configuration'
|
6
|
+
require 'middleware_healthcheck/main_checker'
|
7
|
+
require 'middleware_healthcheck/middleware'
|
6
8
|
|
7
9
|
module MiddlewareHealthcheck
|
8
10
|
class << self
|
9
|
-
|
11
|
+
cattr_writer :configuration
|
10
12
|
|
11
13
|
def configuration
|
12
14
|
@configuration ||= Configuration.new
|