messaging 4.0.6 → 4.0.8

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: 453b65c49cebcc69c61734174427b71bfcb5f8a7a2a3e95accede52187c20d7e
4
- data.tar.gz: 8fc1ca7183766a39ed816a5cdd20951158d1b374f50f1be37048894d4a208869
3
+ metadata.gz: f905acc6e7fb4a8475648b2007787c8a8019bfe19c402e7d052fbeac5f50fb37
4
+ data.tar.gz: a934234063a52c36daa669129f44f3fb999b8945eb35a0d7f6c0181e5abba721
5
5
  SHA512:
6
- metadata.gz: ae7f4188feebdfbcd9751389f4935cff0642211733c7413647d978aa8bf68fbc2efaa6024ae68a6988214e394de00e16c22f09784fd0b4026e21a2ffdc4f1915
7
- data.tar.gz: 838050ea4683a816eb080cca3f6595159d4da2a345a9e9fea8b5ac58b69d4e9010eef71f7a74b2cd863ccdcab01a51dd6e3238ea812f9d80548effb28e3fba29
6
+ metadata.gz: 6275d0dfacce6c3c5957bb28aa1b374af0b61aeef5a3cd8965ee1e2cce6ebb51f350fcdb4cd8ae50bf94027227cd74b7996e124df3e89989ae0549adb4569289
7
+ data.tar.gz: 68b1baa8eba18ff12dd878b2fe56582ebb4950f4dc5fbabaddd05a706eaf654b9286e0ee2538eda393eba1459fba0dfcc260cea32c36b2a1b6c47c7abfa29a81
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- messaging (4.0.6)
4
+ messaging (4.0.7)
5
5
  activerecord
6
6
  activesupport
7
7
  after_transaction
@@ -30,7 +30,10 @@ module Messaging
30
30
  # Rails version < 6
31
31
  def self.instantiate(attributes, *_args)
32
32
  attributes['message_type'].constantize.new(
33
- JSON.parse(attributes['data']).merge(stream_position: attributes['stream_position'])
33
+ JSON.parse(attributes['data']).merge(
34
+ stream_position: attributes['stream_position'],
35
+ transaction_id: attributes['transaction_id'],
36
+ global_position: attributes['id'])
34
37
  )
35
38
  end
36
39
 
@@ -77,13 +77,13 @@ module Messaging
77
77
 
78
78
  # Internal: Used by Rails reloading in development.
79
79
  def clear_routes!
80
- @routes = Set.new
80
+ @routes = Concurrent::Set.new
81
81
  end
82
82
 
83
83
  private
84
84
 
85
85
  def routes
86
- @routes ||= Set.new
86
+ @routes ||= Concurrent::Set.new
87
87
  end
88
88
 
89
89
  def topics
@@ -77,13 +77,13 @@ module Messaging
77
77
 
78
78
  # Internal: Used by Rails reloading in development.
79
79
  def clear_routes!
80
- @routes = Set.new
80
+ @routes = Concurrent::Set.new
81
81
  end
82
82
 
83
83
  private
84
84
 
85
85
  def routes
86
- @routes ||= Set.new
86
+ @routes ||= Concurrent::Set.new
87
87
  end
88
88
 
89
89
  def topics
@@ -1,3 +1,3 @@
1
1
  module Messaging
2
- VERSION = '4.0.6'.freeze
2
+ VERSION = '4.0.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.6
4
+ version: 4.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bukowskis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-05 00:00:00.000000000 Z
11
+ date: 2024-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord