health-monitor-rails 1.0.1 → 1.1.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
  SHA1:
3
- metadata.gz: 4e2a476f47b6605df29cb29a4408c2b389bc812d
4
- data.tar.gz: 0993fdb74e79c3c38fa950d61325aba13faa87aa
3
+ metadata.gz: 8dd284083597e8564ff0ebb0b5f22e7f8ecd0bbd
4
+ data.tar.gz: 941c1740e843d4cb151b7165ce9bb78279e7bc7c
5
5
  SHA512:
6
- metadata.gz: 97b645de27f0669cede3665ff9db18dfc529d1de3a19fca1e07b0bac873ca4a861dc5e8a91a3fa0a910a40ffe5afe71c6c1bf120830e9aabe700a2cbab3284bd
7
- data.tar.gz: 153966f285633c220ef165538c1f7bc8bfef676b7e1421efc22b48b7833fb85d964ca75bd11689e8f46d43f8a04a87696bc161def82c9fbd4e3da32788baacc9
6
+ metadata.gz: ef8bd0be46c38901593884fb28ed5f50c994df8c32298565afda225436b453e9970ba0ba833d71e211698c65b8f363f580f25e93643d958f7a0032e177fbfd6c
7
+ data.tar.gz: 4a9a270da4c1d11e6c14dcbac488d0078a202fc4d8496efee86a7a4d098bac09cf75a296af662ae6f806a852cb493246afb03fd1f7dcf0e3a35516fc5c859b3f
@@ -1,6 +1,10 @@
1
1
  module HealthMonitor
2
2
  class HealthController < ActionController::Base
3
- before_action :authenticate_with_basic_auth
3
+ if Rails.version.starts_with? '3'
4
+ before_filter :authenticate_with_basic_auth
5
+ else
6
+ before_action :authenticate_with_basic_auth
7
+ end
4
8
 
5
9
  # GET /health/check
6
10
  def check
@@ -1,3 +1,3 @@
1
1
  module HealthMonitor
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  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: 1.0.1
4
+ version: 1.1.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: 2014-12-20 00:00:00.000000000 Z
11
+ date: 2015-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: '3.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '4.2'
26
+ version: '3.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -207,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  version: '0'
208
208
  requirements: []
209
209
  rubyforge_project:
210
- rubygems_version: 2.4.1
210
+ rubygems_version: 2.4.6
211
211
  signing_key:
212
212
  specification_version: 4
213
213
  summary: Health monitoring Rails plug-in, which checks various services (db, cache,