queue_classic-later 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/queue_classic/later/version.rb +1 -1
- data/lib/queue_classic/later.rb +5 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2580e08873e13b279a8384c68fc291639c165dd
|
4
|
+
data.tar.gz: f2919a70a50b932018d838c7433cab1eaef46e9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09482af2038b4f71e8ad4481b4c215f967a2a75d6763640e6220e8c4491e80d28d76642d5bdfea3a234c3a1c4209d1a7966947617fc420f2b3970578903ff8a5
|
7
|
+
data.tar.gz: babb7ab1471790dfcc906a87877eb230edad5345a59fd577a56f6cece90662b2312b7ac72f5914bccd5efcb185f0b0dbd1257ec0618738da4fc5856a3f89e0c4
|
data/lib/queue_classic/later.rb
CHANGED
@@ -53,9 +53,11 @@ module QC
|
|
53
53
|
|
54
54
|
# run QC::Later.tick as often as necessary via your clock process
|
55
55
|
def tick
|
56
|
-
QC::
|
57
|
-
|
58
|
-
|
56
|
+
QC::Conn.transaction do
|
57
|
+
QC::Later::Queries.delete_and_capture(Time.now).each do |job|
|
58
|
+
queue = QC::Queue.new(job["q_name"])
|
59
|
+
queue.enqueue(job["method"], *MultiJson.decode(job["args"]))
|
60
|
+
end
|
59
61
|
end
|
60
62
|
end
|
61
63
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: queue_classic-later
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Peterson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: queue_classic
|
@@ -64,3 +64,4 @@ signing_key:
|
|
64
64
|
specification_version: 4
|
65
65
|
summary: Do things later with queue_classic
|
66
66
|
test_files: []
|
67
|
+
has_rdoc:
|