action_subscriber 5.1.2-java → 5.1.3-java

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
- SHA1:
3
- metadata.gz: 20e6d78577bea4f489547fcca7954f40868ae862
4
- data.tar.gz: 4be4767ef821deecf38300f4c586b9f3eb1c5a2c
2
+ SHA256:
3
+ metadata.gz: dba324953e0cf16749a5efef557bb0efa03e5b5b174984cbdb41dd5574c0f23e
4
+ data.tar.gz: 26e7d31608dd58804ca4d35b0e1c3de39e44a87f6ca61a5508530698fa6d679b
5
5
  SHA512:
6
- metadata.gz: d50843c6fa2dc8c67c83afe1776cd970ff7fa98011adeb990b3e800782418f1065e6e82acdb363a42b46e9a6e2114d43862806790881c536615a409d15ee8a61
7
- data.tar.gz: 2faf727da5af9999cc8cbdf4d309c4994ca08987a54cc41b9d6a4a62d94d2386b74b7820e734710669ebb76dd097499c3be3e4a61b9e6ab2181990a14c861bc3
6
+ metadata.gz: d1599b079e51ae8107799d76d0ab63e0bf6579f1ea27e04ce16162800661818e1b43e12d673e29d4c701a7a607f1a65526d125c1fc5d468e3df920328c9a00a5
7
+ data.tar.gz: 2f7a92e399bfe004dcf63bd00b309c4db11bb498158245af7998799468460b15b82d47fc4708c3238f50f4465a7888cf920e4b1eb276c1a16f080ac005d8092e
@@ -46,7 +46,7 @@ module ActionSubscriber
46
46
  end
47
47
 
48
48
  def self.with_exchange(env, ttl, retry_queue_name)
49
- channel = RabbitConnection.with_connection{|connection| connection.create_channel}
49
+ channel = env.channel
50
50
  begin
51
51
  channel.confirm_select
52
52
  # an empty string is the default exchange [see bunny docs](http://rubybunny.info/articles/exchanges.html#default_exchange)
@@ -54,8 +54,6 @@ module ActionSubscriber
54
54
  queue = channel.queue(retry_queue_name, :arguments => {"x-dead-letter-exchange" => "", "x-message-ttl" => ttl, "x-dead-letter-routing-key" => env.queue})
55
55
  yield(exchange)
56
56
  channel.wait_for_confirms
57
- ensure
58
- channel.close rescue nil
59
57
  end
60
58
  end
61
59
  end
@@ -6,6 +6,7 @@ module ActionSubscriber
6
6
  attr_accessor :payload
7
7
 
8
8
  attr_reader :action,
9
+ :channel,
9
10
  :content_type,
10
11
  :encoded_payload,
11
12
  :exchange,
@@ -1,3 +1,3 @@
1
1
  module ActionSubscriber
2
- VERSION = "5.1.2"
2
+ VERSION = "5.1.3"
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.2
4
+ version: 5.1.3
5
5
  platform: java
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-07-26 00:00:00.000000000 Z
15
+ date: 2018-11-12 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  requirement: !ruby/object:Gem::Requirement
@@ -297,7 +297,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
297
297
  version: '0'
298
298
  requirements: []
299
299
  rubyforge_project:
300
- rubygems_version: 2.6.14.1
300
+ rubygems_version: 2.6.11
301
301
  signing_key:
302
302
  specification_version: 4
303
303
  summary: ActionSubscriber is a DSL that allows a rails app to consume messages from