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 +4 -4
- data/lib/bunny_burrow/client.rb +5 -9
- data/lib/bunny_burrow/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9181dc995a90ce6de1819582c7ac37514f3fce7c
|
4
|
+
data.tar.gz: b109fe807bc96146290a59722cc597b7cde657cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0963dd57c21ac6a443ee75de04d42f376b6f9d6a27efc6fbed2cba6e21a695a90066875598e5a149e989a492a9314a86bb5a6445f6912a49f89261e6a782f443
|
7
|
+
data.tar.gz: f1c842253b7277100fa85ea9e4bac521f4a215712708988ba4aa0e687d92efa30dc6bad7fec381f439d33989ac4615cefac51dc0220ae7c3c03f4c0a6af51562
|
data/lib/bunny_burrow/client.rb
CHANGED
@@ -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
|
data/lib/bunny_burrow/version.rb
CHANGED
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
|
+
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-
|
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
|