db-purger 0.3.0 → 0.3.1

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: 2ac1b663ae7d26d1849f088f3b91c9a1dd73adb78349d6fcacd803205537914e
4
- data.tar.gz: 8c9136065832feb04a1623d747df5b1b4c4188c7afe992ac4f8436fa28826414
3
+ metadata.gz: 8ca5f7a5b7d9230ac8e0714af9202491cf13b54cc70d7b7715be09e8b9695de6
4
+ data.tar.gz: c815e2953565570d97fad91dd7021d33946bf50fb3cecf4e70438fea097ad1e7
5
5
  SHA512:
6
- metadata.gz: 5713935ec867d652903785d4aba0d5e08ae7b0ddaba85f2991a991c8a5a17f2bcc8bdcfc557d80acb5e57ca265a9af9d2320924b6ef2f1d6c181bf3c8be8cfcf
7
- data.tar.gz: 2443a1d69c9462bc9bcdbb9e185a0a44a1558d8854c042db97eab06110fab54280ba0067b9eb42d5a25b57a47fae8a3260ceba19a25cfb4c5170e29d5c260904
6
+ metadata.gz: c4bc2034e6096a25566d002a086b44baa4efa521f47c20aa33bc5edf1196c77529dd8044040ae86c20917381497565d7c432e216aca8a71d134c53287c379bbd
7
+ data.tar.gz: e2a9abe99449c51bd0ea906519e2bbe4bcf8b2d6e36f08253594e7209f4986ff463603198036deeecc25f7745d7d6c99a08f6ef67ac60bbdb8d46118738059ca
@@ -11,6 +11,10 @@ module DBPurger
11
11
  metrics.reset!
12
12
  end
13
13
 
14
+ def self.finished!
15
+ metrics.finished!
16
+ end
17
+
14
18
  def self.auto_attach
15
19
  attach_to :db_purger
16
20
  end
@@ -19,7 +19,9 @@ module DBPurger
19
19
 
20
20
  def purge!(database, purge_value)
21
21
  MetricSubscriber.reset!
22
- PurgeTable.new(database, @base_table, @base_table.field, purge_value).purge!
22
+ num_deleted = PurgeTable.new(database, @base_table, @base_table.field, purge_value).purge!
23
+ MetricSubscriber.finished!
24
+ num_deleted
23
25
  end
24
26
 
25
27
  def tables
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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-25 00:00:00.000000000 Z
11
+ date: 2021-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dynamic-active-model
@@ -61,7 +61,7 @@ homepage: https://github.com/dougyouch/db-purger
61
61
  licenses:
62
62
  - MIT
63
63
  metadata: {}
64
- post_install_message:
64
+ post_install_message:
65
65
  rdoc_options: []
66
66
  require_paths:
67
67
  - lib
@@ -76,8 +76,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.0.8
80
- signing_key:
79
+ rubygems_version: 3.0.9
80
+ signing_key:
81
81
  specification_version: 4
82
82
  summary: DB Purger by top level id
83
83
  test_files: []