evt-messaging 0.29.0.4 → 0.29.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/messaging/handle.rb +5 -5
- data/lib/messaging/write/substitute.rb +12 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca39fd8fdc9510cbdef182370ff6d355ad2d952232e7b069cbc891d05f49a62f
|
4
|
+
data.tar.gz: ea2d038bcf2f26ee075241f82561d092c9a6ce03f5c092b9378cf34bb26e7f22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 587b05d5698db68d79539c483833eef6a08860e0eba55937c88f59197df65e1cd5eb69567989b593457fec76b929b869bcb4d78e18ced68dd0db0e0d32bac709
|
7
|
+
data.tar.gz: 2c85191c584299924b0c87bb3db09c2e3fd7045149028c29a35eed2db3de00674063146387388c716406a9a8f2d0a67fa406c72ea3eea834202d0479eb6fdd6d
|
data/lib/messaging/handle.rb
CHANGED
@@ -6,11 +6,11 @@ module Messaging
|
|
6
6
|
cls.class_exec do
|
7
7
|
dependency :handler_logger, ::Log
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
extend Build
|
10
|
+
extend Call
|
11
|
+
extend Info
|
12
|
+
extend HandleMacro
|
13
|
+
extend MessageRegistry
|
14
14
|
|
15
15
|
virtual :configure
|
16
16
|
|
@@ -62,11 +62,15 @@ module Messaging
|
|
62
62
|
record.data.message == message
|
63
63
|
end
|
64
64
|
|
65
|
+
if !written
|
66
|
+
return false
|
67
|
+
end
|
68
|
+
|
65
69
|
if blk.nil?
|
66
|
-
return
|
70
|
+
return true
|
67
71
|
end
|
68
72
|
|
69
|
-
sink.recorded_written? do |record|
|
73
|
+
return sink.recorded_written? do |record|
|
70
74
|
blk.call(record.data.stream_name, record.data.expected_version, record.data.reply_stream_name)
|
71
75
|
end
|
72
76
|
end
|
@@ -81,6 +85,7 @@ module Messaging
|
|
81
85
|
end
|
82
86
|
end
|
83
87
|
|
88
|
+
## TODO need to make same changes as made to written?
|
84
89
|
def replied?(message=nil, &blk)
|
85
90
|
if message.nil?
|
86
91
|
if blk.nil?
|
@@ -96,8 +101,12 @@ module Messaging
|
|
96
101
|
record.data.message == message
|
97
102
|
end
|
98
103
|
|
104
|
+
if !written
|
105
|
+
return false
|
106
|
+
end
|
107
|
+
|
99
108
|
if blk.nil?
|
100
|
-
return
|
109
|
+
return true
|
101
110
|
end
|
102
111
|
|
103
112
|
sink.recorded_replied? do |record|
|
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: 0.29.0.
|
4
|
+
version: 0.29.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: 2018-
|
11
|
+
date: 2018-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-message_store
|