Skip to content

Commit

Permalink
Merge pull request #35 from obstools/develop
Browse files Browse the repository at this point in the history
HealthcheckEndpoint v1.0.0
  • Loading branch information
bestwebua authored Oct 24, 2024
2 parents c6bebc4 + 1f7d9f4 commit 1815c98
Show file tree
Hide file tree
Showing 64 changed files with 630 additions and 642 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
version: 2.1

defaults: &defaults
working_directory: ~/ruby-on-strum-healthcheck
working_directory: ~/healthcheck-endpoint
docker:
- image: cimg/ruby:<< parameters.ruby-version >>

orbs:
ruby: circleci/ruby@2.1.1
ruby: circleci/ruby@2.3.0

references:
bundle_install: &bundle_install
Expand Down Expand Up @@ -44,12 +44,12 @@ references:
use_latest_gemspec: &use_latest_gemspec
run:
name: Using latest gemspec
command: cp .circleci/gemspecs/latest on_strum-healthcheck.gemspec
command: cp .circleci/gemspecs/latest healthcheck_endpoint.gemspec

use_compatible_gemspec: &use_compatible_gemspec
run:
name: Using compatible gemspec
command: cp .circleci/gemspecs/compatible on_strum-healthcheck.gemspec
command: cp .circleci/gemspecs/compatible healthcheck_endpoint.gemspec

jobs:
linters-ruby:
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
- store_artifacts:
name: Saving Simplecov coverage artifacts
path: ~/ruby-on-strum-healthcheck/coverage
path: ~/healthcheck-endpoint/coverage
destination: coverage

- deploy:
Expand Down
10 changes: 5 additions & 5 deletions .circleci/gemspecs/compatible
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# frozen_string_literal: true

require_relative 'lib/on_strum/healthcheck/version'
require_relative 'lib/healthcheck_endpoint/version'

Gem::Specification.new do |spec|
spec.name = 'on_strum-healthcheck'
spec.version = OnStrum::Healthcheck::VERSION
spec.name = 'healthcheck_endpoint'
spec.version = HealthcheckEndpoint::VERSION
spec.authors = ['Vladislav Trotsenko']
spec.email = %w[admin@on-strum.org]
spec.email = %w[admin@bestweb.com.ua]
spec.summary = %(Simple configurable application healthcheck rack middleware)
spec.description = %(Simple configurable application healthcheck rack middleware.)
spec.homepage = 'https://github.com/on-strum/ruby-on-strum-healthcheck'
spec.homepage = 'https://github.com/obstools/healthcheck-endpoint'
spec.license = 'MIT'

spec.required_ruby_version = '>= 2.5.0'
Expand Down
20 changes: 10 additions & 10 deletions .circleci/gemspecs/latest
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# frozen_string_literal: true

require_relative 'lib/on_strum/healthcheck/version'
require_relative 'lib/healthcheck_endpoint/version'

Gem::Specification.new do |spec|
spec.name = 'on_strum-healthcheck'
spec.version = OnStrum::Healthcheck::VERSION
spec.name = 'healthcheck_endpoint'
spec.version = HealthcheckEndpoint::VERSION
spec.authors = ['Vladislav Trotsenko']
spec.email = %w[admin@on-strum.org]
spec.email = %w[admin@bestweb.com.ua]
spec.summary = %(Simple configurable application healthcheck rack middleware)
spec.description = %(Simple configurable application healthcheck rack middleware.)
spec.homepage = 'https://github.com/on-strum/ruby-on-strum-healthcheck'
spec.homepage = 'https://github.com/obstools/healthcheck-endpoint'
spec.license = 'MIT'

spec.required_ruby_version = '>= 2.5.0'
Expand All @@ -18,16 +18,16 @@ Gem::Specification.new do |spec|

spec.add_runtime_dependency 'rack', '>= 2.0.1'

spec.add_development_dependency 'bundler-audit', '~> 0.9.1'
spec.add_development_dependency 'bundler-audit', '~> 0.9.2'
spec.add_development_dependency 'fasterer', '~> 0.11.0'
spec.add_development_dependency 'ffaker', '~> 2.23'
spec.add_development_dependency 'json_matchers', '~> 0.11.1'
spec.add_development_dependency 'pry-byebug', '~> 3.10', '>= 3.10.1'
spec.add_development_dependency 'rake', '~> 13.1'
spec.add_development_dependency 'rake', '~> 13.2', '>= 13.2.1'
spec.add_development_dependency 'reek', '~> 6.3'
spec.add_development_dependency 'rspec', '~> 3.13'
spec.add_development_dependency 'rubocop', '~> 1.62', '>= 1.62.1'
spec.add_development_dependency 'rubocop-performance', '~> 1.20', '>= 1.20.2'
spec.add_development_dependency 'rubocop-rspec', '~> 2.27', '>= 2.27.1'
spec.add_development_dependency 'rubocop', '~> 1.67'
spec.add_development_dependency 'rubocop-performance', '~> 1.22', '>= 1.22.1'
spec.add_development_dependency 'rubocop-rspec', '~> 3.1'
spec.add_development_dependency 'simplecov', '~> 0.22.0'
end
6 changes: 3 additions & 3 deletions .circleci/linter_configs/.cspell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ languageSettings:
- MarkdownCodeBlock

words:
- Serhiy
- Nazarov
- Vladislav
- Trotsenko
- bestwebua
- commiting
- codebases
- gemspecs
- onstrum
- healthcheck
- healthchecks
- roda
Expand Down
6 changes: 6 additions & 0 deletions .circleci/linter_configs/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ Gemspec/RequireMFA:
Gemspec/DevelopmentDependencies:
Enabled: false

Gemspec/AddRuntimeDependency:
Enabled: false

# Performance -----------------------------------------------------------------

Performance/MethodObjectAsBlock:
Expand Down Expand Up @@ -135,3 +138,6 @@ RSpec/StubbedMock:

RSpec/VerifiedDoubleReference:
Enabled: false

RSpec/StringAsInstanceDoubleConstant:
Enabled: false
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ checks:
plugins:
rubocop:
enabled: true
channel: rubocop-1-62
channel: rubocop-1-67
config:
file: .circleci/linter_configs/.rubocop.yml

Expand Down
12 changes: 6 additions & 6 deletions .github/DEVELOPMENT_ENVIRONMENT_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@

## Preparing

Clone `ruby-on-strum-healthcheck` repository:
Clone `healthcheck-endpoint` repository:

```bash
git clone https://github.com/on-strum/ruby-on-strum-healthcheck.git
git clone https://github.com/obstools/healthcheck-endpoint.git
cd ruby-gem
```

Configure latest Ruby environment:

```bash
echo 'ruby-3.2.0' > .ruby-version
cp .circleci/gemspec_latest on_strum-healthcheck.gemspec
cp .circleci/gemspec_latest healthcheck_endpoint.gemspec
```

## Commiting

Commit your changes excluding `.ruby-version`, `on_strum-healthcheck.gemspec`
Commit your changes excluding `.ruby-version`, `healthcheck_endpoint.gemspec`

```bash
git add . ':!.ruby-version' ':!on_strum-healthcheck.gemspec'
git commit -m 'Your new awesome on_strum-healthcheck feature'
git add . ':!.ruby-version' ':!healthcheck_endpoint.gemspec'
git commit -m 'Your new awesome healthcheck_endpoint feature'
```
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---

github: [bestwebua]
14 changes: 7 additions & 7 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ name: Bug report
about: Create a report to help us improve
title: "[BUG] Your bug report title here"
labels: bug
assignees: Serhiy-Nazarov
assignees: bestwebua

---

<!-- Thanks for helping to make `on_strum-healthcheck` better! Before submit your bug, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->
<!-- Thanks for helping to make `healthcheck_endpoint` better! Before submit your bug, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->

### New bug checklist

- [ ] I have updated `on_strum-healthcheck` to the latest version
- [ ] I have read the [Contribution Guidelines](https://github.com/on-strum/ruby-on-strum-healthcheck/blob/master/CONTRIBUTING.md)
- [ ] I have read the [documentation](https://github.com/on-strum/ruby-on-strum-healthcheck/blob/master/README.md)
- [ ] I have searched for [existing GitHub issues](https://github.com/on-strum/ruby-on-strum-healthcheck/issues)
- [ ] I have updated `healthcheck_endpoint` to the latest version
- [ ] I have read the [Contribution Guidelines](https://github.com/obstools/healthcheck-endpoint/blob/master/CONTRIBUTING.md)
- [ ] I have read the [documentation](https://github.com/obstools/healthcheck-endpoint/blob/master/README.md)
- [ ] I have searched for [existing GitHub issues](https://github.com/obstools/healthcheck-endpoint/issues)

<!-- Please use next pattern for your bug report title: [BUG] Your bug report title here -->

### Bug description
<!-- Please include what's happening, expected behavior, and any relevant code samples -->

##### Complete output when running `on_strum-healthcheck`, including the stack trace and command used
##### Complete output when running `healthcheck_endpoint`, including the stack trace and command used

<details>
<pre>[INSERT OUTPUT HERE]</pre>
Expand Down
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ name: Feature request
about: Suggest an idea
title: "[FEATURE] Your feature request title here"
labels: enhancement
assignees: Serhiy-Nazarov
assignees: bestwebua

---

<!-- Thanks for helping to make `on_strum-healthcheck` better! Before submit your new feature request, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->
<!-- Thanks for helping to make `healthcheck_endpoint` better! Before submit your new feature request, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->

### New feature request checklist

- [ ] I have updated `on_strum-healthcheck` to the latest version
- [ ] I have read the [Contribution Guidelines](https://github.com/on-strum/ruby-on-strum-healthcheck/blob/master/CONTRIBUTING.md)
- [ ] I have read the [documentation](https://github.com/on-strum/ruby-on-strum-healthcheck/blob/master/README.md)
- [ ] I have searched for [existing GitHub issues](https://github.com/on-strum/ruby-on-strum-healthcheck/issues)
- [ ] I have updated `healthcheck_endpoint` to the latest version
- [ ] I have read the [Contribution Guidelines](https://github.com/obstools/healthcheck-endpoint/blob/master/CONTRIBUTING.md)
- [ ] I have read the [documentation](https://github.com/obstools/healthcheck-endpoint/blob/master/README.md)
- [ ] I have searched for [existing GitHub issues](https://github.com/obstools/healthcheck-endpoint/issues)

<!-- Please use next pattern for your feature request title: [FEATURE] Your feature request title here -->

Expand Down
14 changes: 7 additions & 7 deletions .github/ISSUE_TEMPLATE/issue_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ name: Issue report
about: Create a report to help us improve
title: "[ISSUE] Your issue report title here"
labels: ''
assignees: Serhiy-Nazarov
assignees: bestwebua

---

<!-- Thanks for helping to make `on_strum-healthcheck` better! Before submit your issue, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->
<!-- Thanks for helping to make `healthcheck_endpoint` better! Before submit your issue, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->

### New issue checklist

- [ ] I have updated `on_strum-healthcheck` to the latest version
- [ ] I have read the [Contribution Guidelines](https://github.com/on-strum/ruby-on-strum-healthcheck/blob/master/CONTRIBUTING.md)
- [ ] I have read the [documentation](https://github.com/on-strum/ruby-on-strum-healthcheck/blob/master/README.md)
- [ ] I have searched for [existing GitHub issues](https://github.com/on-strum/ruby-on-strum-healthcheck/issues)
- [ ] I have updated `healthcheck_endpoint` to the latest version
- [ ] I have read the [Contribution Guidelines](https://github.com/obstools/healthcheck-endpoint/blob/master/CONTRIBUTING.md)
- [ ] I have read the [documentation](https://github.com/obstools/healthcheck-endpoint/blob/master/README.md)
- [ ] I have searched for [existing GitHub issues](https://github.com/obstools/healthcheck-endpoint/issues)

<!-- Please use next pattern for your issue report title: [ISSUE] Your issue report title here -->

### Issue description
<!-- Please include what's happening, expected behavior, and any relevant code samples -->

##### Complete output when running `on_strum-healthcheck`, including the stack trace and command used
##### Complete output when running `healthcheck_endpoint`, including the stack trace and command used

<details>

Expand Down
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ name: Question
about: Ask your question to team
title: "[QUESTION] Your question title here"
labels: question
assignees: Serhiy-Nazarov
assignees: bestwebua

---

<!-- Thanks for helping to make `on_strum-healthcheck` better! Before submit your question, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->
<!-- Thanks for helping to make `healthcheck_endpoint` better! Before submit your question, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->

### New question checklist

- [ ] I have read the [Contribution Guidelines](https://github.com/on-strum/ruby-on-strum-healthcheck/blob/master/CONTRIBUTING.md)
- [ ] I have read the [documentation](https://github.com/on-strum/ruby-on-strum-healthcheck/blob/master/README.md)
- [ ] I have searched for [existing GitHub issues](https://github.com/on-strum/ruby-on-strum-healthcheck/issues)
- [ ] I have read the [Contribution Guidelines](https://github.com/obstools/healthcheck-endpoint/blob/master/CONTRIBUTING.md)
- [ ] I have read the [documentation](https://github.com/obstools/healthcheck-endpoint/blob/master/README.md)
- [ ] I have searched for [existing GitHub issues](https://github.com/obstools/healthcheck-endpoint/issues)

<!-- Please use next pattern for your question title: [QUESTION] Your question title here -->

Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
- [ ] My code follows the code style of this project
- [ ] My change requires a change to the documentation
- [ ] I have updated the documentation accordingly
- [ ] I have read the [**CONTRIBUTING** document](https://github.com/on-strum/ruby-on-strum-healthcheck/blob/master/CONTRIBUTING.md)
- [ ] I have read the [**CONTRIBUTING** document](https://github.com/obstools/healthcheck-endpoint/blob/master/CONTRIBUTING.md)
- [ ] I have added tests to cover my changes
- [ ] I have run `bundle exec rspec` from the root directory to see all new and existing tests pass
- [ ] I have run `rubocop` and `reek` to ensure the code style is valid
26 changes: 13 additions & 13 deletions .reek.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,34 @@ detectors:

ControlParameter:
exclude:
- OnStrum::Healthcheck::Configuration#raise_unless
- OnStrum::Healthcheck::Configuration#validator_argument_type
- HealthcheckEndpoint::Configuration#raise_unless
- HealthcheckEndpoint::Configuration#validator_argument_type

LongParameterList:
exclude:
- OnStrum::Healthcheck::Configuration#raise_unless
- HealthcheckEndpoint::Configuration#raise_unless

ManualDispatch:
exclude:
- OnStrum::Healthcheck::Configuration#validator_services_callable
- HealthcheckEndpoint::Configuration#validator_services_callable

TooManyConstants:
exclude:
- OnStrum::Healthcheck::Configuration
- HealthcheckEndpoint::Configuration

TooManyStatements:
exclude:
- OnStrum::Healthcheck::Configuration#validate_attribute
- HealthcheckEndpoint::Configuration#validate_attribute

UtilityFunction:
exclude:
- OnStrum::Healthcheck::Configuration#build_configuration_settings
- OnStrum::Healthcheck::Configuration#validator_argument_type
- OnStrum::Healthcheck::Configuration#validator_endpoint
- OnStrum::Healthcheck::Configuration#validator_http_status_failure
- OnStrum::Healthcheck::Configuration#validator_http_status_success
- OnStrum::Healthcheck::Configuration#validator_services_callable
- OnStrum::Healthcheck::Resolver#configuration
- HealthcheckEndpoint::Configuration#build_configuration_settings
- HealthcheckEndpoint::Configuration#validator_argument_type
- HealthcheckEndpoint::Configuration#validator_endpoint
- HealthcheckEndpoint::Configuration#validator_http_status_failure
- HealthcheckEndpoint::Configuration#validator_http_status_success
- HealthcheckEndpoint::Configuration#validator_services_callable
- HealthcheckEndpoint::Resolver#configuration

exclude_paths:
- spec/support/helpers
2 changes: 1 addition & 1 deletion .ruby-gemset
Original file line number Diff line number Diff line change
@@ -1 +1 @@
on_strum-healthcheck
healthcheck_endpoint
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.0] - 2024-10-25

### Updated

- Updated gem name to `healthcheck_endpoint`, namespace to `HealthcheckEndpoint`
- Updated gem runtime/development dependencies
- Updated gem documentation

## [0.3.0] - 2024-04-15

### Added
Expand Down Expand Up @@ -29,16 +37,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Added ability to use configuration with default settings without block passing

```ruby
OnStrum::Healthcheck.configure # It will create configuration instance with default settings
HealthcheckEndpoint.configure # It will create configuration instance with default settings
```

### Updated

- Updated `OnStrum::Healthcheck.configure`, tests
- Updated `HealthcheckEndpoint.configure`, tests
- Updated gem documentation

## [0.1.0] - 2024-03-26

### Added

- First release of `on_strum-healthcheck`.
- First release of `healthcheck_endpoint`.
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at <admin@on-strum.org>. All
reported by contacting the project team at <admin@bestweb.com.ua>. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Expand Down
Loading

0 comments on commit 1815c98

Please sign in to comment.