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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dd284083597e8564ff0ebb0b5f22e7f8ecd0bbd
|
4
|
+
data.tar.gz: 941c1740e843d4cb151b7165ce9bb78279e7bc7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef8bd0be46c38901593884fb28ed5f50c994df8c32298565afda225436b453e9970ba0ba833d71e211698c65b8f363f580f25e93643d958f7a0032e177fbfd6c
|
7
|
+
data.tar.gz: 4a9a270da4c1d11e6c14dcbac488d0078a202fc4d8496efee86a7a4d098bac09cf75a296af662ae6f806a852cb493246afb03fd1f7dcf0e3a35516fc5c859b3f
|
@@ -1,6 +1,10 @@
|
|
1
1
|
module HealthMonitor
|
2
2
|
class HealthController < ActionController::Base
|
3
|
-
|
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
|
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
|
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:
|
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: '
|
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: '
|
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.
|
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,
|