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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa5bf15c517485c9cccb0106e54b710a9ea27f531206b7f631c90b034214b45e
4
- data.tar.gz: e1c884f440fa8fef25b63f04fa574e458ff60a2a0887b6fc2b1e44f96fb973e7
3
+ metadata.gz: d76984cddac4b9b72670c1d2dfd1e083684d7b23f92f4cbcffba47bbc2b0d3ca
4
+ data.tar.gz: 364597d5a703bc1efdfb24c4bf8a9d219b7869c443b8ff194fc20aa62702b1e3
5
5
  SHA512:
6
- metadata.gz: 8eff6bc852dbdbc1d96e0ef6894b8329a015542b7bb8764fba11d46c279c380c9eacf610de3e24a8729b38e8b8dba42b8d339eefad9f12dd5fad356596661dc6
7
- data.tar.gz: 244a5f01766f1c3428a36a8f5cac737d4545d71f9202b92183ea7ccf39fac87cfdaea4499f9e59ef979f7627025402ded93885d015b82387226852104f1c3741
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
- unless env.channel.open?
50
- begin
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("")
@@ -1,3 +1,3 @@
1
1
  module ActionSubscriber
2
- VERSION = "5.1.3.pre1"
2
+ VERSION = "5.1.3.pre2"
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: 5.1.3.pre1
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-06 00:00:00.000000000 Z
15
+ date: 2018-11-07 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activesupport