evt-messaging 0.29.0.4 → 0.29.0.5

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: e0d58301fb581198a749c542ebba1922159f1d43ad3a1e100bbabda8ffd9c989
4
- data.tar.gz: 0db6ed50d5aa1e409d7fc276ac9a27828f9e1eef62f682ee7cfaf9643bdd7dff
3
+ metadata.gz: ca39fd8fdc9510cbdef182370ff6d355ad2d952232e7b069cbc891d05f49a62f
4
+ data.tar.gz: ea2d038bcf2f26ee075241f82561d092c9a6ce03f5c092b9378cf34bb26e7f22
5
5
  SHA512:
6
- metadata.gz: 7bbe236c98cb58dd47eadd40f359b2b61bdd7ad9ed69237fb2b57759c37b8211a27905fcf27567050da351587f75545dd7b8f2db67a8fc1e92997884be4dee20
7
- data.tar.gz: 1958204ed3298e74ab585e6b2226669d03c8cf68ce25fe252b342a6543d7caac948c0c462de47973b7d6ede9e4ae02424c311dfe5d02f4839c3cf84963f40086
6
+ metadata.gz: 587b05d5698db68d79539c483833eef6a08860e0eba55937c88f59197df65e1cd5eb69567989b593457fec76b929b869bcb4d78e18ced68dd0db0e0d32bac709
7
+ data.tar.gz: 2c85191c584299924b0c87bb3db09c2e3fd7045149028c29a35eed2db3de00674063146387388c716406a9a8f2d0a67fa406c72ea3eea834202d0479eb6fdd6d
@@ -6,11 +6,11 @@ module Messaging
6
6
  cls.class_exec do
7
7
  dependency :handler_logger, ::Log
8
8
 
9
- cls.extend Build
10
- cls.extend Call
11
- cls.extend Info
12
- cls.extend HandleMacro
13
- cls.extend MessageRegistry
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 written
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 written
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
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-07-16 00:00:00.000000000 Z
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