resque-population-control 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5b17d252694711dbed81ce90d2593ac7ce5f9e9
4
- data.tar.gz: 42d8099c6c380e43074bbf42d593c1f9294fbf5f
3
+ metadata.gz: 12df14cf5cd0637c29e83f1f0f6096dcc4b5bd8c
4
+ data.tar.gz: 2ff8e90d368fe63cd150de4cd73263a62b0b724b
5
5
  SHA512:
6
- metadata.gz: e6d17e54b008b1c63e389f43d6c08fa8822deeaf17c606cd8e0b904c87435d1c09ca979a34a6aca204881def3bd69eac1f2c544ba21c156a741784a03ddafa00
7
- data.tar.gz: 221be694ff83dee2dc75baae320c4604fb230a4cf8f051860d8141b332fd941c76024f899963d980cd25c4ce83c1373e4441896b1cb8df3b3e5892874e4d8424
6
+ metadata.gz: e6dc015a7751d6d7ed506392a1bf063ef403bc4de63363c4017c6229379c3c8ee41381a91bece445aba88536829c0c3a12ff916fcafc928b426151a97ebf0e74
7
+ data.tar.gz: 9b5cf43514c1348454c7f4ec056addfedda992fcdeea5159e97f1530337ecc4af6e9045c03ae841335902148d504cc70599068d2ecce6f3e805b8cdd9812a940
@@ -1,7 +1,7 @@
1
1
  module Resque
2
2
  module Plugins
3
3
  module PopulationControl
4
- VERSION = "0.6.0"
4
+ VERSION = "0.7.0"
5
5
 
6
6
  class PopulationExceeded < ::StandardError; end;
7
7
 
@@ -22,7 +22,7 @@ module Resque
22
22
  population_control_count >= population_control_max
23
23
  end
24
24
 
25
- def before_enqueue *args
25
+ def before_enqueue_population_control *args
26
26
  population_control_count = population_control_increment
27
27
  if population_control_count > population_control_max
28
28
  population_control_decrement
@@ -36,11 +36,11 @@ module Resque
36
36
  end
37
37
  end
38
38
 
39
- def after_perform *args
39
+ def after_perform_population_control *args
40
40
  population_control_decrement
41
41
  end
42
42
 
43
- def on_failure e, *args
43
+ def on_failure_population_control e, *args
44
44
  population_control_decrement
45
45
  end
46
46
 
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.6.0
4
+ version: 0.7.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: 2016-06-28 00:00:00.000000000 Z
11
+ date: 2016-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler