messaging 4.0.7 → 4.0.9

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: 8d97703c43540975f23e063202772870e7439b03fb6c235a62542db64a59c903
4
- data.tar.gz: 4e8a8fc4b255ef40d46faf78e2b632a16b8b2005ff6ee3738f338337fcf2dae5
3
+ metadata.gz: dfa5d444fbee972667c0c86e069d65756c8dfc489a862fb27444bc021cfd70d2
4
+ data.tar.gz: 3c642fa38053fa3e598f306d4e821b420165b04a127a8c9df2b7b0cec891b78b
5
5
  SHA512:
6
- metadata.gz: fca2269ac7b7fa8bb3ab12231dd54c1bfb860d0fa24b9a9eaf616e5a5e58f36c256d838653f26d0019070d27e8082c9a0a638d0012976a4d1c4f014ca210fcf8
7
- data.tar.gz: db69ec7bdf8757fc37bae8f450bfa4652dfe3456d18568e33495d4e6e6a1dfe381ef562ec041c4de6bc41df9e32acaf890b5c408da3c5c61216298b234abaf8e
6
+ metadata.gz: f9147559561766fdefae21e8476516c7eb2c4d9d65b3b13d5494f24f4b21362b4f38495a4c0e9bc56d87f0364e71e10aab7796874a863ab50e461beaa72b7cd3
7
+ data.tar.gz: 12dbcc6f95debb8049cc88a199f816610cbf2bb83d57c7677d4aeb5819cf40cad91675fd93f4a0c06764bef2748c5b562843c33a5078ab7d0a71209b22d70453
@@ -34,6 +34,10 @@ module Messaging
34
34
 
35
35
  private
36
36
 
37
+ def categories
38
+ @categories ||= routes.flat_map(&:categories).map(&:to_s).uniq
39
+ end
40
+
37
41
  def refresh_latest_processed_transaction_id
38
42
  reload
39
43
  return if last_processed_transaction_id.present?
@@ -77,21 +77,17 @@ 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
90
90
  routes.flat_map(&:topics).map(&:to_s).uniq
91
91
  end
92
-
93
- def categories
94
- routes.flat_map(&:categories).map(&:to_s).uniq
95
- end
96
92
  end
97
93
  end
@@ -77,21 +77,18 @@ 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
90
90
  routes.flat_map(&:topics).map(&:to_s).uniq
91
91
  end
92
92
 
93
- def categories
94
- routes.flat_map(&:categories).map(&:to_s).uniq
95
- end
96
93
  end
97
94
  end
@@ -1,3 +1,3 @@
1
1
  module Messaging
2
- VERSION = '4.0.7'.freeze
2
+ VERSION = '4.0.9'.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.7
4
+ version: 4.0.9
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