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: 6cd3ff5583f3ad1ab50514590230eefd77d0f2e3c1c12ee1043296b9074c9f67
4
- data.tar.gz: d8af7a556a4c4efb37383c394fb4e954d400ae6ae6f72053651ab5b5d875df50
3
+ metadata.gz: 2b23cb05bfd47944b72bba658c3b1c9cf866488102c690b91ade4d44dd546dd2
4
+ data.tar.gz: b64958a854a57a3d682d74715e7d17a5106a2f98d260841956b9405eee4455aa
5
5
  SHA512:
6
- metadata.gz: '069076e4491ac76a0f45b10fc87f4073780a9bcd4bda7dc8bdd01cefbd8534de73e7ccc5a9bb9acd4ea7b35f5d30c46592610f63dc6b2752e2a2953ed2254124'
7
- data.tar.gz: a7cc601ea8a4a11b7f1280be03ca322ced770a05005b1d23c2ad645730d3bc1200c432144e867a0b83727c9d0a3cf33898854b85fe24ba0a625f0ad8c127d2b6
6
+ metadata.gz: 4d22153354d770a73949c268a910d6f060be5867623095a66a767c72d1e7795c726be33c0af29f689808a4b0a257b4ec5c7841c87cf4a67fb0c758674b963719
7
+ data.tar.gz: cef720a96e81a23073afe8afe4d6775e6129e812c253ff336bd4ef5f5e5d4ef2e753f7095ec8471d380074893f7fa64602b1894ba9511efffca0d55dd8a5c1d4
@@ -34,9 +34,6 @@ class EntityCache
34
34
  def path(id)
35
35
  External.path(subject, id)
36
36
  end
37
-
38
- def self.assure(interval)
39
- end
40
37
  end
41
38
 
42
39
  def self.path(subject, id=nil)
@@ -114,11 +114,11 @@ class EntityCache
114
114
  record
115
115
  end
116
116
 
117
- def persist?(version, persisted_version)
118
- persisted_version ||= -1
117
+ def persist?(version, last_persisted_version)
118
+ last_persisted_version ||= -1
119
119
 
120
- age_versions = version - persisted_version
120
+ difference = version - last_persisted_version
121
121
 
122
- age_versions >= persist_interval
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.0
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-25 00:00:00.000000000 Z
11
+ date: 2018-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-configure