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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a3d376ae2e2fdc9f58fa988b19ad2561783525f
4
- data.tar.gz: 4e7ebfe60ebbead6cc03571a6572e47bfa10acf1
3
+ metadata.gz: c67d42de6b2da12c363d3df36b4d48b9e2e57c72
4
+ data.tar.gz: 0e503db2f24dc1942dd4e61902f1868e9957d0c0
5
5
  SHA512:
6
- metadata.gz: b9891d45f66b897e69b8e6fbf33b25e77d1c0ac50bc4ac4206aad0dd990b3a8128b0769ffcae69a255f7282e60e0adb652673695ab48902421d94f41ef458a95
7
- data.tar.gz: b4f10cbd713aa9432389cefd9bd87a69d23dedc1e2c0ee9824c50fb7f05b685509054fac064be718953c44fd5928482e8643438bc0133440cdfd353df596bb1f
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
@@ -1,3 +1,3 @@
1
1
  module EventqBase
2
- VERSION = "1.11.1"
2
+ VERSION = "1.12.0"
3
3
  end
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.11.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-03-17 00:00:00.000000000 Z
11
+ date: 2017-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler