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 +4 -4
- data/lib/db-purger/metric_subscriber.rb +4 -0
- data/lib/db-purger/plan.rb +3 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ca5f7a5b7d9230ac8e0714af9202491cf13b54cc70d7b7715be09e8b9695de6
|
4
|
+
data.tar.gz: c815e2953565570d97fad91dd7021d33946bf50fb3cecf4e70438fea097ad1e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4bc2034e6096a25566d002a086b44baa4efa521f47c20aa33bc5edf1196c77529dd8044040ae86c20917381497565d7c432e216aca8a71d134c53287c379bbd
|
7
|
+
data.tar.gz: e2a9abe99449c51bd0ea906519e2bbe4bcf8b2d6e36f08253594e7209f4986ff463603198036deeecc25f7745d7d6c99a08f6ef67ac60bbdb8d46118738059ca
|
data/lib/db-purger/plan.rb
CHANGED
@@ -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.
|
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:
|
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.
|
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: []
|