okcomputer 1.9.0 → 1.9.1

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: b75010b5b64ee83ad4d0c3a60a31e54ee2f8cc66
4
- data.tar.gz: 447930608cd2de52c23369f190190e9ca4c7375c
3
+ metadata.gz: a8248b8e1e8bc9bf97e4353616d706511cd3a30e
4
+ data.tar.gz: aad84c86640e989a6f36027dc3940e99bc0e8181
5
5
  SHA512:
6
- metadata.gz: 98e01dfe30d9e5ddba45c82fcba45aeeebfe93c1c216632d18b91127259ddc31d2fa24a030671ddb69a0d02286b4deb688c1a95b3b274270db4b0ee0f14625b8
7
- data.tar.gz: ab3b3ca90ad9c8307ff83de7bcc69d7915ab7b84a650be60a43d554d07a7ebadc8e1d578cd9c11215bdf03819ed0814be3fa2132227c9db7cd9825dd9171cdea
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']
@@ -1,3 +1,3 @@
1
1
  module OkComputer
2
- VERSION = '1.9.0'
2
+ VERSION = '1.9.1'
3
3
  end
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.0
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-01 00:00:00.000000000 Z
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
- - patrick.byrne@tstmedia.com
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.6.3
122
+ rubygems_version: 2.5.1
119
123
  signing_key:
120
124
  specification_version: 4
121
125
  summary: A simple, extensible health-check monitor