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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e3327fa35fa968f92630a9d685f0d27763c91b679dd81afedcf66eb82cfb4e6
4
- data.tar.gz: 6596b94f8a5c7bd4759d92bf08443b14b0275778c02cc87350d1ca8f280da22f
3
+ metadata.gz: 699f1995764ed2a5634956a06c84b89daf6b68bdfa54f7f0c0f44d9cbd4f3e03
4
+ data.tar.gz: 6fe62df2b60a0d2d43cd001c93147e95f4a19355db7b1ebb3437b1c9ab567ae1
5
5
  SHA512:
6
- metadata.gz: 108c24e164ac1e9705159c17f80c26580b4002f7ad5d9ba22ab34cd019d1eb476c3f8fc7aa2887eb95f40371beb3ad61d81fdeadf652b1ce6708c1fe58d39d28
7
- data.tar.gz: 98f8a29ad3ccd1bd621de763299e3a549a34cc37f797f8e92493a704a0f2281dfd3f8482cd897bedf8fad72c010a11d9b4cbf3ccd2ff1b6a9601aa5e5037c0bd
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.1...HEAD
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))
@@ -1,5 +1,5 @@
1
1
  module Faye
2
2
  class Redis
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faye-redis-ng
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zac