carnivore 1.0.6 → 1.0.8

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: aedba5959fa082d4f04f6bb5165ea378cee944ec
4
- data.tar.gz: 7bd2695bd45dc6082ab6e0d0945282bf7ddd63c0
3
+ metadata.gz: 9dabcb460abc6c7b607edd9cc024f0ca87b35933
4
+ data.tar.gz: 0c4ba1f501e00e3d3abb7de34973085fbc67340e
5
5
  SHA512:
6
- metadata.gz: 80577dc5d1759a53abef37c029a0232a15925194778269c860044ae06c746a25b24042fe5c60cff267e799716c5bc3799f60d22f75070581df7b8d35965e3722
7
- data.tar.gz: 46726d66aa89017f074909e25d2ff5ff048c49417252cf23fa9bd4014a512243ae5d84e5184328db3e5ca056b94b856ae2917d84e3c47c212263a7c8a68fb2ce
6
+ metadata.gz: 193a571b672439b5745249ebee3fac8ec39a2474bc0265fd78f69503235b6982d01beab4dc54b01454421e4a36a7e9e9b0423692448a3bf71fa4c3e5a7b3c7de
7
+ data.tar.gz: 20f4c3c0641ad551502e4b19a67d8c029fe91c9293e3e5b86dd57fa8322e124467cf2616a051d462ac258ab2acec7fb4f05736af1dcef614f60a86968ac87a7b
@@ -1,3 +1,7 @@
1
+ # v1.0.8
2
+ * Add guard to prevent duplicate confirmations
3
+ * Defer when validating message for dispatch
4
+
1
5
  # v1.0.6
2
6
  * Add forcible shutdown support after timeout
3
7
  * Fix supervisor return value to provide subclassed implementation
@@ -33,7 +33,10 @@ module Carnivore
33
33
  #
34
34
  # @param args [Object] list passed to Carnivore::Source#confirm
35
35
  def confirm!(*args)
36
- self[:source].async(:locked).confirm(*([self] + args).flatten(1).compact)
36
+ unless(@confirm)
37
+ @confirm = true
38
+ self[:source].async(:locked).confirm(*([self] + args).flatten(1).compact)
39
+ end
37
40
  end
38
41
 
39
42
  # Touch message on source
@@ -431,7 +431,7 @@ module Carnivore
431
431
  msgs.each do |msg|
432
432
  if(multiple_callbacks? || respond_to?(:orphan_callback))
433
433
  valid_callbacks = callbacks.find_all do |name|
434
- callback_supervisor[callback_name(name)].valid?(msg)
434
+ defer{ callback_supervisor[callback_name(name)].valid?(msg) }
435
435
  end
436
436
  else
437
437
  valid_callbacks = callbacks
@@ -1,4 +1,4 @@
1
1
  module Carnivore
2
2
  # Current version of library
3
- VERSION = Gem::Version.new('1.0.6')
3
+ VERSION = Gem::Version.new('1.0.8')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carnivore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-24 00:00:00.000000000 Z
11
+ date: 2015-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo-config