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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4be72a4fed944052401d3116d61c98186d6c86d
4
- data.tar.gz: 1ff46bfcd3585dc3a7f5885cdb3487bb3759c5b2
3
+ metadata.gz: 8abd866e745dc0b445fc51ea2375b5945998c66d
4
+ data.tar.gz: dd607161a005f9a6a911d507b4642c00489371d8
5
5
  SHA512:
6
- metadata.gz: 2ba6893748b449ddd53fe2cebf56c7f84a9279cbb5ddd77a1372758b1044597544414a8fc85792e78c3376bb9c7965f608d53e0e07b9c23b90f8c192c687e5fc
7
- data.tar.gz: cf01b8cf6c2be4cae3cfd45bff282bed1977c698c46a73c739c374d5731431963a85e3980de42b9c8a71bcc162a1769d9b604b1fd00e97d6187f85b8e1d7dea1
6
+ metadata.gz: 6740e4e73805188aba26a93feffc01975225caf1d27ab2402ac33b831a2fa72d58b4fb2615eda0096a52060c1041a080029cb97575f43b59cf1266d3fe363c86
7
+ data.tar.gz: 38015dcd2b17d1701139e8671cffb852cc1ec4726618404cd7eb3f6b514c84b52d1bae7a8f707a4b943df0be8d626b7be3c2beac7dda6e7620d54ae564244540
@@ -188,11 +188,17 @@ class Peer
188
188
 
189
189
  def connect(args)
190
190
 
191
- user = args[:user] || 'guest'
192
- password = args[:password] || 'guest'
193
- host = args[:host] || 'localhost'
194
- port = args[:port] || '5672'
195
- vhost = args[:vhost] || ''
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( '', :auto_delete => true,
212
- :arguments => { "x-message-ttl" => 1000 } )
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
 
@@ -4,8 +4,8 @@ module HareDo
4
4
  VERSION_MAJ = '2'
5
5
  VERSION_MIN = '0'
6
6
  VERSION_CL = '-beta'
7
- VERSION_PL = '1'
8
- VERSION = '2.0.1-beta-1'
9
- RELEASE_DATE = 'Thu, 03 Oct 2013 14:08:05 -0500'
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.1
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-03 00:00:00.000000000 Z
11
+ date: 2013-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny