resque-workers-lock 2.0.1 → 3.0.0

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
- SHA1:
3
- metadata.gz: a240599f0ecc2716892ae8eb45e7abe12f2687b8
4
- data.tar.gz: 37ba38c9cb774ebf4fc293813800a99ac257d3b9
2
+ SHA256:
3
+ metadata.gz: 550341345e405c23f896c29155a6af17f6abf472ac1a11e2fea1a0c0cb60d657
4
+ data.tar.gz: c7fdab669f54cc3c4e969269ba7f1ef834cd0dc94cc75d10675d5e4148315757
5
5
  SHA512:
6
- metadata.gz: 005617d1f3650acf154d8c355a48d53c70906d61fad31cefbffb18adaaab7ba01497c55a57c674189ff38f2f95a42eac7c0d0671339ba7a7d9c9a5f1127c4d41
7
- data.tar.gz: 7c188eea29e6543b9eed0f1774bac4de11cecb5338e1d25e03b6bad927a976c3bccc148cfcff69fbdbeb8c0e7dbb1c9338a63d96f4f7f83ab2c9c8bf967fd83d
6
+ metadata.gz: d270cdd0880e5913fbf708344c42207c70a8393793002127202335cd10aca9a8107015a4d3dc90a638b9f860874400cdb39500bd2e84611d5cc2bcad70b52563
7
+ data.tar.gz: e1a965934d04f3b558e80bd488180b1817d800970440a08362555c19c37e7de41c34055d994efe4b59c226b15f6af6b78eb3cb2640cc4ed5fd2f16a7578b2c05
@@ -59,7 +59,7 @@ module Resque
59
59
  if lock_workers(*args)
60
60
  lock_result = get_lock_workers(*args)
61
61
 
62
- if Resque.redis.msetnx lock_result.zip([true]*lock_result.size).flatten
62
+ if Resque.redis.msetnx lock_result.zip(['true']*lock_result.size).flatten
63
63
  lock_result.each do |lock|
64
64
  Resque.redis.expire(lock, worker_lock_timeout(*args))
65
65
  end
@@ -0,0 +1,9 @@
1
+ module Resque
2
+ module Plugins
3
+ module Workers
4
+ module Lock
5
+ VERSION = "3.0.0"
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,2 @@
1
+ require 'resque-workers-lock/version'
2
+ require 'resque/plugins/workers/lock'
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: 2.0.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bart Olsthoorn
@@ -9,10 +9,11 @@ authors:
9
9
  - Jason Garber
10
10
  - Tijs Planckaert
11
11
  - Anton Bogdanovich
12
+ - Arian Faurtosh
12
13
  autorequire:
13
14
  bindir: bin
14
15
  cert_chain: []
15
- date: 2016-02-19 00:00:00.000000000 Z
16
+ date: 2024-02-14 00:00:00.000000000 Z
16
17
  dependencies:
17
18
  - !ruby/object:Gem::Dependency
18
19
  name: resque
@@ -42,6 +43,20 @@ dependencies:
42
43
  - - ">="
43
44
  - !ruby/object:Gem::Version
44
45
  version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: pry
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ type: :development
54
+ prerelease: false
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
45
60
  description: |
46
61
  A Resque plugin. Two or more jobs with the same lock cannot be processed simultaneously by multiple workers.
47
62
  When this situation occurs the second job gets pushed back to the queue.
@@ -53,6 +68,8 @@ files:
53
68
  - LICENSE
54
69
  - README.md
55
70
  - Rakefile
71
+ - lib/resque-workers-lock.rb
72
+ - lib/resque-workers-lock/version.rb
56
73
  - lib/resque/plugins/workers/lock.rb
57
74
  - test/lock_mkey_test.rb
58
75
  - test/lock_test.rb
@@ -77,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
94
  - !ruby/object:Gem::Version
78
95
  version: '0'
79
96
  requirements: []
80
- rubyforge_project:
81
- rubygems_version: 2.4.6
97
+ rubygems_version: 3.0.3.1
82
98
  signing_key:
83
99
  specification_version: 4
84
100
  summary: Resque plugin, prevent specific jobs to be processed simultaneously by multiple