health_bit 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/health_bit/check_error.rb +2 -2
- data/lib/health_bit/version.rb +1 -1
- data/lib/health_bit.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 712c992c9824246024965917be0bf884a757b163a5b4d027226fa15d090c886b
|
|
4
|
+
data.tar.gz: 3d9f192b7a93bed3dd706c8f7dddc965b446c40069b440d05353f585efac66be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3731cea2f52998e7b54202dbcf7f2b4cae9ad82772ba23be92bb1290ac2858dc71250b0eec4d79651cbfb6073fb223f2f443af09a4e34a33dd945d87eb36b43e
|
|
7
|
+
data.tar.gz: a59fa6db73a4888cdb3401abe2391d6ec73d44ac3a5023fd0806cf10d638e96e659a242f01de19fb7b8f9da349841613112b5e4eabe2d738ca7b837796a915f4
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Key differences:
|
|
|
13
13
|
* can be used with rails, sinatra or any other rack application
|
|
14
14
|
* can add custom checks
|
|
15
15
|
* can add multiple endpoints with independent checks
|
|
16
|
-
* can use any
|
|
16
|
+
* can use any rack middleware (such as http basic auth, IP whitelist)
|
|
17
17
|
|
|
18
18
|
## Toc
|
|
19
19
|
|
|
@@ -44,7 +44,7 @@ gem 'health_bit'
|
|
|
44
44
|
HealthBit.configure do |c|
|
|
45
45
|
c.success_text = '%<count>d checks passed 🎉'
|
|
46
46
|
c.headers = {
|
|
47
|
-
'Content-Type' => 'text/
|
|
47
|
+
'Content-Type' => 'text/plain;charset=utf-8',
|
|
48
48
|
'Cache-Control' => 'private,max-age=0,must-revalidate,no-store'
|
|
49
49
|
}
|
|
50
50
|
c.success_code = 200
|
|
@@ -22,7 +22,7 @@ module HealthBit
|
|
|
22
22
|
describe_exception(io)
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
io.string
|
|
25
|
+
io.string.chomp
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
private
|
|
@@ -31,7 +31,7 @@ module HealthBit
|
|
|
31
31
|
return if exception.nil?
|
|
32
32
|
|
|
33
33
|
io.puts exception.inspect
|
|
34
|
-
io.puts exception.backtrace.join("\n")
|
|
34
|
+
io.puts Array(exception.backtrace).join("\n")
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
end
|
data/lib/health_bit/version.rb
CHANGED
data/lib/health_bit.rb
CHANGED
|
@@ -51,7 +51,7 @@ module HealthBit
|
|
|
51
51
|
MSG
|
|
52
52
|
|
|
53
53
|
raise ArgumentError, <<~MSG unless handler || block
|
|
54
|
-
|
|
54
|
+
Nor <handler> or <block> were passed to the <#{name}> check
|
|
55
55
|
MSG
|
|
56
56
|
|
|
57
57
|
checks.push(Check.new(name, handler || block))
|