resque-multi-job-forks 0.3.1 → 0.3.2

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 +7 -0
  2. metadata +77 -88
@@ -22,6 +22,13 @@ module Resque
22
22
  end
23
23
  alias_method :shutdown_without_multi_job_forks, :shutdown?
24
24
  alias_method :shutdown?, :shutdown_with_multi_job_forks
25
+
26
+ def working_on_with_worker_registration(job)
27
+ register_worker
28
+ working_on_without_worker_registration(job)
29
+ end
30
+ alias_method :working_on_without_worker_registration, :working_on
31
+ alias_method :working_on, :working_on_with_worker_registration
25
32
  end
26
33
 
27
34
  def fork_hijacked?
metadata CHANGED
@@ -1,130 +1,119 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: resque-multi-job-forks
3
- version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 3
9
- - 1
10
- version: 0.3.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.2
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Mick Staugaard
14
9
  - Luke Antins
10
+ - Sergio Tulentsev
15
11
  autorequire:
16
12
  bindir: bin
17
13
  cert_chain: []
18
-
19
- date: 2010-12-29 00:00:00 +01:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
14
+ date: 2012-09-16 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
23
17
  name: resque
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: !ruby/object:Gem::Requirement
26
19
  none: false
27
- requirements:
20
+ requirements:
28
21
  - - ~>
29
- - !ruby/object:Gem::Version
30
- hash: 63
31
- segments:
32
- - 1
33
- - 10
34
- - 0
35
- version: 1.10.0
22
+ - !ruby/object:Gem::Version
23
+ version: 1.22.0
36
24
  type: :runtime
37
- version_requirements: *id001
38
- - !ruby/object:Gem::Dependency
39
- name: json
40
25
  prerelease: false
41
- requirement: &id002 !ruby/object:Gem::Requirement
26
+ version_requirements: !ruby/object:Gem::Requirement
42
27
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- hash: 3
47
- segments:
48
- - 0
49
- version: "0"
28
+ requirements:
29
+ - - ~>
30
+ - !ruby/object:Gem::Version
31
+ version: 1.22.0
32
+ - !ruby/object:Gem::Dependency
33
+ name: json
34
+ requirement: !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
50
40
  type: :runtime
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: rake
54
41
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
42
+ version_requirements: !ruby/object:Gem::Requirement
56
43
  none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 3
61
- segments:
62
- - 0
63
- version: "0"
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: rake
50
+ requirement: !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
64
56
  type: :development
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
- name: bundler
68
57
  prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
58
+ version_requirements: !ruby/object:Gem::Requirement
70
59
  none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- hash: 3
75
- segments:
76
- - 0
77
- version: "0"
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ - !ruby/object:Gem::Dependency
65
+ name: bundler
66
+ requirement: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
78
72
  type: :development
79
- version_requirements: *id004
80
- description: When your resque jobs are frequent and fast, the overhead of forking and running your after_fork might get too big.
81
- email:
73
+ prerelease: false
74
+ version_requirements: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ description: When your resque jobs are frequent and fast, the overhead of forking
81
+ and running your after_fork might get too big.
82
+ email:
82
83
  - mick@zendesk.com
83
84
  - luke@lividpenguin.com
84
85
  executables: []
85
-
86
86
  extensions: []
87
-
88
87
  extra_rdoc_files: []
89
-
90
- files:
88
+ files:
91
89
  - lib/resque-multi-job-forks.rb
92
90
  - test/helper.rb
93
91
  - test/test_resque-multi-job-forks.rb
94
- has_rdoc: true
95
92
  homepage: http://github.com/staugaard/resque-multi-job-forks
96
93
  licenses: []
97
-
98
94
  post_install_message:
99
95
  rdoc_options: []
100
-
101
- require_paths:
96
+ require_paths:
102
97
  - lib
103
- required_ruby_version: !ruby/object:Gem::Requirement
98
+ required_ruby_version: !ruby/object:Gem::Requirement
104
99
  none: false
105
- requirements:
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- hash: 3
109
- segments:
110
- - 0
111
- version: "0"
112
- required_rubygems_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
105
  none: false
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- hash: 3
118
- segments:
119
- - 0
120
- version: "0"
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
121
110
  requirements: []
122
-
123
111
  rubyforge_project:
124
- rubygems_version: 1.3.7
112
+ rubygems_version: 1.8.24
125
113
  signing_key:
126
114
  specification_version: 3
127
115
  summary: Have your resque workers process more that one job
128
- test_files:
116
+ test_files:
129
117
  - test/helper.rb
130
118
  - test/test_resque-multi-job-forks.rb
119
+ has_rdoc: