evt-messaging 2.5.8.0 → 2.5.8.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/properties.rb +2 -2
- data/lib/messaging/message/metadata.rb +13 -1
- 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: ccafb945cdd024a0fa0d3b90b2bb197973f0a6111f778657e2c8dcc7514e944f
|
4
|
+
data.tar.gz: 64be2ec439b541414bd50e9d0ad2490cb6069d9e617bd12d8f44b5dad8231f64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13a6e341c068157a89e0e3336afd19c3518149bc766bcfca8b73fc72d74a97948854838b5e35d9ba9adb127e660ef679ada4f1b4d928d7bb08307f816f3cfbac
|
7
|
+
data.tar.gz: c017e5d29247eb7601db7828574f03348429e38f51cd69c7c65dbf394723b9f5ca592d68589bcb1782055c6fa9562d6be5602fa91bf6834e0de8296b705c16d3
|
@@ -28,7 +28,7 @@ module Messaging
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.name
|
31
|
-
|
31
|
+
'some_property'
|
32
32
|
end
|
33
33
|
|
34
34
|
def self.value
|
@@ -50,7 +50,7 @@ module Messaging
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def self.name
|
53
|
-
|
53
|
+
'some_local_property'
|
54
54
|
end
|
55
55
|
|
56
56
|
def self.value
|
@@ -137,6 +137,10 @@ module Messaging
|
|
137
137
|
alias :correlates? :correlated?
|
138
138
|
|
139
139
|
def set_property(name, value, local: nil)
|
140
|
+
if not name.is_a?(String)
|
141
|
+
raise Error, "Property name must be a string: #{name.inspect}"
|
142
|
+
end
|
143
|
+
|
140
144
|
local ||= false
|
141
145
|
|
142
146
|
delete_property(name)
|
@@ -148,16 +152,24 @@ module Messaging
|
|
148
152
|
property
|
149
153
|
end
|
150
154
|
|
151
|
-
def set_local_property(name, value
|
155
|
+
def set_local_property(name, value)
|
152
156
|
set_property(name, value, local: true)
|
153
157
|
end
|
154
158
|
|
155
159
|
def get_property(name)
|
160
|
+
if not name.is_a?(String)
|
161
|
+
raise Error, "Property name must be a string: #{name.inspect}"
|
162
|
+
end
|
163
|
+
|
156
164
|
property = properties.find { |property| property.name == name }
|
157
165
|
property&.value
|
158
166
|
end
|
159
167
|
|
160
168
|
def delete_property(name)
|
169
|
+
if not name.is_a?(String)
|
170
|
+
raise Error, "Property name must be a string: #{name.inspect}"
|
171
|
+
end
|
172
|
+
|
161
173
|
i = properties.index { |property| property.name == name }
|
162
174
|
|
163
175
|
return nil if i.nil?
|
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: 2.5.8.
|
4
|
+
version: 2.5.8.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: 2021-02-
|
11
|
+
date: 2021-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-message_store
|