solid_objects 0.15.0 → 0.15.1
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/solid_objects/instance_pruner.rb +2 -1
- data/lib/solid_objects/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b9179610a28d7c335fbffb11a9a86009c15ae4b1e7e2e1a4f638a69c64085b85
|
|
4
|
+
data.tar.gz: bc67c66ad2f7841eb32724d5d8cbcb744250fb4f0579c7fdb6546e1a9b259fd5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9786fdf1d29ff91f145d47f5a5523d6371ebe3bd1623af0fde9652c4327e52c12e90f540e5d9623e5e79ca616656c580759830e31577bd0d0a88335a15a1ddd7
|
|
7
|
+
data.tar.gz: 3b1513d225edc9f56e7063e9517d9abe7f41b3e2b59e37c93fb269d0b63a9e6963e7442d3e5033361a9ba7aeb0f39859d0bd4e911be1f51e7d77a0940e999a85
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.15.1 - 2026-09-16
|
|
4
|
+
|
|
5
|
+
- Use the existing cleanup index when finding expired actor instances. Preserve
|
|
6
|
+
creation-time fallback for never-used instances and the strict retention cutoff.
|
|
7
|
+
|
|
3
8
|
## 0.15.0 - 2026-09-15
|
|
4
9
|
|
|
5
10
|
- Maintain effect-owner heartbeats during long-running handlers, completion, and
|
|
@@ -33,9 +33,10 @@ module SolidObjects
|
|
|
33
33
|
# @rbs () -> Array[ActiveRecord::Relation[Instance]]
|
|
34
34
|
def policy_relations
|
|
35
35
|
SolidObjects.configuration.instance_retention_by_actor_type.map do |actor_type, retention|
|
|
36
|
+
cutoff = now - retention
|
|
36
37
|
prunable
|
|
37
38
|
.where(actor_type: actor_type.to_s)
|
|
38
|
-
.where("
|
|
39
|
+
.where("last_used_at < ? OR (last_used_at IS NULL AND created_at < ?)", cutoff, cutoff)
|
|
39
40
|
end
|
|
40
41
|
end
|
|
41
42
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: solid_objects
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.15.
|
|
4
|
+
version: 0.15.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lucas Carlson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actioncable
|