delayed_job_extras 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,12 @@ begin
14
14
  begin
15
15
  invoke_job_without_hoptoad
16
16
  rescue Exception => e
17
- notify_hoptoad(exception_to_data(e).merge(:dj => self.inspect))
17
+ h = exception_to_data(e)
18
+ begin
19
+ h[:environment][:delayed_job] = self.to_yaml
20
+ rescue TypeError => ex
21
+ end
22
+ notify_hoptoad(h)
18
23
  raise e
19
24
  end
20
25
  end
@@ -3,8 +3,9 @@ module Delayed
3
3
 
4
4
  class << self
5
5
  def enqueue_with_work_off(obj, *args)
6
- enqueue_without_work_off(obj, *args)
6
+ job = enqueue_without_work_off(obj, *args)
7
7
  Delayed::Job.work_off
8
+ return job
8
9
  end
9
10
  alias_method_chain :enqueue, :work_off
10
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job_extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - markbates
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-04 00:00:00 -04:00
12
+ date: 2009-10-05 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -23,7 +23,7 @@ dependencies:
23
23
  version: "0"
24
24
  version:
25
25
  description: Adds support for Hoptoad and is_paranoid to Delayed::Job. Additionally it also adds 'stats' for your workers, and it even includes a base worker that encapsulates a some common functionality.
26
- email: ""
26
+ email: mark@markbates.com
27
27
  executables: []
28
28
 
29
29
  extensions: []
@@ -48,7 +48,7 @@ files:
48
48
  - generators/templates/migrations/002_add_more_time_columns_to_dj.rb
49
49
  - generators/templates/migrations/003_add_indexes_to_dj.rb
50
50
  has_rdoc: true
51
- homepage: ""
51
+ homepage: http://www.markbates.com
52
52
  licenses: []
53
53
 
54
54
  post_install_message: