db-purger 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/db-purger/metrics.rb +12 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 006b0116e75d36b3a64b1343edb8950e2d5d5dd663527b788621fe39413bb42b
4
- data.tar.gz: 2b581a243856a2bc86423743a088057c81d432dc2047d97925fe008e0d4dba22
3
+ metadata.gz: 467c140ae632db0d6ef023e6831cdd7b3cfef60681e568cab979d7c501df149d
4
+ data.tar.gz: 91b3f4eb1529b7d96c39df1943604e9c251e20e0e1ca27e24035563ebc2a41c0
5
5
  SHA512:
6
- metadata.gz: 607603ac36756a3a152704b449b85279179fd181acb72ae37e79eb584fd114df7150115c301d1fc2f3a8f71ba72fc51b504a60c9663ab46e001727593fce19ab
7
- data.tar.gz: 3c222278da6f50647e4594b9e279911d793d87d177196db2b23a0ac63de9871fef0ab594565e55e90d2426d52226cc0c084c409275d25abef5c0c266131a0fa6
6
+ metadata.gz: 27115aec9e8156c358f0b310b373ff509dd327139f7732fd3548767abae7ce39f4e0f59bf02b3a27a701189b022c2a7b459166f9aa22311d8235a76cb6695bd3
7
+ data.tar.gz: c6efa22b397166e06ad464c73844fcca14542ce358a0ea3bd87be1d2fa130600ebfe62b56da416c416d3ba0aacd48a5f4ef0441fb90b5d3747881e6d0ccff451
@@ -64,5 +64,17 @@ module DBPurger
64
64
  stats[:records_selected] += records_selected
65
65
  stats
66
66
  end
67
+
68
+ def as_json(_opts = {})
69
+ {
70
+ took: elapsed_time_in_seconds,
71
+ started_at: @started_at,
72
+ finished_at: @finished_at,
73
+ purge_stats: @purge_stats,
74
+ delete_stats: @delete_stats,
75
+ lookup_stats: @lookup_stats,
76
+ filter_stats: @filter_stats
77
+ }
78
+ end
67
79
  end
68
80
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db-purger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch