action_subscriber 5.1.3.pre1 → 5.1.3.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/action_subscriber/message_retry.rb +2 -13
- data/lib/action_subscriber/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d76984cddac4b9b72670c1d2dfd1e083684d7b23f92f4cbcffba47bbc2b0d3ca
|
4
|
+
data.tar.gz: 364597d5a703bc1efdfb24c4bf8a9d219b7869c443b8ff194fc20aa62702b1e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e990eee7a81d0f56995d68db60fa6ddde908d899a4d9621dfc02e702f3e4f819dd761d54878209a9a878a33a9df46160a3c2f300d21fd6e9fe02c061e096b2aa
|
7
|
+
data.tar.gz: 9f40857ba5562a0f5d991c8e1555b347e32511bd387d37e730b728e66c4b8e84e48c7f38322207013e5f21c2b2d47bb15d8efed703d058e782d9e0c6ed60928f
|
@@ -46,19 +46,8 @@ module ActionSubscriber
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def self.with_exchange(env, ttl, retry_queue_name)
|
49
|
-
|
50
|
-
|
51
|
-
channel = RabbitConnection.with_connection{|connection| connection.create_channel}
|
52
|
-
channel.confirm_select
|
53
|
-
# an empty string is the default exchange [see bunny docs](http://rubybunny.info/articles/exchanges.html#default_exchange)
|
54
|
-
exchange = channel.topic("")
|
55
|
-
queue = channel.queue(retry_queue_name, :arguments => {"x-dead-letter-exchange" => "", "x-message-ttl" => ttl, "x-dead-letter-routing-key" => env.queue})
|
56
|
-
yield(exchange)
|
57
|
-
channel.wait_for_confirms
|
58
|
-
ensure
|
59
|
-
channel.close rescue nil
|
60
|
-
end
|
61
|
-
else
|
49
|
+
channel = env.channel
|
50
|
+
begin
|
62
51
|
channel.confirm_select
|
63
52
|
# an empty string is the default exchange [see bunny docs](http://rubybunny.info/articles/exchanges.html#default_exchange)
|
64
53
|
exchange = channel.topic("")
|
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: 5.1.3.
|
4
|
+
version: 5.1.3.pre2
|
5
5
|
platform: ruby
|
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: 2018-11-
|
15
|
+
date: 2018-11-07 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activesupport
|