RubyGems
npm
Organizations
Log in
Sign up
RubyGems
resque-workers-lock
Versions diffs
1.0.5 → 1.0.6
resque-workers-lock 1.0.5 → 1.0.6
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/resque/plugins/workers/lock.rb
+3
-1
metadata
+1
-1
data/lib/resque/plugins/workers/lock.rb
CHANGED
@@ -20,7 +20,9 @@ module Resque
20
20
21
21
def before_enqueue_lock(*args)
22
22
if enqueue_lock(*args)
23
-
Resque.redis.setnx(enqueue_lock(*args), true)
23
+
return
Resque.redis.setnx(enqueue_lock(*args), true)
24
+
else
25
+
return true
24
26
end
25
27
end
26
28
metadata
CHANGED
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: resque-workers-lock
3
3
version: !ruby/object:Gem::Version
4
-
version: 1.0.
5
4
+
version: 1.0.
6
5
5
prerelease:
6
6
platform: ruby
7
7
authors: