queue_classic_plus 4.0.0.alpha15 → 4.0.0.alpha16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/queue_classic_plus/base.rb +5 -1
- data/lib/queue_classic_plus/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: 1ca2467a415dbb231b97492a6b223945a08c79a704209c9f5cbdcc6317a51643
|
4
|
+
data.tar.gz: 497545d4065d6cd1c03a39591b04174fbff95899871a1b0dcb1d33a4d5cc4bdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c46e104255d291c0bee0e2c5517bb72c1ced81f860fb8f7ee1474973ed806f92c5352bfb060e9f538dcacd9e43dfd8ad2100539931bf21f9d567a4456e6e64c
|
7
|
+
data.tar.gz: 6102b297532d4cc30c30825deb42a82121460d773f0881a250ea5280803aa0d959279cf4e1baee8e4719d41840afbb1e332a9b598b9ef9711ceed1b31da31cbe
|
@@ -2,12 +2,16 @@ module QueueClassicPlus
|
|
2
2
|
class Base
|
3
3
|
extend QueueClassicPlus::InheritableAttribute
|
4
4
|
|
5
|
+
# Max value for bigint calculated from
|
6
|
+
# https://stackoverflow.com/questions/28960478/postgres-maximum-value-for-bigint
|
7
|
+
PG_BIGINT_MAX = 9223372036854775807.freeze
|
8
|
+
|
5
9
|
def self.queue
|
6
10
|
QC::Queue.new(@queue)
|
7
11
|
end
|
8
12
|
|
9
13
|
def self.queue_name_digest
|
10
|
-
@queue_name_digest ||= @queue.to_s.to_i(36)
|
14
|
+
@queue_name_digest ||= @queue.to_s.to_i(36) % PG_BIGINT_MAX
|
11
15
|
end
|
12
16
|
|
13
17
|
inheritable_attr :locked
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: queue_classic_plus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.alpha16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Mathieu
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-08-
|
13
|
+
date: 2023-08-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: queue_classic
|