queue-bus 0.13.5 → 0.13.6

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: 4a8e36380e0dcdaab1793054edc1310afbff18d2f4e30faff50881ac09867035
4
- data.tar.gz: ea3cf16759585c10ff92bb306617419bd312714881372f210d4eaa4147869f1e
3
+ metadata.gz: 500e592a3741d0ce34feb2a39fb603d562e5d72771c8134a2002e6a4a2bcbc60
4
+ data.tar.gz: d4b6febb4d5be7acdaea3ed0697c2758ab2c77a365d9c4cae48d2a72c49efdd5
5
5
  SHA512:
6
- metadata.gz: afde487f3a1c8667ec91fe253aedccdc31e10c3798f609e265db4f307a061d2d62143067f427197e029552e68768f3913f688f77181f78f9efa4a2ad5bc701f5
7
- data.tar.gz: 4aa9a1eaba6294fa03a13d38580678783249bae6700310164c3d38d8ac1bb9f7eecc1f686d4fb8a58317790d6edf3f8a4a1c369f3ee3f55680a2ec4056e2536e
6
+ metadata.gz: 3fe8c421c706f6ddeb65eef00f0dc943282e54220a82b494118e556f3e07b0b8f3923ed71043134868ae4f47966fd1e5b39eee05357bd59fff0c2814d487e8d5
7
+ data.tar.gz: 3e66f46b18f40268894879b891fa34d9c520590fb5f2827a11727cca780b7554a37a436d073e5ee3f06e2178e9357d3e5d07e3bcd5296363125e17d9b6e56743
data/CHANGELOG.md CHANGED
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.13.6]
10
+ - Fixing setnx deprecation
11
+
9
12
  ## [0.13.5]
10
13
  - updating redis.pipelined usage to fix the redis-4.8.1 deprecation.
11
14
 
@@ -20,7 +20,7 @@ module QueueBus
20
20
 
21
21
  ::QueueBus.redis do |redis|
22
22
  # return true if we successfully acquired the lock
23
- return timeout if redis.setnx(lock_key, timeout)
23
+ return timeout if redis.set(lock_key, timeout, nx: true)
24
24
 
25
25
  # see if the existing timeout is still valid and return false if it is
26
26
  # (we cannot acquire the lock during the timeout period)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QueueBus
4
- VERSION = '0.13.5'
4
+ VERSION = '0.13.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queue-bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.5
4
+ version: 0.13.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Leonard