steve 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/steve/queued_job.rb +2 -2
- metadata +2 -2
data/lib/steve/queued_job.rb
CHANGED
@@ -178,8 +178,8 @@ module Steve
|
|
178
178
|
end
|
179
179
|
|
180
180
|
## Remove old completed jobs from the database
|
181
|
-
def self.cleanup
|
182
|
-
self.delete_all(["status = 'completed' and run_at < ?",
|
181
|
+
def self.cleanup(age = 5.days.ago)
|
182
|
+
self.delete_all(["status = 'completed' and run_at < ?", age])
|
183
183
|
end
|
184
184
|
|
185
185
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: steve
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-03-
|
12
|
+
date: 2012-03-22 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email: support@atechmedia.com
|