Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add failure_status option and spec. #53

Merged
merged 2 commits into from
Sep 8, 2023
Merged

Add failure_status option and spec. #53

merged 2 commits into from
Sep 8, 2023

Conversation

floere
Copy link
Contributor

@floere floere commented Aug 31, 2023

Dear Rack::ECG maintainers

First of all, thanks so much for a useful gem! πŸ™‡πŸ»β€β™‚οΈ

I wanted to return a more specific HTTP code when a check failed, in my case a 503 Service Unavailable. I added the necessary option failure_status, code, and a spec.

Please let me know if the PR needs improvements and I'll update it.

@liamdawson
Copy link
Contributor

Hi @floere, thanks for the PR! I'm hoping to get a chance to check it in detail at some point this week. It'll speed things up if you can make sure that rubocop is passing on this branch, I think you might be able to rubocop --auto-correct (or bundle exec rubocop --auto-correct) to automatically correct everything.

@liamdawson liamdawson self-assigned this Sep 5, 2023
@liamdawson
Copy link
Contributor

Thanks for the contribution! I'll try to cut a release today.

@liamdawson liamdawson merged commit 3808274 into envato:main Sep 8, 2023
4 checks passed
@liamdawson liamdawson mentioned this pull request Sep 8, 2023
@floere
Copy link
Contributor Author

floere commented Sep 8, 2023

@liamdawson Thanks so much! πŸ™‡πŸ»β€β™‚οΈ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants