bbk-amqp 1.0.0.99701 → 1.0.0.105683

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/bbk/amqp/utils.rb +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f42b07401e0f819229c6e55130746679816b74b79315fdf60defcbec663fc72
4
- data.tar.gz: c6ab751dcf15c80feb2a0fb40388e8058faffb0bdc15e74360b2d05eb0a1233b
3
+ metadata.gz: 8b0cf40f223ad98321c2585561830b848c5f5f910c3735e58f25e89c10c27495
4
+ data.tar.gz: f5557d4fcdc315583d2d3dece0162e1a5316a149b901cf9a6da7b23caa51a22d
5
5
  SHA512:
6
- metadata.gz: c74e764d9d57383d6cf5e3b97a921718e8e12268b7f50a21dc7ca29e3b5fbd3bb565d90cfcf381fde27e6c3b76c40691ddc07fc27559cb5c3e2c64cafbeeeb1a
7
- data.tar.gz: 02ade7378e0f7d6a05adc29d0fb7f3e9879c849b0a94eb7f651cf99bbdc1c6c32eba50decba6539383413ae98bf2df1abb501a6d8beafb0575ad3b8c3d94a304
6
+ metadata.gz: 85a5f458d11e8b29765478aa79ff70f9b6b5d1cf35905172ca7801fe8f697cc07ea1009131f369c16cb99e5a243ddf7c2ef4c48fe16ae9ce62912b5ee1a4c21a
7
+ data.tar.gz: 3e576a2335e29c111fcfba695b9ff4866f588f623117f010b7b5cc87c8974e27e7917966ddb9eda6e87eaadeb2c1b265dfaf3cd5ae58c92a2ea90fc9ae3ee17e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bbk-amqp (1.0.0.99701)
4
+ bbk-amqp (1.0.0.105683)
5
5
  activesupport (>= 6.0)
6
6
  bbk-utils (> 1.0.1)
7
7
  bunny (>= 2.19.0)
@@ -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.99701
4
+ version: 1.0.0.105683
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-09-15 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