krakow 0.3.10 → 0.3.12

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: 78311246d3ee757c725e4ce9012c32db188d1f96
4
- data.tar.gz: 495de2cbb1263467ab77fab4e6afbefb5f336c3d
3
+ metadata.gz: ec832b26d703bbb80cc726f4253e665489f1d959
4
+ data.tar.gz: bc00e4942eff7a0fbf36248fc88166e51cbac638
5
5
  SHA512:
6
- metadata.gz: 53980ef94a41c5035c00ab60b128db36e4c614c404adf077b50f89180e3239c47ee8f0b9a485dd4c8aa052d9631efea3bbfb352de62536b11eed605e4fe816c0
7
- data.tar.gz: f48bdc4509d5a18498b9ee3d5a4e920621d3aa8c9a9238d0fb1a86e9d65556fdea287d50d96300c030d8f4c32256f87554e723a9ffd48d5a91541e0d356ee376
6
+ metadata.gz: 35b372c4ea0551163a44fed973eb1b456dd41f3f219b23f6645117858d77ace6f817f515b880b01d1194cc9316d9b42a4bcbe893c91fa664abf97445e08814fb
7
+ data.tar.gz: 4046e076dfcfd812796622c37a2ec671be021d2ec842efb6ba7898307c91de0b5eca93b7ee06b210cf96822fee2cf1dc73ff56a72666b7bb2dde77701737aec3
@@ -1,3 +1,6 @@
1
+ ## v0.3.12
2
+ * Update Consumer#confirm and Consumer#touch to rescue out lookups and abort
3
+
1
4
  ## v0.3.10
2
5
  * Remove exclusive from Connection#init!
3
6
 
@@ -247,6 +247,9 @@ module Krakow
247
247
  rescue KeyError => e
248
248
  error "Message confirmation failed: #{e}"
249
249
  abort e
250
+ rescue Error::LookupFailed => e
251
+ error "Lookup of message for confirmation failed! <Message ID: #{message_id} - Error: #{e}>"
252
+ abort e
250
253
  rescue Error::ConnectionUnavailable => e
251
254
  retry
252
255
  end
@@ -280,12 +283,17 @@ module Krakow
280
283
  # @return [TrueClass]
281
284
  def touch(message_id)
282
285
  message_id = message_id.message_id if message_id.respond_to?(:message_id)
283
- distribution.in_flight_lookup(message_id) do |connection|
284
- connection.transmit(
285
- Command::Touch.new(:message_id => message_id)
286
- )
286
+ begin
287
+ distribution.in_flight_lookup(message_id) do |connection|
288
+ connection.transmit(
289
+ Command::Touch.new(:message_id => message_id)
290
+ )
291
+ end
292
+ true
293
+ rescue Error::LookupFailed => e
294
+ error "Lookup of message for touch failed! <Message ID: #{message_id} - Error: #{e}>"
295
+ abort e
287
296
  end
288
- true
289
297
  end
290
298
 
291
299
  end
@@ -1,4 +1,4 @@
1
1
  module Krakow
2
2
  # Current version
3
- VERSION = Gem::Version.new('0.3.10')
3
+ VERSION = Gem::Version.new('0.3.12')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: krakow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-12 00:00:00.000000000 Z
11
+ date: 2014-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid-io