okcomputer 1.6.3 → 1.6.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0454eb1ea1c32dfa3817db3f2fc2c084d49ac961
4
- data.tar.gz: 1c6115252a5203da180e6df029038838df4fb542
3
+ metadata.gz: 5ae60925383b391cb7ec26d3ab942dd536f138bb
4
+ data.tar.gz: c67bcd19ce8313de885adbf3d11bcc7f2a517ec2
5
5
  SHA512:
6
- metadata.gz: 7d8533895c2fd1973ab7b7734ce02d3d56146084c0d2be8c7031d6f3e74f21962a8e6c0b9d02a9907436b1dcaa7672f95b978c57955558ea94e8d9066ade493b
7
- data.tar.gz: 91fb78c59096b5eb182dcbfe20ba1bae4bc270ecccaecc11ab41b8c37eaa46e316031f91f560be4977f530aeaaa662eec23c83fbe9882155bbc1f68bb938b5d1
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
@@ -1,3 +1,3 @@
1
1
  module OkComputer
2
- VERSION = '1.6.3'
2
+ VERSION = '1.6.4'
3
3
  end
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.3
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: 2015-11-18 00:00:00.000000000 Z
11
+ date: 2016-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3