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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74152ef0d974e9850d261f6987c034d1fb11d6ad
4
- data.tar.gz: 73570d20cc761408f16684eead47d0daf31f1680
3
+ metadata.gz: a2580e08873e13b279a8384c68fc291639c165dd
4
+ data.tar.gz: f2919a70a50b932018d838c7433cab1eaef46e9d
5
5
  SHA512:
6
- metadata.gz: b36f3af3f9bab6ce8c064faa1d2329c1c6d9d75876c839d41c1f5fdafd534a053160f9983d8193e1bc5025ed18252330252c8cfda571de66b207a78195c39ea2
7
- data.tar.gz: 7cb2405541243112feff66459eeb8c8b5a42c63c708c0a17733ceed8b04157212189c300472ff41399fb7ffca712937036d67d4816925b13db2c2dd6c762dc95
6
+ metadata.gz: 09482af2038b4f71e8ad4481b4c215f967a2a75d6763640e6220e8c4491e80d28d76642d5bdfea3a234c3a1c4209d1a7966947617fc420f2b3970578903ff8a5
7
+ data.tar.gz: babb7ab1471790dfcc906a87877eb230edad5345a59fd577a56f6cece90662b2312b7ac72f5914bccd5efcb185f0b0dbd1257ec0618738da4fc5856a3f89e0c4
@@ -1,5 +1,5 @@
1
1
  module QC
2
2
  module Later
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -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::Later::Queries.delete_and_capture(Time.now).each do |job|
57
- queue = QC::Queue.new(job["q_name"])
58
- queue.enqueue(job["method"], *MultiJson.decode(job["args"]))
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.1.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-04-18 00:00:00.000000000 Z
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: