tdl-client-ruby 0.11.1 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tdl/client.rb +4 -2
- data/lib/tdl/previous_version.rb +1 -1
- data/lib/tdl/transport/remote_broker.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5762498704d319716ca2794e81a99daf5865f7d3
|
4
|
+
data.tar.gz: d34845d348a5306982367fb69edc077761f88d03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9fbf0e8bffcefd374edfe90c645b7e8b170d5e5423f6af415a28958739e2e8d463087d1759b2bcd910f892aaf2910f23a395e1199f62ad551f6f399d32fc0e9
|
7
|
+
data.tar.gz: 8a8e0bb4f013c2e125373e8034ed8ea4ff5916f3a67f149d8927ced2061cb0923ce93c58b24652dc51a28fb7f7915f43a65741e73aad5469df1c50046306ea9e
|
data/lib/tdl/client.rb
CHANGED
@@ -11,10 +11,11 @@ module TDL
|
|
11
11
|
|
12
12
|
class Client
|
13
13
|
|
14
|
-
def initialize(hostname:, port: 61613, unique_id:)
|
14
|
+
def initialize(hostname:, port: 61613, unique_id:, time_to_wait_for_requests: 3)
|
15
15
|
@hostname = hostname
|
16
16
|
@port = port
|
17
17
|
@unique_id = unique_id
|
18
|
+
@time_to_wait_for_requests = time_to_wait_for_requests
|
18
19
|
@logger = Logging.logger[self]
|
19
20
|
end
|
20
21
|
|
@@ -25,7 +26,8 @@ module TDL
|
|
25
26
|
remote_broker.subscribe(ApplyProcessingRules.new(processing_rules))
|
26
27
|
|
27
28
|
#DEBT: We should have no timeout here. We could put a special message in the queue
|
28
|
-
|
29
|
+
@logger.info 'Waiting for requests.'
|
30
|
+
remote_broker.join(@time_to_wait_for_requests)
|
29
31
|
@logger.info 'Stopping client.'
|
30
32
|
remote_broker.close
|
31
33
|
rescue Exception => e
|
data/lib/tdl/previous_version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tdl-client-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Ghionoiu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: stomp
|
@@ -221,7 +221,7 @@ homepage: https://github.com/julianghionoiu/tdl-client-ruby
|
|
221
221
|
licenses:
|
222
222
|
- GPL-3.0
|
223
223
|
metadata:
|
224
|
-
previous_version: 0.
|
224
|
+
previous_version: 0.11.1
|
225
225
|
post_install_message:
|
226
226
|
rdoc_options: []
|
227
227
|
require_paths:
|