evt-entity_store 2.0.3.1 → 2.0.4.0

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: 491ae82f254dd60d09f42952e9787d8bade2783966e8e57d9d8e89b60ded9f88
4
- data.tar.gz: ee505308f7395f98cf3d19e7abfa4e4b5adaece43f1592991be0cf8905910588
3
+ metadata.gz: 66591e41058eeb5dbc6be824de6243fc04a9f55afee51168b2218718237877f6
4
+ data.tar.gz: 723d78ac5cdcdb9a5083204aaae48c02d89c92819613637c8cf915a2c3d840a3
5
5
  SHA512:
6
- metadata.gz: 7c4011da0e663ab309e8ca8ee1f706f62404e5121b7b8d0a44ecb3418e3ce718366bb93dda1ad3ff5ece93d8df62e99b8e60d431a2e0f2d990e6c727416f4dca
7
- data.tar.gz: 799a8a65e4174d186585fbfb7095f0c2e3397ae72078f12bf0050ca009421f72e7f09ae7ee6b7f20a14d4d9a4af3ffa0684e1659985f75d0a1226a3dc95828b7
6
+ metadata.gz: da2feb2f85c3885cb2343cd264df1b14b7133528426c35962ec5959ba0c2796e2f2af02b851c6273d3bdc289f1e276590334bf026648218961cb4e7e62bedf7d
7
+ data.tar.gz: c825ed22e98ae09c465fb91333f3224e88fec01acd7f9ca9a8c3a848f157430e02a485aa61385f70ede0e2c5ee00cd757986ab405711d4ea07be665fe9811800
@@ -27,12 +27,12 @@ module EntityStore
27
27
 
28
28
  attr_accessor :category
29
29
  attr_accessor :specifier
30
+ attr_accessor :snapshot_interval
30
31
 
31
32
  virtual :reader_class
32
33
  virtual :projection_class
33
34
  virtual :reader_batch_size
34
35
  virtual :snapshot_class
35
- virtual :snapshot_interval
36
36
 
37
37
  virtual :configure
38
38
 
@@ -59,11 +59,14 @@ module EntityStore
59
59
  instance.specifier = specifier unless specifier.nil?
60
60
  specifier ||= instance.specifier
61
61
 
62
+ instance.snapshot_interval = snapshot_interval unless snapshot_interval.nil?
63
+ snapshot_interval ||= instance.snapshot_interval
64
+
62
65
  EntityCache.configure(
63
66
  instance,
64
67
  entity_class,
65
68
  specifier,
66
- persist_interval: instance.snapshot_interval,
69
+ persist_interval: snapshot_interval,
67
70
  external_store: instance.snapshot_class,
68
71
  external_store_session: session,
69
72
  attr_name: :cache
@@ -256,7 +259,7 @@ module EntityStore
256
259
  end
257
260
 
258
261
  define_method :snapshot_interval do
259
- interval
262
+ @snapshot_interval ||= interval
260
263
  end
261
264
  end
262
265
  alias_method :snapshot, :snapshot_macro
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-entity_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3.1
4
+ version: 2.0.4.0
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: 2020-12-08 00:00:00.000000000 Z
11
+ date: 2021-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-entity_projection