amqp_directory_broadcaster 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,6 +37,7 @@ module AmqpDirectoryBroadcaster
37
37
  puts "Sending messages to #{exchange_name} @ #{broker_uri}"
38
38
 
39
39
  bunny = breed(broker.to_h)
40
+ puts "Broker Settings:#{broker.to_h.inspect}" if options[:verbose]
40
41
 
41
42
  begin
42
43
  exchange_options = {
@@ -12,14 +12,14 @@ module AmqpDirectoryBroadcaster
12
12
  @port = 5672
13
13
 
14
14
  if (constr =~ /amqp:\/\//)
15
- uri = URI.parse(constr)
16
- host = uri.host
17
- port = uri.port || 5672
18
- username = uri.user || "guest"
19
- password = uri.password || "guest"
20
- vhost = uri.path.strip.length < 1 ? "/" : uri.path
15
+ @uri = URI.parse(constr)
16
+ @host = uri.host
17
+ @port = uri.port || 5672
18
+ @username = uri.user || "guest"
19
+ @password = uri.password || "guest"
20
+ @vhost = uri.path.strip.length < 1 ? "/" : uri.path
21
21
  else
22
- host = constr
22
+ @host = constr
23
23
  end
24
24
  end
25
25
 
@@ -1,3 +1,3 @@
1
1
  module AmqpDirectoryBroadcaster
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amqp_directory_broadcaster
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nathan Stults