action_subscriber 4.2.3.pre-java → 4.3.0-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/action_subscriber/base.rb +1 -1
- data/lib/action_subscriber/version.rb +1 -1
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f622ce2e3012238b0c9fbf913521c3a0fca8c4e
|
4
|
+
data.tar.gz: 6cd98fc4462432f31f3f8b831cf67b56f736ebeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d183e49799bb5efea2cc2b154deba43a2d315f4274e6d184a999be7de7d6f73b18deb03860f5ebec739127b85a10e411a56e18d87f9bc51584acdc17cdfce0f
|
7
|
+
data.tar.gz: 076de98f4f5886898400ee4a2793532ba531714f92b0604cc26c96940c89f65b0648073c77253b5000b2f3435a05ab8a09d60491a09d6039de47690778d62546
|
data/README.md
CHANGED
@@ -163,10 +163,10 @@ Rabbit is told to expect message acknowledgements, but sending the acknowledgeme
|
|
163
163
|
We send the acknowledgement right after calling your subscriber.
|
164
164
|
If an error is raised your message will be retried on a sent back to rabbitmq and retried on an exponential backoff schedule.
|
165
165
|
|
166
|
-
###
|
166
|
+
### redeliver
|
167
167
|
|
168
|
-
A message can be sent to "
|
169
|
-
takes a "backoff schedule" which is a hash of backoff milliseconds for each
|
168
|
+
A message can be sent to "redeliver" with `::ActionSubscriber::MessageRetry.redeliver_message_with_backoff` or the DSL method `redeliver` and optionally
|
169
|
+
takes a "backoff schedule" which is a hash of backoff milliseconds for each redeliver, the default:
|
170
170
|
|
171
171
|
```ruby
|
172
172
|
SCHEDULE = {
|
@@ -184,7 +184,7 @@ takes a "backoff schedule" which is a hash of backoff milliseconds for each retr
|
|
184
184
|
|
185
185
|
when the schedule "returns" `nil` the message will not be retried
|
186
186
|
|
187
|
-
> Warning: If you use `
|
187
|
+
> Warning: If you use `redeliver` you need to handle reject/acknowledge according how errors are handled; if an error is caught and the
|
188
188
|
> ack/reject is already done then you may duplicate the message in `at_least_once!` mode
|
189
189
|
|
190
190
|
Testing
|
@@ -60,7 +60,7 @@ module ActionSubscriber
|
|
60
60
|
env.reject
|
61
61
|
end
|
62
62
|
|
63
|
-
def
|
63
|
+
def redeliver(backoff_schedule = ::ActionSubscriber::MessageRetry::SCHEDULE)
|
64
64
|
::ActionSubscriber::MessageRetry::redeliver_message_with_backoff(env, backoff_schedule)
|
65
65
|
end
|
66
66
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_subscriber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.3.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Brian Stien
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2017-07-
|
15
|
+
date: 2017-07-24 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,7 +182,8 @@ dependencies:
|
|
182
182
|
- - ">="
|
183
183
|
- !ruby/object:Gem::Version
|
184
184
|
version: '0'
|
185
|
-
description: ActionSubscriber is a DSL that allows a rails app to consume messages
|
185
|
+
description: ActionSubscriber is a DSL that allows a rails app to consume messages
|
186
|
+
from a RabbitMQ broker.
|
186
187
|
email:
|
187
188
|
- brianastien@gmail.com
|
188
189
|
- liveh2o@gmail.com
|
@@ -276,15 +277,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
276
277
|
version: '0'
|
277
278
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
278
279
|
requirements:
|
279
|
-
- - "
|
280
|
+
- - ">="
|
280
281
|
- !ruby/object:Gem::Version
|
281
|
-
version:
|
282
|
+
version: '0'
|
282
283
|
requirements: []
|
283
284
|
rubyforge_project:
|
284
|
-
rubygems_version: 2.6.
|
285
|
+
rubygems_version: 2.6.12
|
285
286
|
signing_key:
|
286
287
|
specification_version: 4
|
287
|
-
summary: ActionSubscriber is a DSL that allows a rails app to consume messages from
|
288
|
+
summary: ActionSubscriber is a DSL that allows a rails app to consume messages from
|
289
|
+
a RabbitMQ broker.
|
288
290
|
test_files:
|
289
291
|
- spec/integration/around_filters_spec.rb
|
290
292
|
- spec/integration/at_least_once_spec.rb
|