evt-entity_store 0.4.0.4 → 0.4.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/entity_store/entity_store.rb +6 -9
- data/lib/entity_store/substitute.rb +1 -5
- metadata +2 -3
- data/lib/loader.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0744e52d17d09575eac1b661bb4cfe90cef9944b
|
4
|
+
data.tar.gz: b4b06a0b1036fa2004ad340e8eb910cfc7a5cd7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dd76669b7aef02ebe1a7d91c8cac0f0094d574af6c16a43ede27b80b108ad5299562ac12ab11f2b605f244a3ef8150dd6053a8e4d9115556481fffb56867864
|
7
|
+
data.tar.gz: d110aacb917243d9e7f51113ad36bcac4b000af904004ac0f115dfdae07fb95fd754786886672e8deebf6465af0e84e56b2ccd331ad88fd10b6df1f5953a4348
|
@@ -46,9 +46,10 @@ module EntityStore
|
|
46
46
|
EntityCache.configure(
|
47
47
|
instance,
|
48
48
|
entity_class,
|
49
|
-
persistent_store: instance.snapshot_class,
|
50
49
|
persist_interval: instance.snapshot_interval,
|
51
|
-
|
50
|
+
persistent_store: instance.snapshot_class,
|
51
|
+
persistent_store_session: session,
|
52
|
+
attr_name: :cache
|
52
53
|
)
|
53
54
|
|
54
55
|
instance
|
@@ -94,19 +95,15 @@ module EntityStore
|
|
94
95
|
id,
|
95
96
|
entity,
|
96
97
|
current_version,
|
97
|
-
persisted_version,
|
98
|
-
persisted_time
|
98
|
+
persisted_version: persisted_version,
|
99
|
+
persisted_time: persisted_time
|
99
100
|
)
|
100
101
|
end
|
101
102
|
|
102
103
|
logger.info { "Get entity done (ID: #{id.inspect}, Entity Class: #{entity_class.name}, Version: #{record&.version.inspect}, Time: #{record&.time.inspect})" }
|
103
104
|
logger.info(tags: [:data, :entity]) { entity.pretty_inspect }
|
104
105
|
|
105
|
-
|
106
|
-
record.destructure include
|
107
|
-
else
|
108
|
-
EntityCache::Record::NoStream.destructure include
|
109
|
-
end
|
106
|
+
EntityCache::Record.destructure(record, include)
|
110
107
|
end
|
111
108
|
|
112
109
|
def refresh(entity, id, current_position, &probe_action)
|
@@ -9,11 +9,7 @@ module EntityStore
|
|
9
9
|
def get(id, include: nil)
|
10
10
|
record = records[id]
|
11
11
|
|
12
|
-
|
13
|
-
record.destructure include
|
14
|
-
else
|
15
|
-
EntityCache::Record::NoStream.destructure include
|
16
|
-
end
|
12
|
+
EntityCache::Record.destructure(record, include)
|
17
13
|
end
|
18
14
|
|
19
15
|
def get_version(id)
|
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: 0.4.0.
|
4
|
+
version: 0.4.0.5
|
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: 2017-
|
11
|
+
date: 2017-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-entity_projection
|
@@ -74,7 +74,6 @@ files:
|
|
74
74
|
- lib/entity_store/entity_store.rb
|
75
75
|
- lib/entity_store/log.rb
|
76
76
|
- lib/entity_store/substitute.rb
|
77
|
-
- lib/loader.rb
|
78
77
|
homepage: https://github.com/eventide-project/entity-store
|
79
78
|
licenses:
|
80
79
|
- MIT
|
data/lib/loader.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
lib/entity_store.rb
|