delayed_job_extras 0.9.9 → 0.9.10
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.
@@ -10,7 +10,15 @@ module Delayed
|
|
10
10
|
klass.class_eval do
|
11
11
|
class << self
|
12
12
|
def new_with_extras(*args)
|
13
|
-
|
13
|
+
begin
|
14
|
+
klass = new_without_extras(*args)
|
15
|
+
rescue ArgumentError => e
|
16
|
+
if e.message == 'wrong number of arguments (1 for 0)'
|
17
|
+
klass = new_without_extras
|
18
|
+
else
|
19
|
+
raise e
|
20
|
+
end
|
21
|
+
end
|
14
22
|
klass.__original_args = *args
|
15
23
|
return klass
|
16
24
|
end
|
@@ -10,10 +10,30 @@ unless defined?(DELAYED_JOB_TEST_ENHANCEMENTS)
|
|
10
10
|
return job
|
11
11
|
end
|
12
12
|
alias_method_chain :enqueue, :work_off
|
13
|
+
|
13
14
|
end
|
14
15
|
|
15
16
|
end # Job
|
16
17
|
end # Delayed
|
17
18
|
|
19
|
+
module DJ
|
20
|
+
class Worker
|
21
|
+
|
22
|
+
class << self
|
23
|
+
def disable_re_enqueue
|
24
|
+
eval %{
|
25
|
+
class DJ::Worker
|
26
|
+
class << self
|
27
|
+
def re_enqueue(*args)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
}
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
end # Worker
|
36
|
+
end # DJ
|
37
|
+
|
18
38
|
DELAYED_JOB_TEST_ENHANCEMENTS = 1
|
19
39
|
end # unless defined?('DELAYED_JOB_TEST_ENHANCEMENTS')
|
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.
|
4
|
+
version: 0.9.10
|
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-
|
12
|
+
date: 2009-12-08 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|