bunny_burrow 1.4.0 → 1.5.0

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: 875fa3769a4986196e033217a87b72f0decd5ae0
4
- data.tar.gz: 3b508c34cf4ef0581d92e5a4d685630c4b0ff61b
3
+ metadata.gz: 9181dc995a90ce6de1819582c7ac37514f3fce7c
4
+ data.tar.gz: b109fe807bc96146290a59722cc597b7cde657cd
5
5
  SHA512:
6
- metadata.gz: 13db4d5b1ff5c5ff2e0ff5531acf74d485086fbd8aaf8fc5a4f12db29e9d18f0c70fb68d1f35ce63da39ea42e77238911206cd6c250f27d364577357856530e1
7
- data.tar.gz: d018628ca76ef82ede2f415ac659c005416020fc7a1811f72802df186372fee619791645c05d5b131fed30694c29b82faee4901e0aaeeaf1fc82b7028ceac777
6
+ metadata.gz: 0963dd57c21ac6a443ee75de04d42f376b6f9d6a27efc6fbed2cba6e21a695a90066875598e5a149e989a492a9314a86bb5a6445f6912a49f89261e6a782f443
7
+ data.tar.gz: f1c842253b7277100fa85ea9e4bac521f4a215712708988ba4aa0e687d92efa30dc6bad7fec381f439d33989ac4615cefac51dc0220ae7c3c03f4c0a6af51562
@@ -5,6 +5,11 @@ module BunnyBurrow
5
5
  def publish(payload, routing_key)
6
6
  result = nil
7
7
 
8
+ # when creating a queue, a blank name indicates we want the AMPQ broker
9
+ # to generate a unique name for us. Also note that this queue will be on
10
+ # the default exchange
11
+ reply_to = channel.queue('', exclusive: true, auto_delete: true)
12
+
8
13
  details = {
9
14
  routing_key: routing_key,
10
15
  reply_to: reply_to
@@ -33,14 +38,5 @@ module BunnyBurrow
33
38
 
34
39
  result
35
40
  end
36
-
37
- private
38
-
39
- def reply_to
40
- # when creating a queue, a blank name indicates we want the AMPQ broker
41
- # to generate a unique name for us. Also note that this queue will be on
42
- # the default exchange
43
- @reply_to ||= channel.queue('', exclusive: true, auto_delete: true)
44
- end
45
41
  end
46
42
  end
@@ -1,3 +1,3 @@
1
1
  module BunnyBurrow
2
- VERSION = '1.4.0'
2
+ VERSION = '1.5.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bunny_burrow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vericity
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-26 00:00:00.000000000 Z
11
+ date: 2016-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: dotenv
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: pry
29
43
  requirement: !ruby/object:Gem::Requirement