resque-population-control 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/resque/plugins/population_control.rb +6 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c499dd543d9b0e214f2c557317783626225163e0
|
4
|
+
data.tar.gz: 5b454332eb9b9233b51845b8c04352f1c5acec45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ae0703706bd51aeeb047b35d7a89cb3b281174c230f96fa9881dd2425e53c0058357f6e4c52bec1191dfb2e4f996694eec577bb4d45721b4d195f250d7e9382
|
7
|
+
data.tar.gz: 0433fd78e8f0b592f10364b8773ad4131ed15e86f12d890d825dc0ce579fc6be7af4f8cf76bf7c35af6a160e9a723b307dbc947f2b49a29180606eff140518f9
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,14 @@
|
|
1
1
|
module Resque
|
2
2
|
module Plugins
|
3
3
|
module PopulationControl
|
4
|
-
VERSION = "0.
|
4
|
+
VERSION = "0.8.0"
|
5
5
|
|
6
6
|
class PopulationExceeded < ::StandardError; end;
|
7
7
|
|
8
|
+
class << self
|
9
|
+
attr_accessor :redis
|
10
|
+
end
|
11
|
+
|
8
12
|
def population_control max, options = {}
|
9
13
|
@population_control_max = max
|
10
14
|
@population_control_options = options
|
@@ -61,7 +65,7 @@ module Resque
|
|
61
65
|
end
|
62
66
|
|
63
67
|
def population_control_redis
|
64
|
-
@population_control_redis ||= Resque.redis.redis
|
68
|
+
@population_control_redis ||= Resque::Plugins::PopulationControl.redis || Resque.redis.redis
|
65
69
|
end
|
66
70
|
|
67
71
|
def population_control_cache_key
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-population-control
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Misha Conway
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
92
|
+
rubygems_version: 2.6.7
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: Restrict max number of resque jobs.
|