eventq_rabbitmq 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: 4d1f84071939202d7a6487fcac81399d9a473193
4
- data.tar.gz: 72703a401e25627d44f2ef01bfe1411f2a3993a8
3
+ metadata.gz: 0fb7e1d866e82f5705e7124f0bf89bd46a717e10
4
+ data.tar.gz: ea36882a2aa73d8af5b0ab0644629870f439f300
5
5
  SHA512:
6
- metadata.gz: 907d582a7afc9015386f885d6ac0f290b6a903c0da1326bbbe9bcc0fb6214be9ef48792ab563a521161288f02aba7822de28fa922088b8b79860f1ffbd3af63d
7
- data.tar.gz: 81cdf1ac8d763aec08ce75f37b36dda8c08eff70a7ce34b2bd8fff559c3c55802facf2403a8c3f875735ccf4647e84173e33dffe1f2b74e299bf537c59edc76c
6
+ metadata.gz: d1285664cd8af9441dca7b09b34d261ed32ce23ea13cb700ad4660b5ea338efdf9f42cc29e8e9e52e4d5f24d550e4484bfc5ad2dae0fe3fcc8b9d094116e3d7b
7
+ data.tar.gz: aa1d7c9679158e1e39ccd3866229c8facd8ff2d393e18f326f977c8684c871a0c71e71735d8f6b13a4040b39c3881000db37a4f0b71f54fd5daa2bb4ec835278
@@ -12,6 +12,7 @@ module EventQ
12
12
  @queue_manager = QueueManager.new
13
13
  @event_raised_exchange = EventRaisedExchange.new
14
14
  @serialization_manager = EventQ::SerializationProviders::Manager.new
15
+ @signature_manager = EventQ::SignatureProviders::Manager.new
15
16
  end
16
17
 
17
18
  def raise_event(event_type, event)
@@ -29,6 +30,11 @@ module EventQ
29
30
  qm.content = event
30
31
  qm.type = _event_type
31
32
 
33
+ if EventQ::Configuration.signature_secret != nil
34
+ provider = @signature_manager.get_provider(EventQ::Configuration.signature_provider)
35
+ qm.signature = provider.write(message: qm, secret: EventQ::Configuration.signature_secret)
36
+ end
37
+
32
38
  serialization_provider = @serialization_manager.get_provider(EventQ::Configuration.serialization_provider)
33
39
 
34
40
  message = serialization_provider.serialize(qm)
@@ -15,6 +15,7 @@ module EventQ
15
15
  @on_error_block = nil
16
16
  @hash_helper = HashKit::Helper.new
17
17
  @serialization_provider_manager = EventQ::SerializationProviders::Manager.new
18
+ @signature_provider_manager = EventQ::SignatureProviders::Manager.new
18
19
  @last_gc_flush = Time.now
19
20
  @gc_flush_interval = 10
20
21
  end
@@ -334,6 +335,8 @@ module EventQ
334
335
 
335
336
  EventQ.log(:info, "[#{self.class}] - Message received. Retry Attempts: #{message.retry_attempts}")
336
337
 
338
+ @signature_provider_manager.validate_signature(message: message, queue: queue)
339
+
337
340
  message_args = EventQ::MessageArgs.new(message.type, message.retry_attempts)
338
341
 
339
342
  if(!EventQ::NonceManager.is_allowed?(message.id))
@@ -1,3 +1,3 @@
1
1
  module EventqRabbitmq
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_rabbitmq
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: 2016-12-09 00:00:00.000000000 Z
11
+ date: 2017-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler