evt-messaging 0.16.0.2 → 0.17.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/messaging/message.rb +4 -0
- data/lib/messaging/message/import.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8619b84bbda166bf4b0243fc0cc22829046dde4
|
4
|
+
data.tar.gz: b66c11f2750beb67cf78b5e4f99f37d45daf9315
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68c8c847aca573b282de33dc17b3339ec8c0e662f46a4f85050d9555a34ae0c870896b37148c438675cc799229c57f2393dc439bce5933f6f860aa6111c7cc4e
|
7
|
+
data.tar.gz: 84b7f26a3128eeb9282a2972aeb4ea668ae60e613fec7e41888e6cdf45c3645f5a2563e4e34a55fa19969e1766c2f27f02cf4fb425e5b4349c23b47a826c089c
|
data/lib/messaging/message.rb
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
module Messaging
|
2
2
|
module Message
|
3
3
|
module Import
|
4
|
+
Error = Class.new(RuntimeError)
|
5
|
+
|
4
6
|
def self.call(message_data, message_class)
|
7
|
+
raise Error unless message_class.message_type?(message_data.type)
|
8
|
+
|
5
9
|
Transform::Read.(message_data, :message_data, message_class)
|
6
10
|
end
|
7
11
|
end
|