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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6849910b76abd215646bad9dc1f6af63d586e445
4
- data.tar.gz: 19eca3b819e0b69db20d0b3a8a5e4eb4816a6100
3
+ metadata.gz: a52b3b91a65a4f5f48a6d12395c0dba897190aef
4
+ data.tar.gz: 0d8cecbc763a5a1797d309116f1ccc6ae82877ba
5
5
  SHA512:
6
- metadata.gz: 5af615c665298638e1e319f633ceacda6cedc2216f31b54fa2616031b6151ca5549e1612b22bd3a4cf581e467f3736825374b0501e05b44a77e8d80b9269d48a
7
- data.tar.gz: 2b56b04af5a9a4a2d83d15aeb5e7aee6ffc345404c969f881e3156eeac8a8cf167d62d22bf249d47e07f9d94b1acbb130a5b3e645a1cee93932122f8ca4cc240
6
+ metadata.gz: 53c4d7dcd874b253451268ebb34cccec7a7545b92c259cfde136890080eb39b608fe48c44b7ad5fecaef542f2dbf2cd81535abcdcd07a2e706afeb36e5765452
7
+ data.tar.gz: 81a9ff3a9f19a2bffbca50aabf44b9ee2129279842a252f10f4eed786c9f83dbebce0606378edf78bb946848e0683b3d78804239d1606787227458691572c31f
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Postqueue
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
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.1
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-19 00:00:00.000000000 Z
11
+ date: 2016-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec