scotttam-resque 0.0.3 → 0.0.4

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.
data/Rakefile CHANGED
@@ -28,7 +28,7 @@ task :gem => [ :test, :gemspec, :build ]
28
28
  begin
29
29
  require 'jeweler'
30
30
  require 'resque/version'
31
-
31
+
32
32
  Jeweler::Tasks.new do |gemspec|
33
33
  gemspec.name = "scotttam-resque"
34
34
  gemspec.summary = %Q{scotttam-resque is an extension to the resque queue system that has pre-fork hooks and ability to turn off forking.}
@@ -37,7 +37,7 @@ begin
37
37
  gemspec.homepage = "http://github.com/scotttam/resque"
38
38
  gemspec.authors = ["Chris Wanstrath, Scott Tamosunas"]
39
39
  gemspec.version = Resque::Version
40
-
40
+
41
41
  gemspec.add_dependency "redis"
42
42
  gemspec.add_dependency "redis-namespace"
43
43
  gemspec.add_dependency "vegas", ">=0.1.2"
@@ -62,5 +62,5 @@ task :publish => [ :test, :gemspec, :build ] do
62
62
  system "git push origin master"
63
63
  system "gem push pkg/scotttam-resque-#{Resque::Version}.gem"
64
64
  system "git clean -fd"
65
- exec "rake pages"
65
+ # exec "rake pages"
66
66
  end
@@ -1,3 +1,3 @@
1
1
  module Resque
2
- Version = '0.0.3'
2
+ Version = '0.0.4'
3
3
  end
data/lib/resque/worker.rb CHANGED
@@ -310,7 +310,16 @@ module Resque
310
310
 
311
311
  #Call any before_fork procs, if any
312
312
  def call_before_fork
313
- before_fork.call if before_fork
313
+ return unless before_fork
314
+ log "Calling before_fork"
315
+ before_fork.call
316
+ end
317
+
318
+ #Call any before_fork procs, if any
319
+ def call_after_fork
320
+ return unless after_fork
321
+ log "Calling after_fork"
322
+ after_fork.call
314
323
  end
315
324
 
316
325
  #Call any before_fork procs, if any
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scotttam-resque
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath, Scott Tamosunas