okcomputer 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ok_computer/built_in_checks/mongoid_check.rb +3 -1
- data/lib/ok_computer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ae60925383b391cb7ec26d3ab942dd536f138bb
|
4
|
+
data.tar.gz: c67bcd19ce8313de885adbf3d11bcc7f2a517ec2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c16cef79d4780356b756336b369991a9f01099d1063914b88cd79fc2a5f160381b8320879537ecff1a2b753197b33f2fec8b96637ac006cab8b92057c9f713fe
|
7
|
+
data.tar.gz: 96a891711a727589dd00f5cdeb3f11fa8e6e07b4eb8f182bf60bf0184e4d89589e04f20d056f1ad5d6af0be87c474a65e51bea589c0f5ee9a5b96d9e5439cdd2
|
@@ -29,7 +29,9 @@ module OkComputer
|
|
29
29
|
# Returns a hash with the status of the db
|
30
30
|
def mongodb_stats
|
31
31
|
if session
|
32
|
-
session.command(dbStats: 1) # Mongoid 3+
|
32
|
+
stats = session.command(dbStats: 1) # Mongoid 3+
|
33
|
+
stats = stats.first unless stats.is_a? Hash # Mongoid 5
|
34
|
+
stats
|
33
35
|
else
|
34
36
|
Mongoid.database.stats # Mongoid 2
|
35
37
|
end
|
data/lib/ok_computer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: okcomputer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Byrne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|