franz 2.1.7 → 2.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/franz/input.rb +1 -1
- data/lib/franz/input_config.rb +4 -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: 11f00654a465bdcecd3268306209bb0ca09eb0c5
|
4
|
+
data.tar.gz: ec6e7b3bd6c6f8710739dc9a1f7eb6d402d29087
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab263c372d9b576c6435271d186e7e9e771c050d70ed8d023c0f31d84a162bb178a546d9abae21e22a4738c0b9e4cfebcec9e1f1e6a5aca0663172890baf6c4e
|
7
|
+
data.tar.gz: db6572a16aec153ed1b22255e41f7f4dfad8d6e897eccaee0b89204d4789bf65e77039f6de5b8b600c3e25d3e346f47f136ecee5a7b30f19128c88f06e9dbd3d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.8
|
data/lib/franz/input.rb
CHANGED
@@ -86,7 +86,7 @@ module Franz
|
|
86
86
|
watch_events = possibly_bounded_queue opts[:input][:watch_bound]
|
87
87
|
tail_events = possibly_bounded_queue opts[:input][:tail_bound]
|
88
88
|
|
89
|
-
ic = InputConfig.new opts[:input][:configs]
|
89
|
+
ic = InputConfig.new opts[:input][:configs], @logger
|
90
90
|
|
91
91
|
@disover = Franz::Discover.new \
|
92
92
|
input_config: ic,
|
data/lib/franz/input_config.rb
CHANGED
@@ -2,7 +2,8 @@ module Franz
|
|
2
2
|
class InputConfig
|
3
3
|
attr_reader :configs
|
4
4
|
|
5
|
-
def initialize configs
|
5
|
+
def initialize configs, logger=nil
|
6
|
+
@logger = logger || Logger.new(STDOUT)
|
6
7
|
@configs = configs
|
7
8
|
@configs.map! do |c|
|
8
9
|
normalized_config c
|
@@ -62,6 +63,8 @@ module Franz
|
|
62
63
|
|
63
64
|
|
64
65
|
private
|
66
|
+
def log ; @logger end
|
67
|
+
|
65
68
|
def normalized_config config
|
66
69
|
config[:keep] = realize_regexps config[:keep]
|
67
70
|
config[:drop] = realize_regexps config[:drop]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: franz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Clemmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slog
|