dispatch-rider 1.8.4 → 1.8.5

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: df7b869b4f2f8bf0c8a1127c02e9431f133af311
4
- data.tar.gz: acf144ab31fb5752f18d765591fbfd46a2b028ff
3
+ metadata.gz: 71dd07d76eb7f93700d28c2127d426803737880c
4
+ data.tar.gz: 1b5a4ae16a98078e237524a5457e0ac582ea4a6e
5
5
  SHA512:
6
- metadata.gz: 06e7944d5a52c584460f5616f45a23e2a137bb16b505c653e3f301d611fafcc3f4e7e8d9f1eac90f473f4cd085da077c1b299422e7f249a32ed193d7891afe8c
7
- data.tar.gz: 64e66b6b04caee2d4c090d5f3a120315efe772ddff90938c67175d28d2ff6becd770ffe570e42ea5695d6c3cdebed47fc8ecd7960cdd43e52dbe1622f0657bbc
6
+ metadata.gz: b3f941f817e835ec7b4b30fd8dcbbf7aac35edab8d569606042525c07c1b46056c81f38dec351802bd0b162ff614a1df66333cff4a034f5064ba352084472ecf
7
+ data.tar.gz: 72aed806508c13450029709b5691c26a1cec984e4da16982de6980146b0023ef2f556e235af2d7a84f8698dbc3dac06338aa27bee9c6377f8539fc5fc291d68f
@@ -1,5 +1,19 @@
1
1
  # Change Log
2
2
 
3
+ ## [v1.8.4](https://github.com/payrollhero/dispatch-rider/tree/v1.8.4) (2016-02-09)
4
+
5
+ [Full Changelog](https://github.com/payrollhero/dispatch-rider/compare/v1.8.3...v1.8.4)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Fix appsignal integration [\#73](https://github.com/payrollhero/dispatch-rider/pull/73) ([vincentpaca](https://github.com/vincentpaca))
10
+
11
+ - Update appsignal integration [\#72](https://github.com/payrollhero/dispatch-rider/pull/72) ([vincentpaca](https://github.com/vincentpaca))
12
+
13
+ ## [v1.8.3](https://github.com/payrollhero/dispatch-rider/tree/v1.8.3) (2016-01-19)
14
+
15
+ [Full Changelog](https://github.com/payrollhero/dispatch-rider/compare/v1.8.2...v1.8.3)
16
+
3
17
  ## [v1.8.2](https://github.com/payrollhero/dispatch-rider/tree/v1.8.2) (2016-01-19)
4
18
 
5
19
  [Full Changelog](https://github.com/payrollhero/dispatch-rider/compare/v1.8.1...v1.8.2)
@@ -348,6 +362,8 @@
348
362
 
349
363
  - Added process naming to dispatcher. [\#23](https://github.com/payrollhero/dispatch-rider/pull/23) ([link664](https://github.com/link664))
350
364
 
365
+ - Fail job after running error handler. [\#27](https://github.com/payrollhero/dispatch-rider/pull/27) ([link664](https://github.com/link664))
366
+
351
367
  ## [v0.0.5](https://github.com/payrollhero/dispatch-rider/tree/v0.0.5) (2013-08-20)
352
368
 
353
369
  [Full Changelog](https://github.com/payrollhero/dispatch-rider/compare/2013-06-06-13-08-PST...v0.0.5)
@@ -394,6 +410,10 @@
394
410
 
395
411
  - Fix double serialize on file system bug [\#15](https://github.com/payrollhero/dispatch-rider/pull/15) ([more-ron](https://github.com/more-ron))
396
412
 
413
+ - Add publisher configure method [\#16](https://github.com/payrollhero/dispatch-rider/pull/16) ([more-ron](https://github.com/more-ron))
414
+
415
+ - Initial implementation of hash based configuration to satisfy issue \#10 [\#11](https://github.com/payrollhero/dispatch-rider/pull/11) ([jimbomt](https://github.com/jimbomt))
416
+
397
417
  ## [2013-05-28-15-13+08-00](https://github.com/payrollhero/dispatch-rider/tree/2013-05-28-15-13+08-00) (2013-05-28)
398
418
 
399
419
  [Full Changelog](https://github.com/payrollhero/dispatch-rider/compare/2013-05-28...2013-05-28-15-13+08-00)
@@ -408,7 +428,7 @@
408
428
 
409
429
  ## [2013-05-28](https://github.com/payrollhero/dispatch-rider/tree/2013-05-28) (2013-05-28)
410
430
 
411
- [Full Changelog](https://github.com/payrollhero/dispatch-rider/compare/v0.0.3...2013-05-28)
431
+ [Full Changelog](https://github.com/payrollhero/dispatch-rider/compare/v0.0.2...2013-05-28)
412
432
 
413
433
  **Merged pull requests:**
414
434
 
@@ -416,13 +436,13 @@
416
436
 
417
437
  - Another stab at the initial implementation for issue \#10 [\#12](https://github.com/payrollhero/dispatch-rider/pull/12) ([piotrb](https://github.com/piotrb))
418
438
 
419
- ## [v0.0.3](https://github.com/payrollhero/dispatch-rider/tree/v0.0.3) (2013-05-22)
439
+ ## [v0.0.2](https://github.com/payrollhero/dispatch-rider/tree/v0.0.2) (2013-05-22)
420
440
 
421
- [Full Changelog](https://github.com/payrollhero/dispatch-rider/compare/v0.0.2...v0.0.3)
441
+ [Full Changelog](https://github.com/payrollhero/dispatch-rider/compare/v0.0.3...v0.0.2)
422
442
 
423
- ## [v0.0.2](https://github.com/payrollhero/dispatch-rider/tree/v0.0.2) (2013-05-22)
443
+ ## [v0.0.3](https://github.com/payrollhero/dispatch-rider/tree/v0.0.3) (2013-05-22)
424
444
 
425
- [Full Changelog](https://github.com/payrollhero/dispatch-rider/compare/v0.0.1...v0.0.2)
445
+ [Full Changelog](https://github.com/payrollhero/dispatch-rider/compare/v0.0.1...v0.0.3)
426
446
 
427
447
  **Merged pull requests:**
428
448
 
@@ -24,20 +24,22 @@ module DispatchRider
24
24
  end
25
25
  end
26
26
 
27
- def pop(&block)
28
- begin
29
- queue.receive_message do |raw_item|
30
- obj = SqsReceivedMessage.new(construct_message_from(raw_item), raw_item, queue)
27
+ def pop
28
+ raw_item = queue.receive_message
29
+ if raw_item.present?
30
+ obj = SqsReceivedMessage.new(construct_message_from(raw_item), raw_item, queue)
31
31
 
32
- visibility_timeout_shield(obj) do
33
- raise AbortExecution, "false received from handler" unless block.call(obj)
34
- obj
35
- end
32
+ visibility_timeout_shield(obj) do
33
+ raise AbortExecution, "false received from handler" unless yield(obj)
34
+ obj
35
+ end
36
36
 
37
+ with_retries(max_tries: 3) do
38
+ raw_item.delete
37
39
  end
38
- rescue AbortExecution
39
- # ignore, it was already handled, just need to break out if pop
40
40
  end
41
+ rescue AbortExecution
42
+ # ignore, it was already handled, just need to break out if pop
41
43
  end
42
44
 
43
45
  def insert(item)
@@ -1,4 +1,4 @@
1
1
  # This file specifies the current version of the gem.
2
2
  module DispatchRider
3
- VERSION = "1.8.4"
3
+ VERSION = "1.8.5"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dispatch-rider
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.4
4
+ version: 1.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suman Mukherjee
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-02-09 00:00:00.000000000 Z
14
+ date: 2016-02-16 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport