heartcheck 1.2.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG +4 -0
- data/heartcheck.gemspec +1 -0
- data/lib/heartcheck/app.rb +2 -1
- data/lib/heartcheck/controllers/environment.rb +17 -0
- data/lib/heartcheck/version.rb +1 -1
- metadata +24 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e666364972b1ce6c0870fb04f3776741fa6ef036
|
4
|
+
data.tar.gz: 25593711517ef4ab307911bdd632989a603c1f71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46409b36ce917552188ff52ee01a318c20f574f5009d76bdbea2becfd0bf9a474e7be3b92c5f001a87ad66000e248d0e7c667ec643d4facd8855b7efd620ce34
|
7
|
+
data.tar.gz: 0c92c86fb761879239595a79c75962bc93c7a1c6178b8c43224ef1d16b6ee8a9e3d85229226ad8cd8d7ee542e039b4146a61d4155740feffab880a5dee9a4c2d
|
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
data/heartcheck.gemspec
CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.add_runtime_dependency 'rack', '>= 1.4.0', '< 2.1'
|
21
21
|
spec.add_runtime_dependency 'multi_json', '~> 1.0'
|
22
22
|
spec.add_runtime_dependency 'net-telnet', '~> 0.1.1'
|
23
|
+
spec.add_runtime_dependency 'sys-uname', '~> 1.0', '>= 1.0.3'
|
23
24
|
|
24
25
|
spec.add_development_dependency 'rake'
|
25
26
|
spec.add_development_dependency 'pry-nav', '~> 0.2.4'
|
data/lib/heartcheck/app.rb
CHANGED
@@ -16,7 +16,8 @@ module Heartcheck
|
|
16
16
|
'/functional' => Controllers::Functional,
|
17
17
|
'/dev' => Controllers::Dev,
|
18
18
|
'/info' => Controllers::Info,
|
19
|
-
'/health_check' => Controllers::HealthCheck
|
19
|
+
'/health_check' => Controllers::HealthCheck,
|
20
|
+
'/environment' => Controllers::Environment
|
20
21
|
}
|
21
22
|
|
22
23
|
# Sets up the rack application.
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'sys-uname'
|
2
|
+
|
3
|
+
module Heartcheck
|
4
|
+
module Controllers
|
5
|
+
class Environment < Base
|
6
|
+
def index
|
7
|
+
MultiJson.dump(
|
8
|
+
{
|
9
|
+
:system_info => Hash[Sys::Uname.uname.each_pair.to_a],
|
10
|
+
:ruby_version => RUBY_VERSION,
|
11
|
+
:rails_version => defined?(Rails) ? Rails::VERSION::STRING : '(none)'
|
12
|
+
}
|
13
|
+
)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/heartcheck/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heartcheck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Locaweb
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -58,6 +58,26 @@ dependencies:
|
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: 0.1.1
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: sys-uname
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '1.0'
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 1.0.3
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '1.0'
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 1.0.3
|
61
81
|
- !ruby/object:Gem::Dependency
|
62
82
|
name: rake
|
63
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -217,6 +237,7 @@ files:
|
|
217
237
|
- lib/heartcheck/checks/watch_file.rb
|
218
238
|
- lib/heartcheck/controllers/base.rb
|
219
239
|
- lib/heartcheck/controllers/dev.rb
|
240
|
+
- lib/heartcheck/controllers/environment.rb
|
220
241
|
- lib/heartcheck/controllers/essential.rb
|
221
242
|
- lib/heartcheck/controllers/functional.rb
|
222
243
|
- lib/heartcheck/controllers/health_check.rb
|
@@ -254,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
254
275
|
version: '0'
|
255
276
|
requirements: []
|
256
277
|
rubyforge_project:
|
257
|
-
rubygems_version: 2.5.
|
278
|
+
rubygems_version: 2.5.2
|
258
279
|
signing_key:
|
259
280
|
specification_version: 4
|
260
281
|
summary: A simple way to check if your app is runnig like as expected.
|