faye-redis-ng 1.0.13 → 1.0.14
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 +22 -1
- data/README.md +4 -4
- data/lib/faye/redis/client_registry.rb +1 -1
- data/lib/faye/redis/subscription_manager.rb +1 -1
- data/lib/faye/redis/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: 373a87a923a27a2ccc86db6aa8d59cb5829c2e75c7942909978f8a6f43bcc204
|
|
4
|
+
data.tar.gz: 73cda34a1ddac6978d1dee6f6c77939330fe906ae0f93d463017d7bd57dd5137
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46fa3be0a4df47bd4eb02cb028a2e2d1a9a2dafdeae062bfa1c9b3a85ccda0b3a29a27e63635a406ff22754c4d661d200ff3a9b263ee75140df8494bf088b58b
|
|
7
|
+
data.tar.gz: df1751e3517692c8d62d8cf0887b5d9974878e31b0fa4ab13ba603c5d85c951de6437836580eaddc4cfc3e73e4b98b3aaa970f088b6264ba685c2a03b9152eb7
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.0.14] - 2025-11-06
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **Redis 5.0 Deprecation Warnings**: Updated Redis gem method calls to use predicate versions
|
|
14
|
+
- Changed `srem` to `srem?` in `SubscriptionManager#cleanup_orphaned_subscriptions_batched` (subscription_manager.rb:334)
|
|
15
|
+
- Changed `sadd` to `sadd?` in `ClientRegistry#rebuild_clients_index` (client_registry.rb:223)
|
|
16
|
+
- **Impact**: Eliminates deprecation warnings when using Redis gem 5.0+
|
|
17
|
+
- **Rationale**: Predicate versions (`srem?`, `sadd?`) are more semantic when return values aren't used
|
|
18
|
+
- **Compatibility**: Fully compatible with Redis gem 4.0+ and 5.0+
|
|
19
|
+
|
|
20
|
+
### Notes
|
|
21
|
+
- No functional changes - purely addressing deprecation warnings
|
|
22
|
+
- Drop-in replacement for v1.0.13
|
|
23
|
+
|
|
10
24
|
## [1.0.13] - 2025-11-01
|
|
11
25
|
|
|
12
26
|
### Added - Ping-Based Subscription TTL Refresh
|
|
@@ -548,7 +562,14 @@ For 100 subscribers receiving one message:
|
|
|
548
562
|
### Security
|
|
549
563
|
- Client and message IDs now use `SecureRandom.uuid` instead of predictable time-based generation
|
|
550
564
|
|
|
551
|
-
[Unreleased]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.
|
|
565
|
+
[Unreleased]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.14...HEAD
|
|
566
|
+
[1.0.14]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.13...v1.0.14
|
|
567
|
+
[1.0.13]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.12...v1.0.13
|
|
568
|
+
[1.0.12]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.11...v1.0.12
|
|
569
|
+
[1.0.11]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.10...v1.0.11
|
|
570
|
+
[1.0.10]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.9...v1.0.10
|
|
571
|
+
[1.0.9]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.8...v1.0.9
|
|
572
|
+
[1.0.8]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.7...v1.0.8
|
|
552
573
|
[1.0.7]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.6...v1.0.7
|
|
553
574
|
[1.0.6]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.5...v1.0.6
|
|
554
575
|
[1.0.5]: https://github.com/7a6163/faye-redis-ng/compare/v1.0.4...v1.0.5
|
data/README.md
CHANGED
|
@@ -212,7 +212,7 @@ gem build faye-redis-ng.gemspec
|
|
|
212
212
|
### Installing Locally
|
|
213
213
|
|
|
214
214
|
```bash
|
|
215
|
-
gem install ./faye-redis-ng-
|
|
215
|
+
gem install ./faye-redis-ng-1.0.14.gem
|
|
216
216
|
```
|
|
217
217
|
|
|
218
218
|
### Releasing to RubyGems
|
|
@@ -224,8 +224,8 @@ This project uses GitHub Actions for automated releases. To publish a new versio
|
|
|
224
224
|
3. Create and push a git tag:
|
|
225
225
|
|
|
226
226
|
```bash
|
|
227
|
-
git tag
|
|
228
|
-
git push origin
|
|
227
|
+
git tag v1.0.14
|
|
228
|
+
git push origin v1.0.14
|
|
229
229
|
```
|
|
230
230
|
|
|
231
231
|
The CI/CD pipeline will automatically:
|
|
@@ -236,7 +236,7 @@ The CI/CD pipeline will automatically:
|
|
|
236
236
|
|
|
237
237
|
**Prerequisites:**
|
|
238
238
|
- Add `RUBYGEMS_API_KEY` to GitHub repository secrets
|
|
239
|
-
- The tag must start with 'v' (e.g.,
|
|
239
|
+
- The tag must start with 'v' (e.g., v1.0.14, v1.2.3)
|
|
240
240
|
|
|
241
241
|
## Memory Management
|
|
242
242
|
|
|
@@ -220,7 +220,7 @@ module Faye
|
|
|
220
220
|
# Rebuild index atomically
|
|
221
221
|
redis.multi do |multi|
|
|
222
222
|
multi.del(index_key)
|
|
223
|
-
active_client_ids.each { |id| multi.sadd(index_key, id) } if active_client_ids.any?
|
|
223
|
+
active_client_ids.each { |id| multi.sadd?(index_key, id) } if active_client_ids.any?
|
|
224
224
|
end
|
|
225
225
|
|
|
226
226
|
puts "[Faye::Redis::ClientRegistry] INFO: Rebuilt clients index with #{active_client_ids.size} active clients" if @options[:log_level] != :silent
|
|
@@ -331,7 +331,7 @@ module Faye
|
|
|
331
331
|
|
|
332
332
|
channels.each do |channel|
|
|
333
333
|
pipeline.del(subscription_key(client_id, channel))
|
|
334
|
-
pipeline.srem(channel_subscribers_key(channel), client_id)
|
|
334
|
+
pipeline.srem?(channel_subscribers_key(channel), client_id)
|
|
335
335
|
end
|
|
336
336
|
|
|
337
337
|
pipeline.del("#{namespace}:messages:#{client_id}")
|
data/lib/faye/redis/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: faye-redis-ng
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zac
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: redis
|