evt-messaging 1.1.0.0 → 1.1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/messaging/controls/message.rb +10 -0
- data/lib/messaging/message.rb +1 -0
- data/lib/messaging/message/metadata.rb +1 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db095afa4e8358fbd78113c1fb5913a9227dbd245c5bc4eb5d905a66d591a6fa
|
4
|
+
data.tar.gz: 2b3c5ff5ac0e070a25b70de4d6285cc30f66a499253a44cdf91e2c230bf86f93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b35750ca9a1b565d61b613b821c7e943c8c2628cdbdf30e516027bd1d1a90806e4ce6cf630f521485ee350a7c07abdca9dfd2ecc9364298537fca6e5af80869
|
7
|
+
data.tar.gz: a7e04bd995671a31e228393fd1529abe6967fcd8b910726b8a45656bc935d5c4b76cbaa60b465748edf5b837a67ecfe3fea6f07669ef32a917fc277f5c4ecf2c
|
@@ -48,6 +48,16 @@ module Messaging
|
|
48
48
|
attribute :some_attribute
|
49
49
|
end
|
50
50
|
|
51
|
+
class Import
|
52
|
+
include Messaging::Message
|
53
|
+
|
54
|
+
attribute :some_attribute
|
55
|
+
|
56
|
+
def import(data)
|
57
|
+
data[:some_attribute] = "#{data[:some_attribute]} imported"
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
51
61
|
def self.message_class
|
52
62
|
SomeMessage
|
53
63
|
end
|
data/lib/messaging/message.rb
CHANGED
@@ -43,6 +43,7 @@ module Messaging
|
|
43
43
|
return nil if causation_message_stream_name.nil? || causation_message_position.nil?
|
44
44
|
"#{causation_message_stream_name}/#{causation_message_position}"
|
45
45
|
end
|
46
|
+
alias :causation_identifier :causation_message_identifier
|
46
47
|
|
47
48
|
def follow(preceding_metadata)
|
48
49
|
self.causation_message_stream_name = preceding_metadata.stream_name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-messaging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0.
|
4
|
+
version: 1.1.0.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: 2019-01
|
11
|
+
date: 2019-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-message_store
|
@@ -92,8 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
|
-
|
96
|
-
rubygems_version: 2.7.3
|
95
|
+
rubygems_version: 3.0.1
|
97
96
|
signing_key:
|
98
97
|
specification_version: 4
|
99
98
|
summary: Common primitives for platform-specific messaging implementations for Eventide
|