eventboss 1.1.3 → 1.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
  SHA256:
3
- metadata.gz: 1d49008b553f3a7cbe490be82579774a46d7b7bf6df9f9d11c0541035e1434eb
4
- data.tar.gz: ddca3e4e49ff3e0897d73b92e1c23d21d1887963b1e3530aaa97c9a2d6202c2b
3
+ metadata.gz: '08b9d36bef316f4e179285276d2ce46ceddeb35ea23140de3d3b6fedfe3ef23a'
4
+ data.tar.gz: d2d949a45a3477c0869afb23286a0dda2d4f617a51e500a1e927f2b05f846065
5
5
  SHA512:
6
- metadata.gz: 92804d146a379b5302d87e6e6e43b4cab29dcb10d7441aed309743e18c67da9ad73d3f254169e055605c5541b4780a4086d1b01d08ad710976bbded71cbaa265
7
- data.tar.gz: 706ef8d1113b7fd8061696361a7352ada6d805532820b12f58be177ce6113be2d629ab0baee03322c5548565c62a818e2882c1f647590370064c42c5d0fc1598
6
+ metadata.gz: dec3db6f0b38a14b33f216567e0f7d6621ee7055ad45c1c68a49a699a1bd8149a8fe067587ae701fcd20d9f9334d399ca508e9b58fd999be5349ac9ff79e3246
7
+ data.tar.gz: 30eb04a6f2d511624489e42afee250578a745efb084dfb1fd53ec791a8ee78a51134a3673044f63ecefb34d5de341c20cc280149019b1455a72f6cfd17a8e514
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eventboss (1.1.3)
4
+ eventboss (1.2.0)
5
5
  aws-sdk-sns (>= 1.1.0)
6
6
  aws-sdk-sqs (>= 1.3.0)
7
7
  dotenv (~> 2.1, >= 2.1.1)
@@ -10,8 +10,8 @@ GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
12
  aws-eventstream (1.0.3)
13
- aws-partitions (1.211.0)
14
- aws-sdk-core (3.67.0)
13
+ aws-partitions (1.215.0)
14
+ aws-sdk-core (3.68.0)
15
15
  aws-eventstream (~> 1.0, >= 1.0.2)
16
16
  aws-partitions (~> 1.0)
17
17
  aws-sigv4 (~> 1.1)
@@ -16,14 +16,6 @@ module Eventboss
16
16
  @client.delete_message(queue_url: queue.url, receipt_handle: message.receipt_handle)
17
17
  end
18
18
 
19
- def change_message_visibility(queue, message, visibility_timeout)
20
- @client.change_message_visibility(
21
- queue_url: queue.url,
22
- receipt_handle: message.receipt_handle,
23
- visibility_timeout: visibility_timeout
24
- )
25
- end
26
-
27
19
  private
28
20
 
29
21
  def max_no_of_messages(limit)
@@ -21,7 +21,17 @@ module Eventboss
21
21
  rescue StandardError => exception
22
22
  handle_exception(exception, processor: processor, message_id: @message.message_id)
23
23
  else
24
- cleanup(client)
24
+ cleanup(client) unless processor.postponed_by
25
+ ensure
26
+ change_message_visibility(client, processor.postponed_by) if processor.postponed_by
27
+ end
28
+
29
+ def change_message_visibility(client, postponed_by)
30
+ client.change_message_visibility(
31
+ queue_url: @queue.url,
32
+ receipt_handle: @message.receipt_handle,
33
+ visibility_timeout: postponed_by
34
+ )
25
35
  end
26
36
 
27
37
  def cleanup(client)
@@ -1,3 +1,3 @@
1
1
  module Eventboss
2
- VERSION = "1.1.3"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventboss
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - AirHelp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-16 00:00:00.000000000 Z
11
+ date: 2019-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-sqs