on_strum-healthcheck 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +213 -0
  3. data/.circleci/gemspecs/compatible +25 -0
  4. data/.circleci/gemspecs/latest +33 -0
  5. data/.circleci/linter_configs/.bundler-audit.yml +4 -0
  6. data/.circleci/linter_configs/.commitspell.yml +30 -0
  7. data/.circleci/linter_configs/.cspell.yml +31 -0
  8. data/.circleci/linter_configs/.fasterer.yml +4 -0
  9. data/.circleci/linter_configs/.lefthook.yml +44 -0
  10. data/.circleci/linter_configs/.markdownlint.yml +9 -0
  11. data/.circleci/linter_configs/.rubocop.yml +137 -0
  12. data/.circleci/linter_configs/.yamllint.yml +7 -0
  13. data/.circleci/scripts/changeloglint.sh +22 -0
  14. data/.circleci/scripts/commitspell.sh +22 -0
  15. data/.circleci/scripts/release.sh +69 -0
  16. data/.circleci/scripts/set_publisher_credentials.sh +12 -0
  17. data/.codeclimate.yml +17 -0
  18. data/.github/BRANCH_NAMING_CONVENTION.md +36 -0
  19. data/.github/DEVELOPMENT_ENVIRONMENT_GUIDE.md +26 -0
  20. data/.github/ISSUE_TEMPLATE/bug_report.md +28 -0
  21. data/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
  22. data/.github/ISSUE_TEMPLATE/issue_report.md +32 -0
  23. data/.github/ISSUE_TEMPLATE/question.md +22 -0
  24. data/.github/PULL_REQUEST_TEMPLATE.md +49 -0
  25. data/.gitignore +11 -0
  26. data/.reek.yml +39 -0
  27. data/.rspec +2 -0
  28. data/.ruby-gemset +1 -0
  29. data/.ruby-version +1 -0
  30. data/CHANGELOG.md +9 -0
  31. data/CODE_OF_CONDUCT.md +74 -0
  32. data/CONTRIBUTING.md +48 -0
  33. data/Gemfile +5 -0
  34. data/LICENSE.txt +21 -0
  35. data/README.md +224 -0
  36. data/Rakefile +8 -0
  37. data/bin/console +15 -0
  38. data/bin/setup +8 -0
  39. data/lib/on_strum/healthcheck/configuration.rb +141 -0
  40. data/lib/on_strum/healthcheck/core.rb +22 -0
  41. data/lib/on_strum/healthcheck/error/configuration/argument_type.rb +15 -0
  42. data/lib/on_strum/healthcheck/error/configuration/enpoint_pattern.rb +15 -0
  43. data/lib/on_strum/healthcheck/error/configuration/http_status_failure.rb +15 -0
  44. data/lib/on_strum/healthcheck/error/configuration/http_status_success.rb +15 -0
  45. data/lib/on_strum/healthcheck/error/configuration/not_callable_service.rb +15 -0
  46. data/lib/on_strum/healthcheck/error/configuration/not_configured.rb +15 -0
  47. data/lib/on_strum/healthcheck/error/configuration/unknown_service.rb +15 -0
  48. data/lib/on_strum/healthcheck/rack_middleware.rb +28 -0
  49. data/lib/on_strum/healthcheck/resolver.rb +85 -0
  50. data/lib/on_strum/healthcheck/version.rb +7 -0
  51. data/lib/on_strum/healthcheck.rb +25 -0
  52. data/on_strum-healthcheck.gemspec +28 -0
  53. metadata +164 -0
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/on_strum/healthcheck/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'on_strum-healthcheck'
7
+ spec.version = OnStrum::Healthcheck::VERSION
8
+ spec.authors = ['Vladislav Trotsenko']
9
+ spec.email = %w[admin@on-strum.org]
10
+ spec.summary = %(Simple configurable application healthcheck rack middleware)
11
+ spec.description = %(Simple configurable application healthcheck rack middleware.)
12
+ spec.homepage = 'https://github.com/on-strum/ruby-on-strum-healthcheck'
13
+ spec.license = 'MIT'
14
+
15
+ current_ruby_version = ::Gem::Version.new(::RUBY_VERSION)
16
+ ffaker_version = current_ruby_version >= ::Gem::Version.new('3.0.0') ? '~> 2.23' : '~> 2.21'
17
+
18
+ spec.required_ruby_version = '>= 2.5.0'
19
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ spec.require_paths = %w[lib]
21
+
22
+ spec.add_runtime_dependency 'rack', '>= 2.0.1'
23
+
24
+ spec.add_development_dependency 'ffaker', ffaker_version
25
+ spec.add_development_dependency 'json_matchers', '~> 0.11.1'
26
+ spec.add_development_dependency 'rake', '~> 13.1'
27
+ spec.add_development_dependency 'rspec', '~> 3.13'
28
+ end
metadata ADDED
@@ -0,0 +1,164 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: on_strum-healthcheck
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Vladislav Trotsenko
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-03-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rack
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 2.0.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 2.0.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: ffaker
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.21'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.21'
41
+ - !ruby/object:Gem::Dependency
42
+ name: json_matchers
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.11.1
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.11.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '13.1'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '13.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.13'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.13'
83
+ description: Simple configurable application healthcheck rack middleware.
84
+ email:
85
+ - admin@on-strum.org
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".circleci/config.yml"
91
+ - ".circleci/gemspecs/compatible"
92
+ - ".circleci/gemspecs/latest"
93
+ - ".circleci/linter_configs/.bundler-audit.yml"
94
+ - ".circleci/linter_configs/.commitspell.yml"
95
+ - ".circleci/linter_configs/.cspell.yml"
96
+ - ".circleci/linter_configs/.fasterer.yml"
97
+ - ".circleci/linter_configs/.lefthook.yml"
98
+ - ".circleci/linter_configs/.markdownlint.yml"
99
+ - ".circleci/linter_configs/.rubocop.yml"
100
+ - ".circleci/linter_configs/.yamllint.yml"
101
+ - ".circleci/scripts/changeloglint.sh"
102
+ - ".circleci/scripts/commitspell.sh"
103
+ - ".circleci/scripts/release.sh"
104
+ - ".circleci/scripts/set_publisher_credentials.sh"
105
+ - ".codeclimate.yml"
106
+ - ".github/BRANCH_NAMING_CONVENTION.md"
107
+ - ".github/DEVELOPMENT_ENVIRONMENT_GUIDE.md"
108
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
109
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
110
+ - ".github/ISSUE_TEMPLATE/issue_report.md"
111
+ - ".github/ISSUE_TEMPLATE/question.md"
112
+ - ".github/PULL_REQUEST_TEMPLATE.md"
113
+ - ".gitignore"
114
+ - ".reek.yml"
115
+ - ".rspec"
116
+ - ".ruby-gemset"
117
+ - ".ruby-version"
118
+ - CHANGELOG.md
119
+ - CODE_OF_CONDUCT.md
120
+ - CONTRIBUTING.md
121
+ - Gemfile
122
+ - LICENSE.txt
123
+ - README.md
124
+ - Rakefile
125
+ - bin/console
126
+ - bin/setup
127
+ - lib/on_strum/healthcheck.rb
128
+ - lib/on_strum/healthcheck/configuration.rb
129
+ - lib/on_strum/healthcheck/core.rb
130
+ - lib/on_strum/healthcheck/error/configuration/argument_type.rb
131
+ - lib/on_strum/healthcheck/error/configuration/enpoint_pattern.rb
132
+ - lib/on_strum/healthcheck/error/configuration/http_status_failure.rb
133
+ - lib/on_strum/healthcheck/error/configuration/http_status_success.rb
134
+ - lib/on_strum/healthcheck/error/configuration/not_callable_service.rb
135
+ - lib/on_strum/healthcheck/error/configuration/not_configured.rb
136
+ - lib/on_strum/healthcheck/error/configuration/unknown_service.rb
137
+ - lib/on_strum/healthcheck/rack_middleware.rb
138
+ - lib/on_strum/healthcheck/resolver.rb
139
+ - lib/on_strum/healthcheck/version.rb
140
+ - on_strum-healthcheck.gemspec
141
+ homepage: https://github.com/on-strum/ruby-on-strum-healthcheck
142
+ licenses:
143
+ - MIT
144
+ metadata: {}
145
+ post_install_message:
146
+ rdoc_options: []
147
+ require_paths:
148
+ - lib
149
+ required_ruby_version: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: 2.5.0
154
+ required_rubygems_version: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ requirements: []
160
+ rubygems_version: 3.2.15
161
+ signing_key:
162
+ specification_version: 4
163
+ summary: Simple configurable application healthcheck rack middleware
164
+ test_files: []