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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6a52e4b1ac7f490d976dc431a158b41e795f23e
4
- data.tar.gz: d66c939e9b7c6954e21e06dc5d02f85b6927867f
3
+ metadata.gz: b3f32e9c558e654f196251ce4c1db0d66ea9ecfa
4
+ data.tar.gz: aee686b7611bcf483c18e2e0796ef85aa650f09f
5
5
  SHA512:
6
- metadata.gz: a590b654b7d6f0d2a5e8fd9d08659e887233e0a2166280ee432ac26360bf3f5196c3c1ab37ab0d9cba15b40824fd4ec0c7c33d319d7bdbe125d6e837c099ba0e
7
- data.tar.gz: 56db9ed1d5ae2cebec0151be6f04c22ceae6e325c5376523a5cd65bae01dc13d6b2ff1aacdde3d1ad00f7479f999b780b0a06a791c2cd8aaf5738d5090bf089e
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.1)
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.1)
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])
@@ -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-17T21:16:46+08:00">2013-10-17T21:16:46+08:00</abbr></div>
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">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: estorm-message-processor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Sproule