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 +4 -4
- data/lib/messaging/adapters/postgres/consumer.rb +4 -0
- data/lib/messaging/routing.rb +2 -6
- data/lib/messaging/routing_23.rb +2 -5
- data/lib/messaging/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfa5d444fbee972667c0c86e069d65756c8dfc489a862fb27444bc021cfd70d2
|
4
|
+
data.tar.gz: 3c642fa38053fa3e598f306d4e821b420165b04a127a8c9df2b7b0cec891b78b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9147559561766fdefae21e8476516c7eb2c4d9d65b3b13d5494f24f4b21362b4f38495a4c0e9bc56d87f0364e71e10aab7796874a863ab50e461beaa72b7cd3
|
7
|
+
data.tar.gz: 12dbcc6f95debb8049cc88a199f816610cbf2bb83d57c7677d4aeb5819cf40cad91675fd93f4a0c06764bef2748c5b562843c33a5078ab7d0a71209b22d70453
|
data/lib/messaging/routing.rb
CHANGED
@@ -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
|
data/lib/messaging/routing_23.rb
CHANGED
@@ -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
|
data/lib/messaging/version.rb
CHANGED
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.
|
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
|
11
|
+
date: 2024-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|