okcomputer 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ok_computer/built_in_checks/cache_check.rb +2 -0
- data/lib/ok_computer/version.rb +1 -1
- metadata +8 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a8248b8e1e8bc9bf97e4353616d706511cd3a30e
|
|
4
|
+
data.tar.gz: aad84c86640e989a6f36027dc3940e99bc0e8181
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c239e4dafedb3aa07c08d6dfe6c1ad17bd50c4eb8a3086c6a10cc733cd40bca9566d737421e971fd0a721711a65ffe8faa7165610ff98b86de1380872ac47394
|
|
7
|
+
data.tar.gz: acda74509a883a46ef6d577d1584b47dd3f429d6ac956ebdd921a574bf7f821e9625bc7c7f0c980d2098fa12a37a689f0501c87d035fffb4e7308f171e234edc
|
|
@@ -18,6 +18,8 @@ module OkComputer
|
|
|
18
18
|
|
|
19
19
|
# Public: Outputs stats string for cache
|
|
20
20
|
def stats
|
|
21
|
+
return "" unless Rails.cache.respond_to? :stats
|
|
22
|
+
|
|
21
23
|
stats = Rails.cache.stats
|
|
22
24
|
values = stats.select{|k,v| k =~ Regexp.new(host) }.values[0]
|
|
23
25
|
mem_used = to_megabytes values['bytes']
|
data/lib/ok_computer/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: okcomputer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Patrick Byrne
|
|
8
|
+
- Andy Fleener
|
|
9
|
+
- Chris Arcand
|
|
8
10
|
autorequire:
|
|
9
11
|
bindir: bin
|
|
10
12
|
cert_chain: []
|
|
11
|
-
date: 2016-08-
|
|
13
|
+
date: 2016-08-18 00:00:00.000000000 Z
|
|
12
14
|
dependencies:
|
|
13
15
|
- !ruby/object:Gem::Dependency
|
|
14
16
|
name: sqlite3
|
|
@@ -57,7 +59,9 @@ description: "\n Inspired by the simplicity of Fitter Happier, but frustrated
|
|
|
57
59
|
custom\n health checks, or choose from the built-in library of checks to ensure
|
|
58
60
|
your\n app is working as intended.\n "
|
|
59
61
|
email:
|
|
60
|
-
-
|
|
62
|
+
- code@patrickbyrne.net
|
|
63
|
+
- anfleene@gmail.com
|
|
64
|
+
- chris@chrisarcand.com
|
|
61
65
|
executables: []
|
|
62
66
|
extensions: []
|
|
63
67
|
extra_rdoc_files: []
|
|
@@ -115,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
115
119
|
version: '0'
|
|
116
120
|
requirements: []
|
|
117
121
|
rubyforge_project:
|
|
118
|
-
rubygems_version: 2.
|
|
122
|
+
rubygems_version: 2.5.1
|
|
119
123
|
signing_key:
|
|
120
124
|
specification_version: 4
|
|
121
125
|
summary: A simple, extensible health-check monitor
|