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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/jackal/loader.rb +5 -7
- data/lib/jackal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 050d5e42f540008d6d6ac8641a86de275475e5fe
|
4
|
+
data.tar.gz: 90becaeae8c07f5520946f6a4f8112d03379e7b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0b86bd8a760845eefaa006838e19f96c59c15d67b85d68cc8ddd22b6d080c6eadde03e7c06fb01df31484caabd670c47b4ee8675d65cc049ec4c2c6a3c2a7c5
|
7
|
+
data.tar.gz: fc9b0d1eb866cad3e1101ff8d3c728e8bebaa7ffb647a3f90a0d2f8a004016eb324a8000d8d9ed9bbd5228a1e4fbd7f946b1d9b5348552fd9e68d6d205c3a67e
|
data/CHANGELOG.md
CHANGED
data/lib/jackal/loader.rb
CHANGED
@@ -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
|
data/lib/jackal/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carnivore
|