cruft_tracker 0.1.1 → 0.1.2
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b82fa62bcfc541e72828d43b6da32b68a69b6a39aeeee86da2c6bbdd1e1428a3
|
|
4
|
+
data.tar.gz: f41ad6c19381e73c25af337512afe8be357b22dd4dc83c7aa72326dee59c640e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe1a8f7816d6716af52e74a0bdc8910b35c095bd04186c07fad84a68fcf9de549d1b2b2c27fd111388bbb701bd6f58dfbb7a31df9ae3b9d92dad05b4e8030ae5
|
|
7
|
+
data.tar.gz: 7518ffcdaf7712f60738742da841876580647a37bebe1c878cb70e0ebc1ab9067f3bc6c1cc599276dc70c76d812dc418a59d3edcfb0cbe679c3e2ff537c06a57
|
|
@@ -5,13 +5,15 @@ module CruftTracker
|
|
|
5
5
|
private
|
|
6
6
|
|
|
7
7
|
def execute
|
|
8
|
-
CruftTracker::
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
method.
|
|
8
|
+
CruftTracker::LogSuppressor.suppress_logging do
|
|
9
|
+
CruftTracker::Method
|
|
10
|
+
.where(deleted_at: nil)
|
|
11
|
+
.each do |method|
|
|
12
|
+
unless method.still_exists? && method.still_tracked?
|
|
13
|
+
method.update(deleted_at: Time.current)
|
|
14
|
+
end
|
|
13
15
|
end
|
|
14
|
-
|
|
16
|
+
end
|
|
15
17
|
rescue StandardError
|
|
16
18
|
# I'm actively ignoring all errors. Chances are, these are due to something like running rake
|
|
17
19
|
# tasks in CI when the DB doesn't already exist.
|