bbk-amqp 1.0.0.105775 → 1.0.0.152789

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: 4c2ee59533f46be2cedd40258298ffd91acab3ab431e4b856233c16970fc370d
4
- data.tar.gz: f46345b907507f2cdf3ecdde858c591dceeb6e723a96f13492b7c0fa9222a8a9
3
+ metadata.gz: 0c7a6743f37e74634e75f4035eb7154a37acabfdc2a7b4c89122fe74a2d428b0
4
+ data.tar.gz: f37fda540ff9534e45d0d5f7574a2fabb425419ec0fcaba019bf54a7de9b49bb
5
5
  SHA512:
6
- metadata.gz: d7d408f8c6e3d657878edc34fbe06a6b739cca8f63457256e35b7ba9c4456ab101bedd425546b8161d3c1626e5e078820b630140e219bfdf06426bf274fa75a8
7
- data.tar.gz: 2d42e9502fa612b94ddcf797757b53081952a652fab266e138021e43ab675fb21497aeb299f82492feb7e87d915d3082b03a0dd666dd433aa55ba0f18eb2171c
6
+ metadata.gz: 31eecbb42e6a01ce73e59cee84b47a03948e68c82189c3d1ff628a3a0e3d389467a2c203a16747dcb3d2ade159b120b32b36c40554628eac59878117f73607ed
7
+ data.tar.gz: 5f2ababd39ba07ae06db495dc5dec1c36dd7f3879d89f85f9183cffdb3696b6980f0bf6a079179b55c48fb01a3d47169545feb75734e203cf179e874c68ec6a4
data/Gemfile CHANGED
@@ -4,4 +4,3 @@ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in bbk-amqp.gemspec
6
6
  gemspec
7
-
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bbk-amqp (1.0.0.105775)
4
+ bbk-amqp (1.0.0.152789)
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.21)
66
+ oj (3.15.0)
67
67
  parser (3.0.3.2)
68
68
  ast (~> 2.4.1)
69
69
  path_expander (1.1.0)
@@ -17,7 +17,7 @@ module BBK
17
17
  protocols: consumer.protocols,
18
18
  queue: amqp_consumer&.queue_name
19
19
  )
20
- @headers = @properties.except(:headers).merge(properties[:headers]).with_indifferent_access
20
+ @headers = @properties.except(:headers).merge(properties[:headers].presence || {}).with_indifferent_access
21
21
  @payload = begin
22
22
  Oj.load(body).with_indifferent_access
23
23
  rescue StandardError
@@ -44,11 +44,12 @@ module BBK
44
44
  end
45
45
  result = unblocker.pop
46
46
  if result == :timeout
47
+ consumed = true
47
48
  consumer.cancel
48
49
  raise ::Timeout::Error
49
50
  end
50
51
  queue.channel.ack(result[0].delivery_tag)
51
- sleep 0.1
52
+ sleep 0.2
52
53
  consumer.cancel
53
54
  result
54
55
  end
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.105775
4
+ version: 1.0.0.152789
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-10-27 00:00:00.000000000 Z
11
+ date: 2023-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport