action_subscriber 4.2.3.pre-java → 4.3.0-java

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: 89898876f89e5415b3260c504c70fd2baeb209f1
4
- data.tar.gz: 66c3a6f07b29d7633294cad7ce5aad54369813b6
3
+ metadata.gz: 3f622ce2e3012238b0c9fbf913521c3a0fca8c4e
4
+ data.tar.gz: 6cd98fc4462432f31f3f8b831cf67b56f736ebeb
5
5
  SHA512:
6
- metadata.gz: 046e4cc31391471828620297d8e5cbf03a801131fb9d383d00f95c5ac9fe3d0121139dc63afad0b316aa621fb31e4cc0c79bbe1ddd171cc2118a3928a09b9ed9
7
- data.tar.gz: 22a4870b105dfd87e7b461704c44f01bf56982012ecf94e857e22924a43e5003fe24445478fde19e6ad148445e813daecc4d070925ac8d3f17802a32c12e466c
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
- ### retry
166
+ ### redeliver
167
167
 
168
- A message can be sent to "retry" with `::ActionSubscriber::MessageRetry.redeliver_message_with_backoff` or the DSL method `retry` and optionally
169
- takes a "backoff schedule" which is a hash of backoff milliseconds for each retry, the default:
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 `retry` you need to handle reject/acknowledge according how errors are handled; if an error is caught and the
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 retry(backoff_schedule = ::ActionSubscriber::MessageRetry::SCHEDULE)
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
@@ -1,3 +1,3 @@
1
1
  module ActionSubscriber
2
- VERSION = "4.2.3.pre"
2
+ VERSION = "4.3.0"
3
3
  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.2.3.pre
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-21 00:00:00.000000000 Z
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 from a RabbitMQ broker.
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: 1.3.1
282
+ version: '0'
282
283
  requirements: []
283
284
  rubyforge_project:
284
- rubygems_version: 2.6.9
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 a RabbitMQ broker.
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