anschel 0.7.4 → 0.7.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4243a8ea1706a7d89742f3fc2619813abaebc93a
4
- data.tar.gz: dd9a1019095647303b35f700b5d18fb452ed03a1
3
+ metadata.gz: 6b6d4e7d557f68da980aaf5beb1e83ccbb9aa7c0
4
+ data.tar.gz: 9c5a4022f0bb8001bfc177df472ad64fa3f0c115
5
5
  SHA512:
6
- metadata.gz: cb875d015a3c158a7e460d6e8e2f80e3401f2c5ee2ddf92cd9fff04f5b06a9c81feb1b6b187391d16edc361ec88fe898b1a34e7222a529994765324cd477da64
7
- data.tar.gz: d01dc8314c0f622510c8f4698a9694dfe0136869b846bc212fc23f938c665f25569665f99ad03e2d6e137c097bbc4c7672866c255e1aa51b4c2f0a0ee38e50c3
6
+ metadata.gz: 64d31ed966942e4586532042a2c492582219e573787a2b2497fe9df5a16316320dbfefc2751e1246c4305277fbc38a56cba53da9d3c3542d4b1a51c65e3ff731
7
+ data.tar.gz: a50e35b76c4351ce47bcfe24225395cb3b077529535345d73a158aa587dc1014696830a53b2c97a4c8e73d0e165d8d8dddd0d4df7fe7e0a6ed9c54c194cc5579
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.4
1
+ 0.7.5
@@ -22,7 +22,8 @@ module Anschel
22
22
 
23
23
  subscription_defaults = {
24
24
  block: true,
25
- ack: true
25
+ ack: true,
26
+ manual_ack: true
26
27
  }
27
28
 
28
29
  connection = ::MarchHare.connect \
@@ -50,7 +51,7 @@ module Anschel
50
51
  queue.subscribe(subscription) do |meta, message|
51
52
  output << message
52
53
  stats.inc 'input'
53
- channel.ack meta.delivery_tag, false if subscription[:ack]
54
+ channel.ack meta.delivery_tag, false if subscription[:manual_ack]
54
55
  end
55
56
  end
56
57
  end
data/lib/anschel/main.rb CHANGED
@@ -79,7 +79,9 @@ module Anschel
79
79
  end
80
80
  end
81
81
 
82
- rescue => e
82
+ ts.each { |t| t.abort_on_exception = true }
83
+
84
+ rescue Exception => e
83
85
  log.fatal \
84
86
  event: 'exception',
85
87
  exception: e.inspect,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anschel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-18 00:00:00.000000000 Z
11
+ date: 2015-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement