mongo_missing_indexes 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mongo/missing_indexes.rb +2 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 656e0d6771c56d4c4b8bd70eab09552ce06a296f
4
- data.tar.gz: 7105302316c6d969f58228c60ac7f6c9ec62c1d3
3
+ metadata.gz: 6060d609b0a935d6a6db285f4226515b41d6fba9
4
+ data.tar.gz: 26a808b103cb4bceafb18e9ba71224029b4709f4
5
5
  SHA512:
6
- metadata.gz: 9285f24c056e4a512dbbd1cc834803f95008cebdefd52dfc660e26bab16d73da3120e9ebee31cfd136631b93d96ce4a4884a6b9b3834ab0dd968178fc8cbc93d
7
- data.tar.gz: 432e05595fabd774a97d96d82f4a58fc5fbbb8ccd6b904508555fe0d6d61b4e3dafdebc9dbd33aa9e9c4b029c78746723a4c0d0377c6ed038ee86d5d1bcd6c4e
6
+ metadata.gz: ebbe19f3e522106739bc3b1c7177ba21bdd40aef680f6a4f40126cf9fbe0bbfc0d95ba1f63b298867187ea56a51d5f68116041d06e14fdac9dbfe5a0ab3c687c
7
+ data.tar.gz: 76c1b839175f5297e7ec26ccd2e6bb60094c2f73c1bdb35ff1e87f29023850ed467c346b6df880d123024395a3d4f83c1108b4e1acfd84dad899d875550c9ed7
@@ -67,7 +67,8 @@ class Mongo::MissingIndexes
67
67
  explain_args = args
68
68
  end
69
69
 
70
- explain = collection.send("#{explain_method_name}_aliased_from_missing_indexes", *explain_args, &block).explain
70
+ # ignore the block, since collection.find({}, &block) returns nil
71
+ explain = collection.send("#{explain_method_name}_aliased_from_missing_indexes", *explain_args).explain
71
72
  non_index_query = false
72
73
 
73
74
  if explain['stats']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo_missing_indexes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Taylor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-27 00:00:00.000000000 Z
11
+ date: 2016-01-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Detect missing indexes in mongo queries
14
14
  email: scott@railsnewbie.com