healthier 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +33 -0
- data/app/services/basic_auth_service.rb +1 -1
- data/lib/healthier/engine.rb +2 -2
- data/lib/healthier/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3d31d17199c50606705f54e8711cce324edaa9a2e8e56a557d73529d976ef83
|
4
|
+
data.tar.gz: d63895420862e07ca45402790400cbfea4c96628827f8b157506491d14b06823
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a5b5e7f4a60fdf90c0ba443761f9a27ba2992b4ef5ebb534d92825df2409d9fcaa029962867ccab53ed8deef8ecf344b0557dd76d5dc19fc6428db0f472ea50
|
7
|
+
data.tar.gz: 3866fec75e625ca437d672354632227901629641a97c4d04b7fb0559aa1594baee27d365e4e5fc6c59961e11009f7608560cef5df9f8a4851cc9d5c7501f52b0
|
data/README.md
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
# Healthier
|
2
|
+
|
2
3
|
Short description and motivation.
|
3
4
|
|
4
5
|
## Usage
|
6
|
+
|
5
7
|
How to use my plugin.
|
6
8
|
|
7
9
|
## Installation
|
10
|
+
|
8
11
|
Add this line to your application's Gemfile:
|
9
12
|
|
10
13
|
```ruby
|
@@ -12,17 +15,47 @@ gem "healthier"
|
|
12
15
|
```
|
13
16
|
|
14
17
|
And then execute:
|
18
|
+
|
15
19
|
```bash
|
16
20
|
$ bundle
|
17
21
|
```
|
18
22
|
|
19
23
|
Or install it yourself as:
|
24
|
+
|
20
25
|
```bash
|
21
26
|
$ gem install healthier
|
22
27
|
```
|
23
28
|
|
29
|
+
In your application routes.rb file:
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
mount Healthier::Engine => '/healthier'
|
33
|
+
```
|
34
|
+
|
35
|
+
In the config directory, make a healthier folder and create a file
|
36
|
+
called services.yml:
|
37
|
+
|
38
|
+
```yaml
|
39
|
+
---
|
40
|
+
healthier:
|
41
|
+
depends_on:
|
42
|
+
- name: 'postgresql'
|
43
|
+
- name: 'mongodb'
|
44
|
+
- name: 'redis'
|
45
|
+
- name: 'rabbitmq'
|
46
|
+
```
|
47
|
+
|
48
|
+
ENVs for basic authentication:
|
49
|
+
|
50
|
+
```bash
|
51
|
+
USERNAME: 'demouser'
|
52
|
+
PASSWORD: 'demouser@2023'
|
53
|
+
```
|
54
|
+
|
24
55
|
## Contributing
|
56
|
+
|
25
57
|
Contribution directions go here.
|
26
58
|
|
27
59
|
## License
|
60
|
+
|
28
61
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/lib/healthier/engine.rb
CHANGED
@@ -31,8 +31,8 @@ module Healthier
|
|
31
31
|
FAILURE = 400
|
32
32
|
|
33
33
|
def ping!
|
34
|
-
conf['depends_on'].each_with_object({}) do |
|
35
|
-
obj[
|
34
|
+
conf['depends_on'].each_with_object({}) do |dependant, obj|
|
35
|
+
obj[dependant['name']] = ping_it(dependant['name'])
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
data/lib/healthier/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: healthier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nima Yonten
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|