bbk-amqp 1.0.0.93643 → 1.0.0.105635

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
  SHA256:
3
- metadata.gz: de0feac4448e84adfdaef342e83e39cd0e0055d68d62dae857e7b003ae77ab0c
4
- data.tar.gz: b5319839c4b9cc6869e7ba639451d65e14449bc6b34a8982a37f62a121274898
3
+ metadata.gz: c811344d310285b4a69c8b17bb80a0052fc7b263822d870feb9247dfea817f51
4
+ data.tar.gz: 3e43954cb05ea14a49f34ff24efedacf10c7be5f578634c7172c5c2f513e95a8
5
5
  SHA512:
6
- metadata.gz: 6c844782733ee4612b2aa6f75714d6965c8a6ac71f917b40abd8f6b83fa8cda762357dc1a0367facb8a55e336be9d31ed1e5fc561a5c232ddc7a926c1af69cdf
7
- data.tar.gz: 247d5f7e190c3e946a5d31c170ac50c9bc2ff199d3a93a680a22d1aa7b665e38724f25f617c55fa123ae901f254c1e47f65a525971155c0a7da851e7b989d26f
6
+ metadata.gz: fa9a1ef97bdf617db36bcc87ae0a60ab235f1872187906ac2b3b566683c47980e64fc00a3134230bc396cc775f505d69727cd8d0944e36566f2fdc931df5a165
7
+ data.tar.gz: 8805a42fefe4803447b7bc786a1a965b1877e2912b294430d39dce39610453272f58708f83c0674856b7e1343e4be070fb372b4e955f12eab1bb3921bb3c16bb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bbk-amqp (1.0.0.93643)
4
+ bbk-amqp (1.0.0.105635)
5
5
  activesupport (>= 6.0)
6
6
  bbk-utils (> 1.0.1)
7
7
  bunny (>= 2.19.0)
@@ -63,7 +63,7 @@ GEM
63
63
  launchy (2.5.0)
64
64
  addressable (~> 2.7)
65
65
  minitest (5.15.0)
66
- oj (3.13.20)
66
+ oj (3.13.21)
67
67
  parser (3.0.3.2)
68
68
  ast (~> 2.4.1)
69
69
  path_expander (1.1.0)
@@ -63,7 +63,7 @@ module BBK
63
63
  # Publish message
64
64
  # @param routing_key [String] message routing key
65
65
  # @param message [Object] (object with headers and payload method)
66
- # @param exchange [Object] exchange for sending message
66
+ # @param exchange [String] exchange for sending message
67
67
  # @param options [Hash] message properties
68
68
  def publish_message(routing_key, message, exchange:, options: {})
69
69
  logger.debug "Try publish message #{message.headers.inspect}"
@@ -14,7 +14,7 @@ module BBK
14
14
  # @return [Array] array with delivery_info, metadata and payload
15
15
  def self.pop(queue, timeout = 10)
16
16
  unblocker = Queue.new
17
- consumer = queue.subscribe(block: false) do |delivery_info, metadata, payload|
17
+ consumer = queue.subscribe(block: false, manual_ack: true) do |delivery_info, metadata, payload|
18
18
  message = [
19
19
  delivery_info,
20
20
  metadata.to_hash.with_indifferent_access,
@@ -33,7 +33,7 @@ module BBK
33
33
  result = unblocker.pop
34
34
  consumer.cancel
35
35
  raise ::Timeout::Error if result == :timeout
36
-
36
+ queue.channel.ack(result[0].delivery_tag)
37
37
  result
38
38
  end
39
39
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbk-amqp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.93643
4
+ version: 1.0.0.105635
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoylenko Yuri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-18 00:00:00.000000000 Z
11
+ date: 2022-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport