postqueue 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/postqueue/queue.rb +8 -0
- data/lib/postqueue/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a52b3b91a65a4f5f48a6d12395c0dba897190aef
|
4
|
+
data.tar.gz: 0d8cecbc763a5a1797d309116f1ccc6ae82877ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53c4d7dcd874b253451268ebb34cccec7a7545b92c259cfde136890080eb39b608fe48c44b7ad5fecaef542f2dbf2cd81535abcdcd07a2e706afeb36e5765452
|
7
|
+
data.tar.gz: 81a9ff3a9f19a2bffbca50aabf44b9ee2129279842a252f10f4eed786c9f83dbebce0606378edf78bb946848e0683b3d78804239d1606787227458691572c31f
|
data/lib/postqueue/queue.rb
CHANGED
@@ -33,6 +33,14 @@ module Postqueue
|
|
33
33
|
@batch_sizes = {}
|
34
34
|
@processing = :async
|
35
35
|
|
36
|
+
on "test" do |_op, entity_ids|
|
37
|
+
Postqueue.logger.info "[test] processing entity_ids: #{entity_ids.inspect}"
|
38
|
+
end
|
39
|
+
|
40
|
+
on "fail" do |_op, entity_ids|
|
41
|
+
raise RuntimeError, "Postqueue test failure, w/entity_ids: #{entity_ids.inspect}"
|
42
|
+
end
|
43
|
+
|
36
44
|
on :missing_handler do |op, entity_ids|
|
37
45
|
raise MissingHandler, queue: self, op: op, entity_ids: entity_ids
|
38
46
|
end
|
data/lib/postqueue/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: postqueue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- radiospiel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|