resque-multi-job-forks 0.3.5 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/resque-multi-job-forks.rb +6 -2
  2. metadata +8 -8
@@ -117,12 +117,16 @@ module Resque
117
117
  # Call with a block to set the hook.
118
118
  # Call with no arguments to return the hook.
119
119
  def self.before_child_exit(&block)
120
- block ? (@before_child_exit = block) : @before_child_exit
120
+ if block
121
+ @before_child_exit ||= []
122
+ @before_child_exit << block
123
+ end
124
+ @before_child_exit
121
125
  end
122
126
 
123
127
  # Set the before_child_exit proc.
124
128
  def self.before_child_exit=(before_child_exit)
125
- @before_child_exit = before_child_exit
129
+ @before_child_exit = before_child_exit.respond_to?(:each) ? before_child_exit : [before_child_exit].compact
126
130
  end
127
131
 
128
132
  end
metadata CHANGED
@@ -1,7 +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.5
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,24 +11,24 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-05-01 00:00:00.000000000 Z
14
+ date: 2013-10-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: resque
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
- - - '='
21
+ - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: '1.23'
23
+ version: '1.24'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  none: false
28
28
  requirements:
29
- - - '='
29
+ - - ~>
30
30
  - !ruby/object:Gem::Version
31
- version: '1.23'
31
+ version: '1.24'
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: json
34
34
  requirement: !ruby/object:Gem::Requirement
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  segments:
106
106
  - 0
107
- hash: -218331168347002262
107
+ hash: 4214525788567926268
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  none: false
110
110
  requirements:
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  segments:
115
115
  - 0
116
- hash: -218331168347002262
116
+ hash: 4214525788567926268
117
117
  requirements: []
118
118
  rubyforge_project:
119
119
  rubygems_version: 1.8.25