resque-multi-job-forks 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/resque-multi-job-forks.rb +1 -1
  3. metadata +17 -33
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 547447affcd4597d097b19c334aa1f7f6120343c
4
+ data.tar.gz: 2d34261455cc8c9c68e55f14c9feef725294db9d
5
+ SHA512:
6
+ metadata.gz: 8c525dd9d2df30ff8ca51e91eedd33137237b34d6abfbb907ceab4da9746487714dcf1615c0f0da06c12b1a813a62101d20e4040a44d992fa4753392d66d2985
7
+ data.tar.gz: c5edd7346d4877acb0dd7365e870a6c28c0fb71cd804037f7e53c72019202bd7b6e3bf9195f2fd6935c2973ec08bd119751df86aa60ebc0947c254326ac59cce
@@ -17,7 +17,7 @@ module Resque
17
17
  alias_method :perform, :perform_with_multi_job_forks
18
18
 
19
19
  def shutdown_with_multi_job_forks
20
- release_fork if fork_hijacked? && fork_job_limit_reached?
20
+ release_fork if fork_hijacked? && (fork_job_limit_reached? || @shutdown)
21
21
  shutdown_without_multi_job_forks
22
22
  end
23
23
  alias_method :shutdown_without_multi_job_forks, :shutdown?
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-multi-job-forks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
5
- prerelease:
4
+ version: 0.3.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Mick Staugaard
@@ -11,70 +10,62 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2013-02-26 00:00:00.000000000 Z
13
+ date: 2013-03-22 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: resque
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ~>
19
+ - - '='
22
20
  - !ruby/object:Gem::Version
23
- version: '1.22'
21
+ version: '1.23'
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
- - - ~>
26
+ - - '='
30
27
  - !ruby/object:Gem::Version
31
- version: '1.22'
28
+ version: '1.23'
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: json
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
- - - ! '>='
33
+ - - '>='
38
34
  - !ruby/object:Gem::Version
39
35
  version: '0'
40
36
  type: :runtime
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
- - - ! '>='
40
+ - - '>='
46
41
  - !ruby/object:Gem::Version
47
42
  version: '0'
48
43
  - !ruby/object:Gem::Dependency
49
44
  name: rake
50
45
  requirement: !ruby/object:Gem::Requirement
51
- none: false
52
46
  requirements:
53
- - - ! '>='
47
+ - - '>='
54
48
  - !ruby/object:Gem::Version
55
49
  version: '0'
56
50
  type: :development
57
51
  prerelease: false
58
52
  version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
53
  requirements:
61
- - - ! '>='
54
+ - - '>='
62
55
  - !ruby/object:Gem::Version
63
56
  version: '0'
64
57
  - !ruby/object:Gem::Dependency
65
58
  name: bundler
66
59
  requirement: !ruby/object:Gem::Requirement
67
- none: false
68
60
  requirements:
69
- - - ! '>='
61
+ - - '>='
70
62
  - !ruby/object:Gem::Version
71
63
  version: '0'
72
64
  type: :development
73
65
  prerelease: false
74
66
  version_requirements: !ruby/object:Gem::Requirement
75
- none: false
76
67
  requirements:
77
- - - ! '>='
68
+ - - '>='
78
69
  - !ruby/object:Gem::Version
79
70
  version: '0'
80
71
  description: When your resque jobs are frequent and fast, the overhead of forking
@@ -91,33 +82,26 @@ files:
91
82
  - test/test_resque-multi-job-forks.rb
92
83
  homepage: http://github.com/staugaard/resque-multi-job-forks
93
84
  licenses: []
85
+ metadata: {}
94
86
  post_install_message:
95
87
  rdoc_options: []
96
88
  require_paths:
97
89
  - lib
98
90
  required_ruby_version: !ruby/object:Gem::Requirement
99
- none: false
100
91
  requirements:
101
- - - ! '>='
92
+ - - '>='
102
93
  - !ruby/object:Gem::Version
103
94
  version: '0'
104
- segments:
105
- - 0
106
- hash: -2399220530953740688
107
95
  required_rubygems_version: !ruby/object:Gem::Requirement
108
- none: false
109
96
  requirements:
110
- - - ! '>='
97
+ - - '>='
111
98
  - !ruby/object:Gem::Version
112
99
  version: '0'
113
- segments:
114
- - 0
115
- hash: -2399220530953740688
116
100
  requirements: []
117
101
  rubyforge_project:
118
- rubygems_version: 1.8.23
102
+ rubygems_version: 2.0.3
119
103
  signing_key:
120
- specification_version: 3
104
+ specification_version: 4
121
105
  summary: Have your resque workers process more that one job
122
106
  test_files:
123
107
  - test/helper.rb