health-monitor-rails 8.7.0 → 8.8.0

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
  SHA256:
3
- metadata.gz: cd74179b89d99301f475683246ff83d0a3759aa0fa88b3cca8c605da2079adc5
4
- data.tar.gz: 40fc5f9689445094665557d61149a462f5890be15374c522522e8edf99e53177
3
+ metadata.gz: 77979ed6f9ee4056c83680337b6d712f5c0047c8f38d1f74fc399e81da32afd7
4
+ data.tar.gz: c6a19697a6f9351cdb1172044b3f5409325f94bc80548a94e4caa7b3bd3832e7
5
5
  SHA512:
6
- metadata.gz: 558436c244e5d4826d2c3eafe2c10b6ca8c500b2a0db6a8c774b52b16de70b66ac66d8d585d8a3e42cb39c45697a0da3aa4e4b5f9e7aa94f33b92edfaad692bf
7
- data.tar.gz: b7dea49ffcd7c64fe593bf9ec471ed2af43816bd682a2761badfb195b36dd717b683f94805d014900659f17241f268271efb5dbe21221ad11dc9545d387ee3d3
6
+ metadata.gz: 878ed037409dbd197461a388688f31316ee428fed057467195677bef8e69ecaa0e6ed3b3e7bdf3c805e185eb61148e5aad6af52072525d224bf055774a87ab51
7
+ data.tar.gz: 941f6ea6c5cd1efe8e095d3e459873366293a3167227d0684a49341997a69e08743850b92e39b1dc0e847e1e042e7e1002d6acac2b4639990899a588c7b6cd1c
data/README.md CHANGED
@@ -227,13 +227,24 @@ end
227
227
  # Redis
228
228
  HealthMonitor.configure do |config|
229
229
  config.redis.configure do |redis_config|
230
- redis_config.connection = Redis.current # use your custom redis connection
231
- redis_config.url = 'redis://user:pass@example.redis.com:90210/' # or URL
230
+ redis_config.connection = Redis.current # Use your custom redis connection
232
231
  redis_config.max_used_memory = 200 # Megabytes
233
232
  end
234
233
  end
235
234
  ```
236
235
 
236
+ Additionally, you can configure an explicit URL:
237
+
238
+ ```ruby
239
+ # Redis
240
+ HealthMonitor.configure do |config|
241
+ config.redis.configure do |redis_config|
242
+ redis_config.url = 'redis://user:pass@example.redis.com:90210/'
243
+ redis_config.max_used_memory = 200
244
+ end
245
+ end
246
+ ```
247
+
237
248
  The currently supported settings are:
238
249
 
239
250
  #### Sidekiq
@@ -243,9 +254,11 @@ The currently supported settings are:
243
254
 
244
255
  #### Redis
245
256
 
246
- * `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
257
+ * `url`: the URL used to connect to your Redis instance. Note, that this is an optional configuration and will use the default connection if not specified. You can also use `url` to explicitly configure authentication (e.g., `'redis://user:pass@example.redis.com:90210/'`).
247
258
  * `connection`: Use custom Redis connection (e.g., `Redis.current`).
248
- * `max_used_memory`: Set maximum expected memory usage of Redis in megabytes. Prevent memory leaks and keys overstore.
259
+ * `max_used_memory`: Set maximum expected memory usage of Redis in megabytes. Prevent memory leaks and keys over storing.
260
+
261
+ Please note that `url` or `connection` can't be used at the same time.
249
262
 
250
263
  #### Delayed Job
251
264
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HealthMonitor
4
- VERSION = '8.7.0'
4
+ VERSION = '8.8.0'
5
5
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: health-monitor-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.7.0
4
+ version: 8.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonid Beder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-22 00:00:00.000000000 Z
11
+ date: 2019-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -292,8 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
292
292
  - !ruby/object:Gem::Version
293
293
  version: '0'
294
294
  requirements: []
295
- rubyforge_project:
296
- rubygems_version: 2.7.8
295
+ rubygems_version: 3.0.3
297
296
  signing_key:
298
297
  specification_version: 4
299
298
  summary: Health monitoring Rails plug-in, which checks various services (db, cache,