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.
@@ -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
|
|
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 3
|
10
|
+
version: 1.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nathan Stults
|