eventq_base 1.11.1 → 1.12.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 +2 -0
- data/lib/eventq_base/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c67d42de6b2da12c363d3df36b4d48b9e2e57c72
|
4
|
+
data.tar.gz: 0e503db2f24dc1942dd4e61902f1868e9957d0c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b21fea5d200f7c198cc472a95b5ed3a5436760f62bc18832890d9b3e9517112d7ba206097a793b3c2c2a3de452de8d1ad2ba9773ef557b862d32d9a616007c8
|
7
|
+
data.tar.gz: 01652e72f470f1afe5bbed970ee37c1d2895ecaa54f967d1e2b58043cfb5a92072024ccba17e0a33397a31a7df6aff4a129753cacd17fbc2f0286ab5dcf0e939
|
@@ -4,12 +4,14 @@ module EventQ
|
|
4
4
|
attr_reader :retry_attempts
|
5
5
|
attr_accessor :abort
|
6
6
|
attr_accessor :drop
|
7
|
+
attr_reader :context
|
7
8
|
|
8
|
-
def initialize(type, retry_attempts)
|
9
|
+
def initialize(type, retry_attempts, context = {})
|
9
10
|
@type = type
|
10
11
|
@retry_attempts = retry_attempts
|
11
12
|
@abort = false
|
12
13
|
@drop = false
|
14
|
+
@context = context
|
13
15
|
end
|
14
16
|
end
|
15
17
|
end
|
@@ -8,11 +8,13 @@ module EventQ
|
|
8
8
|
attr_accessor_type :content
|
9
9
|
attr_accessor_type :created, type: Time
|
10
10
|
attr_accessor_type :signature, type: String
|
11
|
+
attr_accessor_type :context, type: Hash
|
11
12
|
|
12
13
|
def initialize
|
13
14
|
@retry_attempts = 0
|
14
15
|
@created = Time.now.to_i
|
15
16
|
@id = SecureRandom.uuid
|
17
|
+
@context = {}
|
16
18
|
end
|
17
19
|
|
18
20
|
# Creates a signature for the message
|
data/lib/eventq_base/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eventq_base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vaughanbrittonsage
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|