database_flusher 0.1.0 → 0.1.1

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: 653acbb844ea5b6d0b7df80bcb3372241c4d20a9
4
- data.tar.gz: bc50e23b475148501b0d8c587bfe399f427a66f5
3
+ metadata.gz: 43b8589940f4be6cf29476431a5a59fefce4b3e5
4
+ data.tar.gz: a1d467168f8d33c47b0681d04b57fd58cc51f2a4
5
5
  SHA512:
6
- metadata.gz: 1b92448902300bee250ad388d36c3e2704c405348d72333b5fae17d236ec1d99bf20416c0a707c5e63c63dae2b0934e35c53e72fb463d9c1371f3c1bceb162cd
7
- data.tar.gz: b08f8e74a843978e0fbf693be70ad8842c80f958cc3dd5f458a5530f09647cef1cd5da0943d121a0ac54e557ddcdf2d7bdbacd4690cac0f27254d830d4a3c3bc
6
+ metadata.gz: b7d0f5e9c7375dc85199d07f063b11744a3395e3cfbc0d432126ac84996e23600f68aae2673bd68d237942b242a393cf9d16f3085912cad3fbe67dee33f6dd08
7
+ data.tar.gz: d9a54465da056726d13f7800f79d9af1f8abf81b148d2d1b09532ba2dadb1256d8e0fddcdf0e1dc371489cc1efbd47a65bbdc666a65b2d1ca89985e7a8ac0202
@@ -23,7 +23,7 @@ module DatabaseFlusher
23
23
  end
24
24
 
25
25
  def started(event)
26
- if event.command_name == :insert
26
+ if event.command_name == :insert || event.command_name == 'insert'.freeze
27
27
  collection = event.command['insert'.freeze]
28
28
  if collection
29
29
  @cleaner.collections << collection
@@ -1,3 +1,3 @@
1
1
  module DatabaseFlusher
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: database_flusher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edgars Beigarts