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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 703ba9dc51d6fbfa46b52642bc0889abdf902e21
4
- data.tar.gz: 5d2348f405da42d250b09a17c7d5afc5c404a91e
3
+ metadata.gz: e666364972b1ce6c0870fb04f3776741fa6ef036
4
+ data.tar.gz: 25593711517ef4ab307911bdd632989a603c1f71
5
5
  SHA512:
6
- metadata.gz: aed13859b5eb0291bae5d2996ca941e58a220733baaeb1bfc963b5ca1ad2d3e0ab6d35291180784feb9db95546352a305816181e890f0badaea8216e7d846f70
7
- data.tar.gz: 79a0802846344b572dd367f26123b530631df62442f7eb1973d64c4956f413cba35881928ba71f0f2ac699bfa9c9b7eb28eded05b7d9e8f31f72b82d2b89c9ed
6
+ metadata.gz: 46409b36ce917552188ff52ee01a318c20f574f5009d76bdbea2becfd0bf9a474e7be3b92c5f001a87ad66000e248d0e7c667ec643d4facd8855b7efd620ce34
7
+ data.tar.gz: 0c92c86fb761879239595a79c75962bc93c7a1c6178b8c43224ef1d16b6ee8a9e3d85229226ad8cd8d7ee542e039b4146a61d4155740feffab880a5dee9a4c2d
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
+ before_install: gem install bundler
2
3
  install: bundle install -j 4 --retry 3
3
4
  script:
4
5
  - bin/rspec
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  = Heart Check - Changelog
2
2
 
3
+ == Version 1.3.0 :: 2017-09-21
4
+
5
+ * Adds the `/environment` endpoint
6
+
3
7
  == Version 1.2.0 :: 2017-03-30
4
8
 
5
9
  * Adds a caching plug
@@ -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'
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Heartcheck
2
- VERSION = '1.2.2'
2
+ VERSION = '1.3.0'
3
3
  end
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.2.2
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-07-04 00:00:00.000000000 Z
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.1
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.