evt-messaging-fixtures 1.1.4.0 → 1.1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/messaging/fixtures/controls/metadata.rb +8 -0
- data/lib/messaging/fixtures/handler.rb +8 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c45e6880790916902cbf5c52619e9cb15c335251079ca2ec027c7ca7710ab66e
|
4
|
+
data.tar.gz: 9558fee1ece3893923812f29aa81e9915d7cdf1fab91142924d383d453d942fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f17eb391bcdbccc5f5c14a366719282bdda6011d637fc4fab7c4cd832036f6b38b62c066622c83fee1fe9aa59894470e8f5093ca53179f18701976c8d540df1
|
7
|
+
data.tar.gz: bb05a8dae9020bec28f66478a1802b089ed4d644364f90d35dc050e3eca393bdbc8001a2f76b45d0fdb53b60aaca8595c03fb676186cab309c7e28b94979f118
|
@@ -17,6 +17,8 @@ module Messaging
|
|
17
17
|
|
18
18
|
metadata.reply_stream_name = reply_stream_name
|
19
19
|
|
20
|
+
metadata.properties = properties
|
21
|
+
|
20
22
|
metadata.time = time
|
21
23
|
|
22
24
|
metadata.schema_version = schema_version
|
@@ -56,6 +58,12 @@ module Messaging
|
|
56
58
|
'someReplyStream'
|
57
59
|
end
|
58
60
|
|
61
|
+
def self.properties
|
62
|
+
{
|
63
|
+
some_property: 'some property value'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
59
67
|
def self.time
|
60
68
|
::Time.utc(2000, 1, 1, 0, 0, 0, 11)
|
61
69
|
end
|
@@ -11,22 +11,24 @@ module Messaging
|
|
11
11
|
entity.sequence
|
12
12
|
end
|
13
13
|
|
14
|
-
initializer :handler, :input_message, :entity, :entity_version, :clock_time, :identifier_uuid, :test_block
|
14
|
+
initializer :handler, :input_message, :entity, :entity_version, :entity_id, :clock_time, :identifier_uuid, :test_block
|
15
15
|
|
16
|
-
def self.build(handler, input_message, entity=nil, entity_version=nil, clock_time: nil, identifier_uuid: nil, &test_block)
|
17
|
-
instance = new(handler, input_message, entity, entity_version, clock_time, identifier_uuid, test_block)
|
16
|
+
def self.build(handler, input_message, entity=nil, entity_version=nil, entity_id=nil, clock_time: nil, identifier_uuid: nil, &test_block)
|
17
|
+
instance = new(handler, input_message, entity, entity_version, entity_id, clock_time, identifier_uuid, test_block)
|
18
18
|
|
19
|
-
set_store_entity(handler, entity, entity_version)
|
19
|
+
set_store_entity(handler, entity, entity_version, entity_id)
|
20
20
|
set_clock_time(handler, clock_time)
|
21
21
|
set_identifier_uuid(handler, identifier_uuid)
|
22
22
|
|
23
23
|
instance
|
24
24
|
end
|
25
25
|
|
26
|
-
def self.set_store_entity(handler, entity, entity_version)
|
26
|
+
def self.set_store_entity(handler, entity, entity_version, entity_id)
|
27
27
|
return if entity.nil?
|
28
28
|
|
29
|
-
|
29
|
+
entity_id ||= entity.id
|
30
|
+
|
31
|
+
handler.store.add(entity_id, entity, entity_version)
|
30
32
|
end
|
31
33
|
|
32
34
|
def self.set_clock_time(handler, clock_time)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-messaging-fixtures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5.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-
|
11
|
+
date: 2020-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-entity_store
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
|
-
rubygems_version: 3.1.
|
97
|
+
rubygems_version: 3.1.4
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: TestBench fixtures for the Messaging library
|