faye-redis-ng 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/faye/redis/client_registry.rb +2 -2
- data/lib/faye/redis/subscription_manager.rb +5 -5
- data/lib/faye/redis/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 699f1995764ed2a5634956a06c84b89daf6b68bdfa54f7f0c0f44d9cbd4f3e03
|
4
|
+
data.tar.gz: 6fe62df2b60a0d2d43cd001c93147e95f4a19355db7b1ebb3437b1c9ab567ae1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47807e29747264e5bf6847fbe177f4e9a83cb7e7e75b0d0f297b2580579252d81e13588a93daa0efae3b02b4cb30bd91e97f59c63c4f1420dc0f2b9ad1e3a45d
|
7
|
+
data.tar.gz: 8a3110fdf417cc65b2a0fe98eb57423a5eeffe1e6df7e867a206ee14a71f7b990e4b06aad2a5c5c6c16d028455d5138df17086a04ab3b8f9388ed8af0da0b3f9
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [1.0.2] - 2025-10-06
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
- **Redis 5.0 Compatibility**: Changed `sadd`/`srem` to `sadd?`/`srem?` to eliminate deprecation warnings in Redis 5.0+
|
14
|
+
|
10
15
|
## [1.0.1] - 2025-10-06
|
11
16
|
|
12
17
|
### Changed
|
@@ -42,6 +47,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
42
47
|
### Security
|
43
48
|
- Client and message IDs now use `SecureRandom.uuid` instead of predictable time-based generation
|
44
49
|
|
45
|
-
[Unreleased]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.
|
50
|
+
[Unreleased]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.2...HEAD
|
51
|
+
[1.0.2]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.1...v1.0.2
|
46
52
|
[1.0.1]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.0...v1.0.1
|
47
53
|
[1.0.0]: https://github.com/7a6163/faye-redis-ng/releases/tag/v1.0.0
|
@@ -23,7 +23,7 @@ module Faye
|
|
23
23
|
@connection.with_redis do |redis|
|
24
24
|
redis.multi do |multi|
|
25
25
|
multi.hset(client_key(client_id), client_data.transform_keys(&:to_s))
|
26
|
-
multi.sadd(clients_index_key, client_id)
|
26
|
+
multi.sadd?(clients_index_key, client_id)
|
27
27
|
multi.expire(client_key(client_id), client_timeout)
|
28
28
|
end
|
29
29
|
end
|
@@ -39,7 +39,7 @@ module Faye
|
|
39
39
|
@connection.with_redis do |redis|
|
40
40
|
redis.multi do |multi|
|
41
41
|
multi.del(client_key(client_id))
|
42
|
-
multi.srem(clients_index_key, client_id)
|
42
|
+
multi.srem?(clients_index_key, client_id)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
@@ -15,10 +15,10 @@ module Faye
|
|
15
15
|
@connection.with_redis do |redis|
|
16
16
|
redis.multi do |multi|
|
17
17
|
# Add channel to client's subscriptions
|
18
|
-
multi.sadd(client_subscriptions_key(client_id), channel)
|
18
|
+
multi.sadd?(client_subscriptions_key(client_id), channel)
|
19
19
|
|
20
20
|
# Add client to channel's subscribers
|
21
|
-
multi.sadd(channel_subscribers_key(channel), client_id)
|
21
|
+
multi.sadd?(channel_subscribers_key(channel), client_id)
|
22
22
|
|
23
23
|
# Store subscription metadata
|
24
24
|
multi.hset(
|
@@ -30,7 +30,7 @@ module Faye
|
|
30
30
|
|
31
31
|
# Handle wildcard patterns
|
32
32
|
if channel.include?('*')
|
33
|
-
multi.sadd(patterns_key, channel)
|
33
|
+
multi.sadd?(patterns_key, channel)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -46,10 +46,10 @@ module Faye
|
|
46
46
|
@connection.with_redis do |redis|
|
47
47
|
redis.multi do |multi|
|
48
48
|
# Remove channel from client's subscriptions
|
49
|
-
multi.srem(client_subscriptions_key(client_id), channel)
|
49
|
+
multi.srem?(client_subscriptions_key(client_id), channel)
|
50
50
|
|
51
51
|
# Remove client from channel's subscribers
|
52
|
-
multi.srem(channel_subscribers_key(channel), client_id)
|
52
|
+
multi.srem?(channel_subscribers_key(channel), client_id)
|
53
53
|
|
54
54
|
# Delete subscription metadata
|
55
55
|
multi.del(subscription_key(client_id, channel))
|
data/lib/faye/redis/version.rb
CHANGED