markbates-delayed_job_extras 0.1.7.20090912142319 → 0.1.8.20090915153033

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,14 @@ module Delayed
13
13
  return @priority ||= 0
14
14
  end
15
15
 
16
+ def run_at=(x)
17
+ @run_at = x
18
+ end
19
+
20
+ def run_at
21
+ return @run_at ||= Time.now
22
+ end
23
+
16
24
  if Object.const_defined?(:HoptoadNotifier)
17
25
  include HoptoadNotifier::Catcher
18
26
  else
@@ -29,7 +37,7 @@ module Delayed
29
37
  RAILS_DEFAULT_LOGGER
30
38
  end
31
39
 
32
- def enqueue(priority = self.priority, run_at = Time.now)
40
+ def enqueue(priority = self.priority, run_at = self.run_at)
33
41
  Delayed::Job.enqueue(self, priority, run_at)
34
42
  end
35
43
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markbates-delayed_job_extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7.20090912142319
4
+ version: 0.1.8.20090915153033
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-09-12 00:00:00 -07:00
12
+ date: 2009-09-15 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15