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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed29a0c35879e58829f90553574808b36c4925450725c0e6b312e45cbb75abc7
4
- data.tar.gz: 5c3649886b569d050834f02391672745595611a83a3a6fed8958070bab1ddaea
3
+ metadata.gz: ccafb945cdd024a0fa0d3b90b2bb197973f0a6111f778657e2c8dcc7514e944f
4
+ data.tar.gz: 64be2ec439b541414bd50e9d0ad2490cb6069d9e617bd12d8f44b5dad8231f64
5
5
  SHA512:
6
- metadata.gz: '04208a998e7aa313e679e41d064d8a8945b613dc6b2a3bea74cd2d53717cd69445d4824bd9c989ed42969798677f84bf756b1ed0989f385700d1e3dc3d467745'
7
- data.tar.gz: a090214c089d0052e5a904b4e7c01b0537f4c7f5978e65766e89bf342c2c889294f438f3a07d59ef1c2f5f2381cfc0cfb715e0317a764c94763097fb7233a68f
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
- :some_property
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
- :some_local_property
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, local: nil)
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.0
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-08 00:00:00.000000000 Z
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