delayed_job 3.0.0.pre2 → 3.0.0.pre3

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/delayed/psych_ext.rb +8 -0
  2. metadata +18 -18
@@ -49,6 +49,14 @@ module Psych
49
49
  rescue ActiveRecord::RecordNotFound
50
50
  raise Delayed::DeserializationError
51
51
  end
52
+ when /^!ruby\/Mongoid:(.+)$/
53
+ klass = resolve_class($1)
54
+ payload = Hash[*object.children.map { |c| accept c }]
55
+ begin
56
+ klass.find(payload["attributes"]["_id"])
57
+ rescue Mongoid::Errors::DocumentNotFound
58
+ raise Delayed::DeserializationError
59
+ end
52
60
  else
53
61
  visit_Psych_Nodes_Mapping_without_class(object)
54
62
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre2
4
+ version: 3.0.0.pre3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -14,11 +14,11 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2011-10-20 00:00:00.000000000Z
17
+ date: 2011-11-08 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: daemons
21
- requirement: &70297904377440 !ruby/object:Gem::Requirement
21
+ requirement: &70239972171100 !ruby/object:Gem::Requirement
22
22
  none: false
23
23
  requirements:
24
24
  - - =
@@ -26,10 +26,10 @@ dependencies:
26
26
  version: 1.0.10
27
27
  type: :runtime
28
28
  prerelease: false
29
- version_requirements: *70297904377440
29
+ version_requirements: *70239972171100
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: activesupport
32
- requirement: &70297904376800 !ruby/object:Gem::Requirement
32
+ requirement: &70239972170560 !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
35
  - - ~>
@@ -37,10 +37,10 @@ dependencies:
37
37
  version: '3.0'
38
38
  type: :runtime
39
39
  prerelease: false
40
- version_requirements: *70297904376800
40
+ version_requirements: *70239972170560
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activerecord
43
- requirement: &70297904376300 !ruby/object:Gem::Requirement
43
+ requirement: &70239972170100 !ruby/object:Gem::Requirement
44
44
  none: false
45
45
  requirements:
46
46
  - - ~>
@@ -48,10 +48,10 @@ dependencies:
48
48
  version: '3.0'
49
49
  type: :development
50
50
  prerelease: false
51
- version_requirements: *70297904376300
51
+ version_requirements: *70239972170100
52
52
  - !ruby/object:Gem::Dependency
53
53
  name: sqlite3
54
- requirement: &70297904375900 !ruby/object:Gem::Requirement
54
+ requirement: &70239972169680 !ruby/object:Gem::Requirement
55
55
  none: false
56
56
  requirements:
57
57
  - - ! '>='
@@ -59,10 +59,10 @@ dependencies:
59
59
  version: '0'
60
60
  type: :development
61
61
  prerelease: false
62
- version_requirements: *70297904375900
62
+ version_requirements: *70239972169680
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: rails
65
- requirement: &70297904375200 !ruby/object:Gem::Requirement
65
+ requirement: &70239972169140 !ruby/object:Gem::Requirement
66
66
  none: false
67
67
  requirements:
68
68
  - - ~>
@@ -70,10 +70,10 @@ dependencies:
70
70
  version: '3.0'
71
71
  type: :development
72
72
  prerelease: false
73
- version_requirements: *70297904375200
73
+ version_requirements: *70239972169140
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: rspec
76
- requirement: &70297904374660 !ruby/object:Gem::Requirement
76
+ requirement: &70239972184980 !ruby/object:Gem::Requirement
77
77
  none: false
78
78
  requirements:
79
79
  - - ~>
@@ -81,10 +81,10 @@ dependencies:
81
81
  version: '2.0'
82
82
  type: :development
83
83
  prerelease: false
84
- version_requirements: *70297904374660
84
+ version_requirements: *70239972184980
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: rake
87
- requirement: &70297904374280 !ruby/object:Gem::Requirement
87
+ requirement: &70239972184580 !ruby/object:Gem::Requirement
88
88
  none: false
89
89
  requirements:
90
90
  - - ! '>='
@@ -92,7 +92,7 @@ dependencies:
92
92
  version: '0'
93
93
  type: :development
94
94
  prerelease: false
95
- version_requirements: *70297904374280
95
+ version_requirements: *70239972184580
96
96
  description: ! 'Delayed_job (or DJ) encapsulates the common pattern of asynchronously
97
97
  executing longer tasks in the background. It is a direct extraction from Shopify
98
98
  where the job table is responsible for a multitude of core tasks.
@@ -167,7 +167,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
167
167
  version: '0'
168
168
  segments:
169
169
  - 0
170
- hash: 544689823949566531
170
+ hash: -880286317388964491
171
171
  required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  none: false
173
173
  requirements:
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  version: 1.3.1
177
177
  requirements: []
178
178
  rubyforge_project:
179
- rubygems_version: 1.8.11
179
+ rubygems_version: 1.8.10
180
180
  signing_key:
181
181
  specification_version: 3
182
182
  summary: Database-backed asynchronous priority queue system -- Extracted from Shopify