haredo 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/lib/haredo/peer.rb +15 -7
- data/src/lib/haredo/version.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8abd866e745dc0b445fc51ea2375b5945998c66d
|
4
|
+
data.tar.gz: dd607161a005f9a6a911d507b4642c00489371d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6740e4e73805188aba26a93feffc01975225caf1d27ab2402ac33b831a2fa72d58b4fb2615eda0096a52060c1041a080029cb97575f43b59cf1266d3fe363c86
|
7
|
+
data.tar.gz: 38015dcd2b17d1701139e8671cffb852cc1ec4726618404cd7eb3f6b514c84b52d1bae7a8f707a4b943df0be8d626b7be3c2beac7dda6e7620d54ae564244540
|
data/src/lib/haredo/peer.rb
CHANGED
@@ -188,11 +188,17 @@ class Peer
|
|
188
188
|
|
189
189
|
def connect(args)
|
190
190
|
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
191
|
+
queue_args = {
|
192
|
+
#'x-expires' => 30000
|
193
|
+
#'x-message-ttl' => 1000
|
194
|
+
}
|
195
|
+
|
196
|
+
user = args[:user] || 'guest'
|
197
|
+
password = args[:password] || 'guest'
|
198
|
+
host = args[:host] || 'localhost'
|
199
|
+
port = args[:port] || '5672'
|
200
|
+
vhost = args[:vhost] || ''
|
201
|
+
queue_props = args[:queue] || queue_args
|
196
202
|
ssl = ''
|
197
203
|
|
198
204
|
if args[:ssl] == true
|
@@ -208,8 +214,10 @@ class Peer
|
|
208
214
|
|
209
215
|
@channel = @cnx.create_channel()
|
210
216
|
|
211
|
-
@queue = @channel.queue( '',
|
212
|
-
:
|
217
|
+
@queue = @channel.queue( '',
|
218
|
+
:auto_delete => true,
|
219
|
+
:exclusive => true,
|
220
|
+
:arguments => queue_props )
|
213
221
|
|
214
222
|
@exchange = @channel.default_exchange()
|
215
223
|
|
data/src/lib/haredo/version.rb
CHANGED
@@ -4,8 +4,8 @@ module HareDo
|
|
4
4
|
VERSION_MAJ = '2'
|
5
5
|
VERSION_MIN = '0'
|
6
6
|
VERSION_CL = '-beta'
|
7
|
-
VERSION_PL = '
|
8
|
-
VERSION = '2.0.
|
9
|
-
RELEASE_DATE = 'Thu, 03 Oct 2013
|
7
|
+
VERSION_PL = '2'
|
8
|
+
VERSION = '2.0.2-beta-1'
|
9
|
+
RELEASE_DATE = 'Thu, 03 Oct 2013 19:34:23 -0500'
|
10
10
|
|
11
11
|
end # module HareDo
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haredo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Owens
|
8
8
|
autorequire:
|
9
9
|
bindir: src/bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|