bbk-amqp 1.0.0.82233 → 1.0.0.82255

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: 1c4691eeb1a8c742af5a8678ed18f4ab9c198765e6e189716b972bfcdde3c409
4
- data.tar.gz: 8fac5db1263e73f8e2fa5bf3aed867d297933cfd981ec364b559a5bc20959dc1
3
+ metadata.gz: d96acd31582f6d08bb3ead76fa6cef86927cc2f6788bcc6f9bb4dd172d4734a6
4
+ data.tar.gz: 6deb1160d3c82a8007c10853880b59b0f3c785743b431388cefedb0a2865bd6d
5
5
  SHA512:
6
- metadata.gz: fa1ea15621d89c371748dc3b1227efcd2162d13ba10e761d0520cdaf51b97590f9af8205a119b15eb1e9f6ae897c9edad8b5b8aca44c9046c80e8233f0c7f651
7
- data.tar.gz: 664f3ad951d06369bcbc3c1994b986a44a83ef32732eaf8ff95ecd4657c035de08e54dbcc49071e5df9c3cc6431e0d176322714d0c37e934d3326039aa9ec36e
6
+ metadata.gz: 3f6c7740a23bff9fd1ea7d4305eeae509ecece8383851bf79b9e8f1314e67bfe8041b411e51d535195c15311b7b4e9e24cceabbf57c11a6a744f635373abccc1
7
+ data.tar.gz: 18c8815fb960e9eae38f9b9cc99e099e27adad437476feb5555bcf55e5755a210e77454b34cb692119fecc7f2240af2427217bbbaa71876a651882a7e9641886
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bbk-amqp (1.0.0.82233)
4
+ bbk-amqp (1.0.0.82255)
5
5
  activesupport (~> 6.0)
6
6
  bbk-utils (> 1.0.1)
7
7
  bunny (>= 2.19.0)
@@ -75,6 +75,11 @@ module BBK
75
75
  # user_id: client_name,
76
76
  **message.headers.select {|k| HEADER_PROP_FIELDS.include? k }.compact
77
77
  }.merge(options).symbolize_keys
78
+ properties[:user_id] = if (user_id = message.headers[:user_id]).present?
79
+ user_id
80
+ else
81
+ client_name
82
+ end
78
83
  send_message(exchange, routing_key, message.payload, properties)
79
84
  end
80
85
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbk-amqp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.82233
4
+ version: 1.0.0.82255
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoylenko Yuri