tdl-client-ruby 0.11.1 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ee1596ba4ee2b3b0a3d9f3b2275f7fcbadc71bf
4
- data.tar.gz: 55631f4d61fb362c51681564118fae9538529578
3
+ metadata.gz: 5762498704d319716ca2794e81a99daf5865f7d3
4
+ data.tar.gz: d34845d348a5306982367fb69edc077761f88d03
5
5
  SHA512:
6
- metadata.gz: 61968bfb1573a1404e1cd46874d56689a929b562ff04c41ab526228ce50645a767fff910c37e472e173e39d7800aa96a206a11b887b14bbb8537c8aa422bb2d2
7
- data.tar.gz: bcdbe1cd98b0e9f56b8fd2d49533776ade1fc5d336db41d0df6ab9abe7db4377074c329b5954b7dd7802f77b501bd0400c28e8e9275349e7b8f20f1b63339bb9
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
- remote_broker.join(3)
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
@@ -1,4 +1,4 @@
1
1
  module TDL
2
- PREVIOUS_VERSION = '0.10.2'
2
+ PREVIOUS_VERSION = '0.11.1'
3
3
  # the current MAJOR.MINOR version is dynamically computed from the version of the Spec
4
4
  end
@@ -19,7 +19,7 @@ module TDL
19
19
  @stomp_client.acknowledge(request.original_message)
20
20
  end
21
21
 
22
- def join(limit = nil)
22
+ def join(limit)
23
23
  @stomp_client.join(limit)
24
24
  end
25
25
 
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.11.1
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-09-02 00:00:00.000000000 Z
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.10.2
224
+ previous_version: 0.11.1
225
225
  post_install_message:
226
226
  rdoc_options: []
227
227
  require_paths: