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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5703be642e9f810274e19ac00eae715790dada42516af3108fe905455ab73d96
4
- data.tar.gz: 3153543397e42dc5c3a8418c8d071d3927691569da8095335fd407d17b99e48c
3
+ metadata.gz: 712c992c9824246024965917be0bf884a757b163a5b4d027226fa15d090c886b
4
+ data.tar.gz: 3d9f192b7a93bed3dd706c8f7dddc965b446c40069b440d05353f585efac66be
5
5
  SHA512:
6
- metadata.gz: 8ac08343cdfb9d29f0ce99bf762fe86d3b71a479ca3a7a9e3f6559f8d7bb25b08ed33f2b2d8c63c66f56b2d56792699c9bc39d88d8f591c9470a05d9d9f43efd
7
- data.tar.gz: 07f6dce1501dd053ffaaf1eca7a6c665cb095b0302786aeb3cc6336945a7bdec15d32203b25cb9983c152abc5030a116f6bbaf19301b09a121de13344133981c
6
+ metadata.gz: 3731cea2f52998e7b54202dbcf7f2b4cae9ad82772ba23be92bb1290ac2858dc71250b0eec4d79651cbfb6073fb223f2f443af09a4e34a33dd945d87eb36b43e
7
+ data.tar.gz: a59fa6db73a4888cdb3401abe2391d6ec73d44ac3a5023fd0806cf10d638e96e659a242f01de19fb7b8f9da349841613112b5e4eabe2d738ca7b837796a915f4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- health_bit (0.1.6)
4
+ health_bit (0.1.7)
5
5
  rack
6
6
 
7
7
  GEM
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 Rack middleware (http authorization, ip address check)
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/html;charset=utf-8',
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HealthBit
4
- VERSION = '0.1.6'
4
+ VERSION = '0.1.7'
5
5
  end
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
- Not <handler> or <block> were passed to the <#{name}> check
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))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: health_bit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aliaksandr Shylau