health-monitor-rails 8.6.0 → 8.6.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
  SHA256:
3
- metadata.gz: c239782e7f94cdcd5fdfe0b17a224e4ba3664ec09c1bb983b77a96a522ba7475
4
- data.tar.gz: 13ee80c95c74f1233447e57fca20a8dcb50f2e08151b65cd318f01e091cd8550
3
+ metadata.gz: 3deaec4ae2728a5955ac19b59c7f65c4cbdbe99882b7afa3d22600d650cc796a
4
+ data.tar.gz: eaad84f4ac2cd63a38abc7b7f5e3b7ba146aa525db829c50d9d4752c68a785d8
5
5
  SHA512:
6
- metadata.gz: bbc4f695cde8357bde5ecaed4a26080313697e522216469b9560520bd38cbba5ef8b147db92963df8dd5e029b339b99a69c361af9a21e5729046d55594ae25a1
7
- data.tar.gz: 33960930ba4e405ab865345c971a2e57e63bcf3eb7196aeb4e5f6f3d5876567334dd57a39e0d2d6cb7f521ff3d6baf973baf8be2a90d31db0ca9da14fbe04281
6
+ metadata.gz: 4a81f5d9779e9df710b839a017816922b00faeac099e22c42ee87e9a9769d4bb897c0ad9393f3e662b7992b823bbd49410ebef844f860f36dd55def2d92df3a1
7
+ data.tar.gz: af25561d78845aabbfd4d81fcc6298d3ddebcd081196da6075e9e8085b6e73999147e45865fdb8a3c9193999e52ccaf503d4d737994ead70b54fc6fe21e1ea31
data/Rakefile CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env rake
2
+ # frozen_string_literal: true
3
+
2
4
  require 'bundler/gem_tasks'
3
5
  require 'rspec/core/rake_task'
4
6
  require 'rubocop/rake_task'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HealthMonitor
2
4
  class HealthController < ActionController::Base
3
5
  protect_from_forgery with: :exception
data/config/routes.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  HealthMonitor::Engine.routes.draw do
2
4
  controller :health do
3
5
  get :check
@@ -1 +1,9 @@
1
- require 'health_monitor/engine' # rubocop:disable Naming/FileName
1
+ # rubocop:disable Naming/FileName
2
+
3
+ # frozen_string_literal: true
4
+
5
+ require 'health_monitor/engine'
6
+ require 'health_monitor/configuration'
7
+ require 'health_monitor/monitor'
8
+
9
+ # rubocop:enable Naming/FileName
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HealthMonitor
2
4
  class Configuration
3
5
  PROVIDERS = %i[cache database delayed_job redis resque sidekiq].freeze
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HealthMonitor
2
4
  class Engine < ::Rails::Engine
3
5
  isolate_namespace HealthMonitor
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'health_monitor/configuration'
2
4
 
3
5
  module HealthMonitor
@@ -43,7 +45,7 @@ module HealthMonitor
43
45
  status: STATUSES[:ok]
44
46
  }
45
47
  rescue StandardError => e
46
- configuration.error_callback.call(e) if configuration.error_callback
48
+ configuration.error_callback&.call(e)
47
49
 
48
50
  {
49
51
  name: provider.provider_name,
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HealthMonitor
2
4
  module Providers
3
5
  class Base
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'health_monitor/providers/base'
2
4
 
3
5
  module HealthMonitor
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'health_monitor/providers/base'
2
4
 
3
5
  module HealthMonitor
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'health_monitor/providers/base'
2
4
  require 'delayed_job'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'health_monitor/providers/base'
2
4
 
3
5
  module HealthMonitor
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'health_monitor/providers/base'
2
4
  require 'resque'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'health_monitor/providers/base'
2
4
  require 'sidekiq/api'
3
5
 
@@ -7,7 +9,7 @@ module HealthMonitor
7
9
 
8
10
  class Sidekiq < Base
9
11
  class Configuration
10
- DEFAULT_QUEUE_NAME = 'default'.freeze
12
+ DEFAULT_QUEUE_NAME = 'default'
11
13
  DEFAULT_LATENCY_TIMEOUT = 30
12
14
  DEFAULT_QUEUES_SIZE = 100
13
15
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HealthMonitor
4
- VERSION = '8.6.0'.freeze
4
+ VERSION = '8.6.1'
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: 8.6.0
4
+ version: 8.6.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: 2019-05-09 00:00:00.000000000 Z
11
+ date: 2019-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails