health-monitor-rails 7.1.0 → 7.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c8cfa2355d53ebd52b3fcfca54155d487327ca9
4
- data.tar.gz: d2ebfea5cce81c6873e2238c9c5a1118b1a3bda4
3
+ metadata.gz: cb156b2729dc3b9485d53a68c7abb9f6ae8e690a
4
+ data.tar.gz: 27f6d1f555bcfef985a0196a29ebeb3e30c7b482
5
5
  SHA512:
6
- metadata.gz: 4d545e866dd23e34b6461f8c6d2b5f4750322dfce9e0915d510b45d62b092dcd14f69dd5ed8fc5c95683ccd6275a3878c0c6762ccf97df1277b82ed0b23ee8fe
7
- data.tar.gz: aab2f11832003e6329e916a3ae6b4a01502cab105f16463b6c4bedf39e53ace458ae414bda30b103f370581d65051bda88419c4630683f608ffab4200bdea367
6
+ metadata.gz: cb09d045670e2ad1bb6cd42ac915291347a717bf47f858b64dd02d7494371af55e7e55ec0abd01e8b291a5b5b6af3fc913ea8ee97980aed73b66d61e1fd415de
7
+ data.tar.gz: 8283fb8dfbfd8e3aa2e388deb2c48490a1588d322f063a196c783ea5daffb08d33061b9d2095dd641ee3362d79636af030b5f04251f2f34cbcd6f044f49c0605
data/README.md CHANGED
@@ -15,7 +15,7 @@ Mounting this gem will add a '/check' route to your application, which can be us
15
15
 
16
16
  ![alt example](/docs/screenshots/example.png "HTML Status Page")
17
17
 
18
- ### JSON response
18
+ ### JSON Response
19
19
 
20
20
  ```bash
21
21
  >> curl -s http://localhost:3000/check.json | json_pp
@@ -50,7 +50,7 @@ Mounting this gem will add a '/check' route to your application, which can be us
50
50
  }
51
51
  ```
52
52
 
53
- ### XML response
53
+ ### XML Response
54
54
 
55
55
  ```bash
56
56
  >> curl -s http://localhost:3000/check.xml
@@ -113,7 +113,7 @@ You can mount this inside your app routes by adding this to config/routes.rb:
113
113
  mount HealthMonitor::Engine, at: '/'
114
114
  ```
115
115
 
116
- ## Supported service providers
116
+ ## Supported Service Providers
117
117
  The following services are currently supported:
118
118
  * DB
119
119
  * Cache
@@ -123,7 +123,7 @@ The following services are currently supported:
123
123
 
124
124
  ## Configuration
125
125
 
126
- ### Adding providers
126
+ ### Adding Providers
127
127
  By default, only the database check is enabled. You can add more service providers by explicitly enabling them via an initializer:
128
128
 
129
129
  ```ruby
@@ -143,7 +143,7 @@ HealthMonitor.configure do |config|
143
143
  end
144
144
  ```
145
145
 
146
- ### Providers configuration
146
+ ### Provider Configuration
147
147
 
148
148
  Some of the providers can also accept additional configuration:
149
149
 
@@ -174,7 +174,7 @@ The currently supported settings are:
174
174
  * `url`: the url used to connect to your Redis instance - note, this is an optional configuration and will use the default connection if not specified
175
175
 
176
176
 
177
- ### Adding a custom provider
177
+ ### Adding a Custom Provider
178
178
  It's also possible to add custom health check providers suited for your needs (of course, it's highly appreciated and encouraged if you'd contribute useful providers to the project).
179
179
 
180
180
  In order to add a custom provider, you'd need to:
@@ -196,7 +196,7 @@ HealthMonitor.configure do |config|
196
196
  end
197
197
  ```
198
198
 
199
- ### Adding a custom error callback
199
+ ### Adding a Custom Error Callback
200
200
  If you need to perform any additional error handling (for example, for additional error reporting), you can configure a custom error callback:
201
201
 
202
202
  ```ruby
@@ -209,7 +209,7 @@ HealthMonitor.configure do |config|
209
209
  end
210
210
  ```
211
211
 
212
- ### Adding authentication credentials
212
+ ### Adding Authentication Credentials
213
213
  By default, the `/check` endpoint is not authenticated and is available to any user. You can authenticate using HTTP Basic Auth by providing authentication credentials:
214
214
 
215
215
  ```ruby
@@ -221,7 +221,7 @@ HealthMonitor.configure do |config|
221
221
  end
222
222
  ```
223
223
 
224
- ### Adding environment variables
224
+ ### Adding Environment Variables
225
225
  By default, environment variables is `nil`, so if you'd want to include additional parameters in the results JSON, all you need is to provide a `Hash` with your custom environment variables:
226
226
 
227
227
  ```ruby
@@ -233,7 +233,7 @@ HealthMonitor.configure do |config|
233
233
  end
234
234
  ```
235
235
 
236
- ### Monitoring script
236
+ ### Monitoring Script
237
237
 
238
238
  A Nagios/Shinken/Icinga/Icinga2 plugin is available in `extra` directory.
239
239
 
@@ -1,5 +1,7 @@
1
1
  module HealthMonitor
2
2
  class HealthController < ActionController::Base
3
+ protect_from_forgery :with => :exception
4
+
3
5
  if Rails.version.starts_with? '3'
4
6
  before_filter :authenticate_with_basic_auth
5
7
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HealthMonitor
4
- VERSION = '7.1.0'.freeze
4
+ VERSION = '7.1.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: health-monitor-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0
4
+ version: 7.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonid Beder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-13 00:00:00.000000000 Z
11
+ date: 2017-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails