eventq_base 1.13.1 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eventq_base/message_args.rb +3 -1
- data/lib/eventq_base/queue_message.rb +1 -0
- data/lib/eventq_base/version.rb +1 -1
- 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: b3e5c917ca2787465de975d96928506a6a16d5ff
|
4
|
+
data.tar.gz: 0bfb9718b6c9812070074d7c571b82293a5427ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7427090df25a14be11811506a4a278d9130ab08b94ec7ff973257a5784d3f1f9f04a09929f8f3863304f00123f7e91099bc7e549cbd9619ec57f25b81f9a9404
|
7
|
+
data.tar.gz: 205fe9de91d06cb66b4e249bf8ccf976317c8c4b154dd00127cf4db14748caeb5e69863b5a175b6371f331c06387835c3b776d5ba3de2aa6b500385efaedb651
|
@@ -1,17 +1,19 @@
|
|
1
1
|
module EventQ
|
2
2
|
class MessageArgs
|
3
3
|
attr_reader :type
|
4
|
+
attr_reader :content_type
|
4
5
|
attr_reader :retry_attempts
|
5
6
|
attr_accessor :abort
|
6
7
|
attr_accessor :drop
|
7
8
|
attr_reader :context
|
8
9
|
|
9
|
-
def initialize(type
|
10
|
+
def initialize(type:, retry_attempts:, context: {}, content_type:)
|
10
11
|
@type = type
|
11
12
|
@retry_attempts = retry_attempts
|
12
13
|
@abort = false
|
13
14
|
@drop = false
|
14
15
|
@context = context
|
16
|
+
@content_type = content_type
|
15
17
|
end
|
16
18
|
end
|
17
19
|
end
|
@@ -6,6 +6,7 @@ module EventQ
|
|
6
6
|
attr_accessor_type :retry_attempts, type: Integer
|
7
7
|
attr_accessor_type :type, type: String
|
8
8
|
attr_accessor_type :content
|
9
|
+
attr_accessor_type :content_type, type: String
|
9
10
|
attr_accessor_type :created, type: Time
|
10
11
|
attr_accessor_type :signature, type: String
|
11
12
|
attr_accessor_type :context, type: Hash
|
data/lib/eventq_base/version.rb
CHANGED