evt-entity_cache 0.18.2.0 → 0.18.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b23cb05bfd47944b72bba658c3b1c9cf866488102c690b91ade4d44dd546dd2
|
4
|
+
data.tar.gz: b64958a854a57a3d682d74715e7d17a5106a2f98d260841956b9405eee4455aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d22153354d770a73949c268a910d6f060be5867623095a66a767c72d1e7795c726be33c0af29f689808a4b0a257b4ec5c7841c87cf4a67fb0c758674b963719
|
7
|
+
data.tar.gz: cef720a96e81a23073afe8afe4d6775e6129e812c253ff336bd4ef5f5e5d4ef2e753f7095ec8471d380074893f7fa64602b1894ba9511efffca0d55dd8a5c1d4
|
@@ -114,11 +114,11 @@ class EntityCache
|
|
114
114
|
record
|
115
115
|
end
|
116
116
|
|
117
|
-
def persist?(version,
|
118
|
-
|
117
|
+
def persist?(version, last_persisted_version)
|
118
|
+
last_persisted_version ||= -1
|
119
119
|
|
120
|
-
|
120
|
+
difference = version - last_persisted_version
|
121
121
|
|
122
|
-
|
122
|
+
difference >= persist_interval
|
123
123
|
end
|
124
124
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-entity_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.2.
|
4
|
+
version: 0.18.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-configure
|