mongo-util 0.0.6 → 0.0.7

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: 0e49245d95c307faf9672a8691c76a714d5e46d5
4
- data.tar.gz: f0d3d0df50728e6945c1b555159110e13f68725e
3
+ metadata.gz: 06444388eee9995d10106979e8b8d0e4e615f1cd
4
+ data.tar.gz: 96ba0405c9238b27c4e30af7b254f9fbc84f5c91
5
5
  SHA512:
6
- metadata.gz: 9ff94b13313b478e307f682eb0981105f7780d75cf07d92c4e5ee3899c364a738d70b795474537f8d74c06727d708bff01ca489ce2f48a1ec13500800ce08e91
7
- data.tar.gz: f0c8158edb4486932f1184e1270fa08adc75c6c9ce11698f3248b5183d636b4fdd901d5c6661aab45519a1e2108abd21f174d2a7c4d71c5ad57a2e74a0be06c1
6
+ metadata.gz: 900346c769c03da1230ef191ebec27c37a4f37874d5bd9c319ae8312b29381e8c1fab0d93edc251b8b8cea1d11c60dec94abfbc838518ce1dfcebd4a975d1ef6
7
+ data.tar.gz: 2e9a2fd1d697156e91533bfc15fe6d9f4aa01c4594299bdea117d52be68b1921876da744aa59ca58011fafc2171300ea06c3b9ed3b65a267a65d06266262056b
@@ -65,7 +65,7 @@ module Mongo
65
65
  cmd = "mongo #{@to[:db]} --host #{@to[:host]} --port #{@to[:port]}"
66
66
  # Append auth, if neccessary
67
67
  cmd += Mongo::Util.authentication(@to)
68
- cmd += " --eval 'db.#{collection}.remove(#{options[:query] ? options[:query].to_json : ""});'"
68
+ cmd += " --eval 'db.#{collection}.remove(#{options[:query] ? options[:query].to_json : "{}"});'"
69
69
 
70
70
  self.exec(cmd)
71
71
  end
@@ -1,5 +1,5 @@
1
1
  module Mongo
2
2
  module Util
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Finn-Lenanrt Heemeyer