resque-one 1.0.0 → 1.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: 8c0556c80e549f3e8633256222bc399828b978bbd6f948fe546d26cd3ceadde2
4
- data.tar.gz: bedb58a9c4a9f4d856f021389b0d7c51122bc444c6cca1720228c1e3b857396b
3
+ metadata.gz: cf1615b9a144ec043dccfbb6a6600f23d247f0da33fed1ed40e721260a88d5a1
4
+ data.tar.gz: 4d0f29a1e56ca45d4ee38fc884ca74b856cddfff8134cab44fe88062037c6d9f
5
5
  SHA512:
6
- metadata.gz: 847b705d23d9f02cb36646f96ba38bdfaf606d41dcf39cd28e66bf6f95178cca2d486b778b528dcc83d8b5077a7613be16d778e94569c359739b480cb1ca9179
7
- data.tar.gz: ef95240af85388fd81ae1ff6c4db0ccc6cb173fdf4b2fd68db4670254b5a4a542106134ef9edbe1afe6a0c4af9ef122c3f6bfb52b170dc2ff037f5c14d10ebb3
6
+ metadata.gz: 962001d312748ef6504b3d97473a9389395cc1da343e12d3a8061d3bbfcad00dc797253fed2a35d2dd3c82db3e86203ace6ae7344f1a3ffb12a329789e5e62e8
7
+ data.tar.gz: a9e7a9ebd60a400d6ea47c165baafc1c6f6e3b7dbebc0b43cbbe9f827b3c88cf543cef3b3e4cb0c7cfb0b0c31dd9e2e65a01057b6280f26051b05de0bfcaf629
@@ -12,7 +12,7 @@ module Resque
12
12
  end
13
13
 
14
14
  def locked?(job_info)
15
- redis.keys(key_for(job_info)).any?
15
+ !redis.get(key_for(job_info)).nil?
16
16
  end
17
17
 
18
18
  def lock(job_info)
@@ -31,7 +31,7 @@ module Resque
31
31
  job_info = JobInfo.new klass, args
32
32
 
33
33
  if job_info.one?
34
- queue_locker = QueueLocker.new redis, Resque.queue_from_class(job_info.klass)
34
+ queue_locker = QueueLocker.new redis, queue_from_class(job_info.klass)
35
35
  if args.empty?
36
36
  queue_locker.unlock_all job_info.klass
37
37
  else
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module One
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-one
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-20 00:00:00.000000000 Z
11
+ date: 2022-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: resque