rpush 7.0.0 → 7.0.1

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: 92cd836109dce22fe3308276ba9dfef44eb2568199527f152beb848711ad6b07
4
- data.tar.gz: bd276ebd3983b2f59a2382b02ecb1806bc3dc08996e565c097308abd2809b351
3
+ metadata.gz: 409c28bf9f63343232e1c7db56f8d7131acc70b4828032059f37eab3a4606e6c
4
+ data.tar.gz: 3f07d7e79828fa43ab5ed73a9b19183a9f4ac9e5a3d8891f1ecfec42c7375c03
5
5
  SHA512:
6
- metadata.gz: 8971bc32c3b3b9f17a3bfe6d1c4aeb80ca40238d0598061dc6f59eae2f453e3c2cd0cefb2f39092c4842ed220f8c424214d3ce37fa8828b7cd0085324164b061
7
- data.tar.gz: f825acf76c812b53746c26829206d9c7641566820fb6abdcc1113493bedd0bfe9b511acb13d1175c9024e51c4435d535c2931c72545ec17edf797c62537f1e4e
6
+ metadata.gz: 400a7241c337ff9874767be4ee051d1494676665bd17e9b3acb2e3ce8efae236971a138888da6c0172e0c649276e97f4d639430733bad345e7980d408e8c3436
7
+ data.tar.gz: e81b66da807a2bc8a386a12825aed37c452672be899b69ff633d65b80548903669e7d63b3b1eec899633557a489157e8083ed562b2665c017566df9ad220c151
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v7.0.1](https://github.com/rpush/rpush/tree/v7.0.1) (2022-03-02)
4
+
5
+ [Full Changelog](https://github.com/rpush/rpush/compare/v7.0.0...v7.0.1)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Fix deprecation warnings from the redis gem [\#636](https://github.com/rpush/rpush/pull/636) ([sharang-d](https://github.com/sharang-d))
10
+
3
11
  ## [Unreleased](https://github.com/rpush/rpush/tree/HEAD)
4
12
 
5
13
  [Full Changelog](https://github.com/rpush/rpush/compare/v7.0.0...HEAD)
@@ -152,10 +152,10 @@ module Rpush
152
152
  retryable_ns = Rpush::Client::Redis::Notification.absolute_retryable_namespace
153
153
 
154
154
  Modis.with_connection do |redis|
155
- retryable_results = redis.multi do
155
+ retryable_results = redis.multi do |transaction|
156
156
  now = Time.now.to_i
157
- redis.zrangebyscore(retryable_ns, 0, now)
158
- redis.zremrangebyscore(retryable_ns, 0, now)
157
+ transaction.zrangebyscore(retryable_ns, 0, now)
158
+ transaction.zremrangebyscore(retryable_ns, 0, now)
159
159
  end
160
160
 
161
161
  retryable_results.first
@@ -167,9 +167,9 @@ module Rpush
167
167
  pending_ns = Rpush::Client::Redis::Notification.absolute_pending_namespace
168
168
 
169
169
  Modis.with_connection do |redis|
170
- pending_results = redis.multi do
171
- redis.zrange(pending_ns, 0, limit)
172
- redis.zremrangebyrank(pending_ns, 0, limit)
170
+ pending_results = redis.multi do |transaction|
171
+ transaction.zrange(pending_ns, 0, limit)
172
+ transaction.zremrangebyrank(pending_ns, 0, limit)
173
173
  end
174
174
 
175
175
  pending_results.first
data/lib/rpush/version.rb CHANGED
@@ -2,7 +2,7 @@ module Rpush
2
2
  module VERSION
3
3
  MAJOR = 7
4
4
  MINOR = 0
5
- TINY = 0
5
+ TINY = 1
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".").freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Leitch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-21 00:00:00.000000000 Z
11
+ date: 2022-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json