watership 0.7.1 → 0.7.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: d9d75218a0e116036973c5143327e02200e90d5e
4
- data.tar.gz: 8f2ab743f84f7816d64c4bf57d9830c559c2f025
3
+ metadata.gz: 2f1188781ffedf74120033dbb1171fe140e59b7f
4
+ data.tar.gz: 9a8b96bad67eaa757e526dd31300e7df1c6e64d0
5
5
  SHA512:
6
- metadata.gz: 7aff983c5122210505b47edcf200099e1fb4f530bdf0efaf6ae0cd624f7676e33bdb42ad772d8553855ec469735a6ba7eee9e1777e61c3f4b183eb3e67093cb5
7
- data.tar.gz: 399868642a4ab1ba89881c720d053e940d472d9b5c7c7deeb45fe239579251e6281eee4aa97f829ae51c92ff3e9b48b3b3299097f40b3ce8a3eac3164b57f226
6
+ metadata.gz: 5843ee4eb0247f2339f7880aaed6d02d3ee977844d5ccfd60b1c4b7e34fba5156860202ea5c75f54046324f7ad39467d52398a9be196885f909ec0b0ac782341
7
+ data.tar.gz: 1f260debb13e5ab9bd3d593953b258e9bf2fe4fb636625c85ff898355d74a86d22952f28f91ddfbfaead1800c92a6dd2c15706b3748e9ffe93bdc8d056d9d0a3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.2 - 2014-07-23
4
+ * Fix some critical bugs in the retries logic
5
+
3
6
  ## 0.7.1 - 2014-07-22
4
7
  * Fix a critical bug during reconnect
5
8
 
@@ -34,13 +34,13 @@ module Watership
34
34
  Bugsnag.notify(exception, data: {payload: data, retries: retries}) if defined?(Bugsnag)
35
35
 
36
36
  if retries.to_i < 3
37
- Watership.enqueue(name: @consumer.class::QUEUE, payload: data.merge({retries: retries+1}))
37
+ new_data = data.merge({retries: retries+1})
38
+ Watership.enqueue!(name: @consumer.class::QUEUE, message: new_data)
38
39
  success = true
39
40
  end
40
41
  rescue Interrupt => exception
41
42
  logger.error "Interrupt in subscribe block"
42
43
  logger.warn "Stopped gracefully."
43
- throw(:terminate)
44
44
  ensure
45
45
  if success
46
46
  ack_message(delivery_info.delivery_tag)
@@ -1,3 +1,3 @@
1
1
  module Watership
2
- VERSION = '0.7.1'
2
+ VERSION = '0.7.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watership
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Scofield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-22 00:00:00.000000000 Z
11
+ date: 2014-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler