jackal 0.1.12 → 0.1.14

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: ff9bb4a1b15fb821c46592fe2c38aec7bf9edde1
4
- data.tar.gz: e9841cad0e280a6a6e537e0ef4cd8004625229ca
3
+ metadata.gz: 050d5e42f540008d6d6ac8641a86de275475e5fe
4
+ data.tar.gz: 90becaeae8c07f5520946f6a4f8112d03379e7b9
5
5
  SHA512:
6
- metadata.gz: 9a8e62b85de16333381fd577b42c304597dd4748aac6592e794b14e0bb8804efd49de193e973b08b466fb490c08abd41f208e50c03c8ae2d0e1c1570f8d96ebb
7
- data.tar.gz: 10a9d456b501adcc202aebb820554cdf20878ca7dbb67adcbcdab5a86cfdb41a0b35da0dc0aed82be7aca1d4ae4df9e7e05d847fac086bf1ccb881d392ba6724
6
+ metadata.gz: a0b86bd8a760845eefaa006838e19f96c59c15d67b85d68cc8ddd22b6d080c6eadde03e7c06fb01df31484caabd670c47b4ee8675d65cc049ec4c2c6a3c2a7c5
7
+ data.tar.gz: fc9b0d1eb866cad3e1101ff8d3c728e8bebaa7ffb647a3f90a0d2f8a004016eb324a8000d8d9ed9bbd5228a1e4fbd7f946b1d9b5348552fd9e68d6d205c3a67e
@@ -1,3 +1,6 @@
1
+ # v0.1.14
2
+ * Move orphan handlers into source init arg
3
+
1
4
  # v0.1.12
2
5
  * Only output source configuration in debug mode
3
6
  * Catch unprocessed messages and remove from bus
@@ -27,7 +27,11 @@ begin
27
27
  opts.fetch(:sources, {}).each do |kind, source_args|
28
28
  source = Carnivore::Source.build(
29
29
  :type => source_args[:type].to_sym,
30
- :args => source_args.fetch(:args, {}).merge(:name => "#{namespace}_#{key}_#{kind}")
30
+ :args => source_args.fetch(:args, {}).merge(:name => "#{namespace}_#{key}_#{kind}"),
31
+ :orphan_callback => lambda{|message|
32
+ error "No callbacks matched message. Failed to process. Removed from bus. (#{message})"
33
+ message.confirm!
34
+ }
31
35
  )
32
36
  Carnivore::Utils.info "Registered new source: #{namespace}_#{key}_#{kind}"
33
37
  if(kind == :input)
@@ -36,12 +40,6 @@ begin
36
40
  memo.const_get(name)
37
41
  end
38
42
  source.add_callback(klass_name, klass)
39
- # If no callbacks match message, ensure message is
40
- # confirmed from the source and logged as error
41
- source.orphan_callback do |message|
42
- error "No callbacks matched message. Failed to process. Removed from bus. (#{message})"
43
- message.confirm!
44
- end
45
43
  end
46
44
  end
47
45
  end
@@ -1,4 +1,4 @@
1
1
  module Jackal
2
2
  # Current library version
3
- VERSION = Gem::Version.new('0.1.12')
3
+ VERSION = Gem::Version.new('0.1.14')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jackal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-02 00:00:00.000000000 Z
11
+ date: 2014-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carnivore