db-purger 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a9cf35c804bae7cea5b7406c024fa04ab548b13405efdd7cfc5be81f28b15cd
4
- data.tar.gz: a6470f9cbd9a857257fe9a7bd783c8e23c50d732dc3ba8db273efa6e5b6d4e9e
3
+ metadata.gz: 006b0116e75d36b3a64b1343edb8950e2d5d5dd663527b788621fe39413bb42b
4
+ data.tar.gz: 2b581a243856a2bc86423743a088057c81d432dc2047d97925fe008e0d4dba22
5
5
  SHA512:
6
- metadata.gz: d3cbcf1d21d79937369685f02d1ad9476adf4cf69423a8b7686adb3d277d71263e8ce94990400b2455c94fb5c191e7b29846003afe99b6cce87a706d6dc65c37
7
- data.tar.gz: c63a4909bb8b3a45f745165807872ef9b0d3183e1a7bfce6a3007726f33af4c7fc0e5925425cd699b42704e42c8785accba83fa5878f65bae2fb3d7a5b1aa9b0
6
+ metadata.gz: 607603ac36756a3a152704b449b85279179fd181acb72ae37e79eb584fd114df7150115c301d1fc2f3a8f71ba72fc51b504a60c9663ab46e001727593fce19ab
7
+ data.tar.gz: 3c222278da6f50647e4594b9e279911d793d87d177196db2b23a0ac63de9871fef0ab594565e55e90d2426d52226cc0c084c409275d25abef5c0c266131a0fa6
@@ -11,6 +11,10 @@ module DBPurger
11
11
  metrics.reset!
12
12
  end
13
13
 
14
+ def self.auto_attach
15
+ attach_to :db_purger
16
+ end
17
+
14
18
  def purge(event)
15
19
  self.class.metrics.update_purge_stats(
16
20
  event.payload[:table_name],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db-purger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-22 00:00:00.000000000 Z
11
+ date: 2019-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dynamic-active-model