estorm-message-processor 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/estorm-message-processor/base.rb +2 -1
- data/test/coverage/index.html +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3f32e9c558e654f196251ce4c1db0d66ea9ecfa
|
4
|
+
data.tar.gz: aee686b7611bcf483c18e2e0796ef85aa650f09f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79861e5783af9a9bbc5a5386f3ea58ebc4f93e064170913f886afa88ff933aa07e78ac4030a0301c0dc83c8bcf6b5411c12b748c32790b297712771b42d3acef
|
7
|
+
data.tar.gz: d13b8e283a817df5804573a1b47f4af8be7366b66a4e45801b87847b95db15ed766b3be9a1c2518819a0d379c9a9c9467bb6c230d1c1f4145e66aebe3a14dda5
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
estorm-message-processor (0.2.
|
4
|
+
estorm-message-processor (0.2.3)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -12,7 +12,7 @@ GEM
|
|
12
12
|
codeclimate-test-reporter (0.1.1)
|
13
13
|
simplecov (>= 0.7.1, < 1.0.0)
|
14
14
|
minitest (5.0.8)
|
15
|
-
multi_json (1.8.
|
15
|
+
multi_json (1.8.2)
|
16
16
|
simplecov (0.7.1)
|
17
17
|
multi_json (~> 1.0)
|
18
18
|
simplecov-html (~> 0.7.1)
|
@@ -65,7 +65,7 @@ module EstormMessageProcessor
|
|
65
65
|
# ack the message to get the next message
|
66
66
|
#msg_count,consumer_count = @consumer.queue_statistics # POSSIBLE RACE CONDITION
|
67
67
|
# @consumer.cancel if msg_count==0 && config[:exit_when_empty]
|
68
|
-
end
|
68
|
+
end if !config[:exit_when_done] or msg_count >0
|
69
69
|
end
|
70
70
|
def queue_creation(config)
|
71
71
|
setup_bunny_communications(config[:url],config[:connecturlflag],config[:queuename])
|
@@ -82,6 +82,7 @@ module EstormMessageProcessor
|
|
82
82
|
msg= "Connecting to bunny environment #{config.inspect}"
|
83
83
|
logger.info msg
|
84
84
|
queue_creation(config)
|
85
|
+
config[:exit_when_done]=false if config[:exit_when_done]==nil
|
85
86
|
# the block flag shuts down the thread. the timeout values says whether to unsubscriber
|
86
87
|
#need to set ack to true to manage the qos parameter
|
87
88
|
# retval= @queue.subscribe_with(@consumer,:ack => true, :block => config[:blocking], :timeout => config[:timeout])
|
data/test/coverage/index.html
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
<img src="./assets/0.7.1/loading.gif" alt="loading"/>
|
15
15
|
</div>
|
16
16
|
<div id="wrapper" style="display:none;">
|
17
|
-
<div class="timestamp">Generated <abbr class="timeago" title="2013-10-
|
17
|
+
<div class="timestamp">Generated <abbr class="timeago" title="2013-10-17T23:03:58+08:00">2013-10-17T23:03:58+08:00</abbr></div>
|
18
18
|
<ul class="group_tabs"></ul>
|
19
19
|
|
20
20
|
<div id="content">
|